-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made Extend eval only forget vars not bound outside. Made Extend only collect vars not in "expr" This fixes #580
- Loading branch information
Showing
9 changed files
with
99 additions
and
12 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
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
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
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,6 @@ | ||
PREFIX s: <http://schema.org/> | ||
|
||
SELECT ?s ?o ?x WHERE { | ||
?x s:knows ?o . | ||
{ ?x a s:Person. BIND(?x as ?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,22 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head> | ||
<variable name="s"/> | ||
<variable name="o"/> | ||
<variable name="x"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/jane</uri> | ||
</binding> | ||
<binding name="o"> | ||
<uri>http://example.org/john</uri> | ||
</binding> | ||
<binding name="x"> | ||
<uri>http://example.org/jane</uri> | ||
</binding> | ||
|
||
</result> | ||
</results> | ||
</sparql> |
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,6 @@ | ||
@prefix s: <http://schema.org/> . | ||
@prefix x: <http://example.org/> . | ||
|
||
x:john a s:Person ; s:name "John" . | ||
x:jane a s:Person ; s:name "Jane" ; s:knows x:john. | ||
x:ecorp a s:Organization ; s:name "Evil Corp" ; s:employee x:jane . |
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,9 @@ | ||
PREFIX s: <http://schema.org/> | ||
PREFIX x: <http://example.org/> | ||
|
||
SELECT ?s ?p ?o ?x | ||
WHERE { | ||
?x a s:Person . | ||
{ ?x ?p ?o . BIND (?x as ?s) } UNION | ||
{ ?s ?p ?x . BIND (?x as ?o) } | ||
} |
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,8 @@ | ||
?s ?p ?o ?x | ||
<http://example.org/john> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> <http://example.org/john> | ||
<http://example.org/john> <http://schema.org/name> "John" <http://example.org/john> | ||
<http://example.org/jane> <http://schema.org/knows> <http://example.org/john> <http://example.org/john> | ||
<http://example.org/jane> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> <http://example.org/jane> | ||
<http://example.org/jane> <http://schema.org/name> "Jane" <http://example.org/jane> | ||
<http://example.org/jane> <http://schema.org/knows> <http://example.org/john> <http://example.org/jane> | ||
<http://example.org/ecorp> <http://schema.org/employee> <http://example.org/jane> <http://example.org/jane> |
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