The following query runs with fuseki, but returns error with stardog
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX eco: <http://pid.bayer.com/kos/19014/>
prefix kge: <https://pid.bayer.com/kge/>
construct {
<https://pid.bayer.com/kge/CwidDB> kge:namedGraphs ?g
}
WHERE {
{
graph <https://pid.bayer.com/kge/triplestores>{
<https://pid.bayer.com/kge/CwidDB> kge:password ?password ;
kge:queryPath ?queryPath ;
kge:runsOn ?triplestroreSystem ;
kge:updatePath ?updatePath ;
kge:user ?username ;
rdfs:label ?triplestoreLabel .
}
graph <https://pid.bayer.com/kge/triplestoreSystems> {
?triplestroreSystem
kge:host ?host ;
kge:port ?port ;
kge:protocol ?protocol .
}
bind ( uri(concat(str(?protocol),"://",?username,":",?password,"@",str(?host),":",str(?port),str(?queryPath))) as ?connectionURI )
Service ?connectionURI{
Select ?g {
graph ?g{
?s ?p ?o
}
}
}
}
UNION {
graph <https://pid.bayer.com/kge/virtualGraphs> {
?vg kge:belongsToDB <https://pid.bayer.com/kge/CwidDB>;
kge:vGraphName ?g
}
}
}
here is the error message
with query plan
N/A against database kgeConfiguration
java.lang.IllegalArgumentException: Unable to bind input variables (connectionURI) while keeping output variables () unbound for
Service ?connectionURI {
Projection(?g)
`\u2500 {
`\u2500 Scan[SPO](?s, ?p, ?o){?g, Named}
}
}
Any idea what I can do?