-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing log:query for bng (blank node graphs)
- Loading branch information
Showing
6 changed files
with
94 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10.24.16 | ||
10.24.17 |
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,77 @@ | ||
# ---------------------------------------- | ||
# Negation as envisioned by Wouter Termont | ||
# ---------------------------------------- | ||
|
||
@prefix var: <http://www.w3.org/2000/10/swap/var#>. | ||
@prefix log: <http://www.w3.org/2000/10/swap/log#>. | ||
@prefix : <http://example.org/#>. | ||
|
||
# Each predicate in RDF represents a binary relation, i.e. a set of 2-tuples. | ||
# For each of those relations you can formulate exactly one complementary | ||
# relation, which contains exactly the pairs of elements that are not in the | ||
# original set (from this follows LEM). If we represent the relationship | ||
# between these complements by a predicate, e.g. log:complement, then we | ||
# can express the following in pure RDF | ||
# | ||
# NOT { | ||
# _:s1 :p1 _:o1. | ||
# _:s2 :p2 _:o2. | ||
# _:s3 :p3 _:o3. | ||
# } | ||
|
||
_:bng_1 log:implies _:bng_2. | ||
|
||
_:bng_1 { | ||
_:s1 :p1 _:o1. | ||
_:s2 :p2 _:o2. | ||
} | ||
|
||
_:bng_2 { | ||
:c3 log:complement :p3. | ||
_:s3 :c3 _:o3. | ||
} | ||
|
||
_:bng_3 log:implies _:bng_4. | ||
|
||
_:bng_3 { | ||
_:s2 :p2 _:o2. | ||
_:s3 :p3 _:o3. | ||
} | ||
|
||
_:bng_4 { | ||
:c1 log:complement :p1. | ||
_:s1 :c1 _:o1. | ||
} | ||
|
||
_:bng_5 log:implies _:bng_6. | ||
|
||
_:bng_5 { | ||
_:s3 :p3 _:o3. | ||
_:s1 :p1 _:o1. | ||
} | ||
|
||
_:bng_6 { | ||
:c2 log:complement :p2. | ||
_:s2 :c2 _:o2. | ||
} | ||
|
||
# asserting the following should blow an inference fuse | ||
# _:s1 :p1 _:o1. | ||
# _:s2 :p2 _:o2. | ||
# _:s3 :p3 _:o3. | ||
|
||
# fuse | ||
_:bng_7 log:implies false. | ||
|
||
_:bng_7 { | ||
var:P log:complement var:C. | ||
var:S var:P var:O. | ||
var:S var:C var:O. | ||
} | ||
|
||
# query | ||
_:bng_8 log:query _:bng_8. | ||
|
||
_:bng_8 { | ||
_:bng_7 log:implies false. | ||
} |
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 log: <http://www.w3.org/2000/10/swap/log#>. | ||
|
||
_:bng_1 log:implies false. | ||
|
||
_:bng_1 { | ||
log:complement log:complement log:complement. | ||
log:complement log:complement log:complement. | ||
log:complement log:complement log:complement. | ||
} |