-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly remove quads when joining graph blocks
- Loading branch information
Showing
7 changed files
with
433 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
test/algebra-blank-to-var/sparql11-query/graph-join(quads).json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"type": "project", | ||
"input": { | ||
"type": "join", | ||
"input": [ | ||
{ | ||
"type": "filter", | ||
"input": { | ||
"type": "bgp", | ||
"patterns": [ | ||
{ | ||
"type": "pattern", | ||
"termType": "Quad", | ||
"subject": { | ||
"termType": "Variable", | ||
"value": "s" | ||
}, | ||
"predicate": { | ||
"termType": "Variable", | ||
"value": "p" | ||
}, | ||
"object": { | ||
"termType": "Variable", | ||
"value": "o" | ||
}, | ||
"graph": { | ||
"termType": "NamedNode", | ||
"value": "http://graph.example.com/" | ||
} | ||
} | ||
] | ||
}, | ||
"expression": { | ||
"type": "expression", | ||
"expressionType": "operator", | ||
"operator": "uri", | ||
"args": [ | ||
{ | ||
"type": "expression", | ||
"expressionType": "term", | ||
"term": { | ||
"termType": "Variable", | ||
"value": "s" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "bgp", | ||
"patterns": [ | ||
{ | ||
"type": "pattern", | ||
"termType": "Quad", | ||
"subject": { | ||
"termType": "Variable", | ||
"value": "s" | ||
}, | ||
"predicate": { | ||
"termType": "Variable", | ||
"value": "p" | ||
}, | ||
"object": { | ||
"termType": "Variable", | ||
"value": "o" | ||
}, | ||
"graph": { | ||
"termType": "NamedNode", | ||
"value": "http://other.example.com/" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"variables": [ | ||
{ | ||
"termType": "Variable", | ||
"value": "s" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"type": "project", | ||
"input": { | ||
"type": "join", | ||
"input": [ | ||
{ | ||
"type": "graph", | ||
"input": { | ||
"type": "filter", | ||
"input": { | ||
"type": "bgp", | ||
"patterns": [ | ||
{ | ||
"type": "pattern", | ||
"termType": "Quad", | ||
"subject": { | ||
"termType": "Variable", | ||
"value": "s" | ||
}, | ||
"predicate": { | ||
"termType": "Variable", | ||
"value": "p" | ||
}, | ||
"object": { | ||
"termType": "Variable", | ||
"value": "o" | ||
}, | ||
"graph": { | ||
"termType": "DefaultGraph", | ||
"value": "" | ||
} | ||
} | ||
] | ||
}, | ||
"expression": { | ||
"type": "expression", | ||
"expressionType": "operator", | ||
"operator": "uri", | ||
"args": [ | ||
{ | ||
"type": "expression", | ||
"expressionType": "term", | ||
"term": { | ||
"termType": "Variable", | ||
"value": "s" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"name": { | ||
"termType": "NamedNode", | ||
"value": "http://graph.example.com/" | ||
} | ||
}, | ||
{ | ||
"type": "graph", | ||
"input": { | ||
"type": "bgp", | ||
"patterns": [ | ||
{ | ||
"type": "pattern", | ||
"termType": "Quad", | ||
"subject": { | ||
"termType": "Variable", | ||
"value": "s" | ||
}, | ||
"predicate": { | ||
"termType": "Variable", | ||
"value": "p" | ||
}, | ||
"object": { | ||
"termType": "Variable", | ||
"value": "o" | ||
}, | ||
"graph": { | ||
"termType": "DefaultGraph", | ||
"value": "" | ||
} | ||
} | ||
] | ||
}, | ||
"name": { | ||
"termType": "NamedNode", | ||
"value": "http://other.example.com/" | ||
} | ||
} | ||
] | ||
}, | ||
"variables": [ | ||
{ | ||
"termType": "Variable", | ||
"value": "s" | ||
} | ||
] | ||
} |
Oops, something went wrong.