change sparql extract query so that results are the same for jena and blazegraph
@@ -18,7 +18,7 @@ construct {
} where {
?node ?prop ?val .
{
- select distinct ?target ?shape
+ select distinct ?node ?shape
where {
{
?shape sh:targetNode ?target .
@@ -37,10 +37,8 @@ construct {
?shape sh:targetObjectsOf ?property.
?any ?property ?target.
}
- }
- }
- {
bind (?target as ?node)
+ }
} union {
# handle sh:node references: the referenced node also
# becomes a target node
