Hi all,
I want to create a query where the user will provide the uri in the insert part.
So the user uses a query from sparql library and provides URI in the parameter.
CONSTRUCT{
?provideUri ?p ?result
}
Select *
WHERE {
SELECT ?cS (GROUP_CONCAT(?pTY; SEPARATOR=', ') AS ?result) ?provideUri{
BIND(URI($provideUri) as ?provideUri )
BIND($PPTFilter as ?PPTFilter)
BIND($cFilter as ?cFilter )
BIND(teamwork:currentMasterGraph() as ?cGraph)
GRAPH ?cGraph
{?cGraph owl:imports ?import}
GRAPH ?import{
?d a skos:cS.
?d skos:hasTopConcept ?cS.
?PPT skos:broader ?cS.
?PPT ontology:PPT ?pTY .
}
FILTER(CONTAINS(STR(?PPT), ?PPTFilter) ||
(CONTAINS(STR(?cS), ?cFilter)) )
.
}GROUP BY ?cS ?provideUri }
BIND($PPTFilter as ?PPTFilter)
BIND($cFilter as ?cFilter ) these 2 are used as string and they work fine
but I have a problem with the ?provideUri
I don't know what type to use should it be string?
when I BIND manually <http:// > it works but when I try to do it by the parameter inserted is shows nothing.
Is it possible to have a solution when the user insert the URI?
Parameters:
provideUri:
Optional
booleandatedateTimedecimalintegerstringlangStringasset of type...
Parameters for SPARQL library query "test2"×
Please fill in the values for the query parameters.