Hi,
    By following the example given in the document, Defining SPARQL 
Functions with 
SWP(https://www.topquadrant.com/2013/06/18/defining-sparql-functions-with-swp/) 
we created a SPARQL function and trying to call it from SWP(.swp file). The 
function takes an URI of a concept/node of taxonomy as input and return 
it's children(space separated values). 
      If the input URI is hard coded in the caller(embedding SPARQL 
expression of SWP) then it works. But if we try to use a variable through 
the expression {= ?varaibleName} in the caller(embedding SPARQL expression 
of SWP) then the SWP file throws org.apache.jena.query.QueryParseException 
(please find the attachment).

{#
SELECT ?result 
    WHERE {
        BIND(get:broader(<{= ?test }>) AS ?result)
    } 
}


So we want to understand that what are different ways to call SPARQL 
functions from SWP and pass dynamic/run-time values as parameters. 

Please find attachments for our SPARQL function(get.ui.ttlx) and SWP 
file(getBroaderConcepts.swp)



Thanks,
Sanjeev

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: get.ui.ttlx
Description: Binary data

Attachment: getBroaderConcepts.swp
Description: Binary data

Attachment: error.rar
Description: application/rar

Reply via email to