Hello,
On Stardog 5.3.2, I’m trying to write a graphql query involving fragments, and finding that namespace prefixes aren’t handled correctly when interpreting the subtype name. For example, here’s a graphql query and associated sparql query (via explain command) (assume starwars
is a stored namespace prefix):
{
starwars_Character {
starwars_name
... on starwars_Droid {
starwars_primaryFunction
}
}
}
SELECT *
FROM <tag:stardog:api:context:all>
{
?0 rdf:type starwars:Character .
?0 starwars:name ?1 .
OPTIONAL {
?0 rdf:type :starwars_Droid .
BIND(true AS ?2)
OPTIONAL {
BIND(true AS ?3)
?0 starwars:primaryFunction ?4 .
}
}
FILTER(!bound(?2) || bound(?3))
}
Observe the erroneous pattern:
?0 rdf:type :starwars_Droid .
Any suggestions? Thanks!
Eron