-
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.
- Loading branch information
Showing
4 changed files
with
210 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
@prefix skolem: <https://eyereasoner.github.io/.well-known/genid/8b98b360-9a70-4845-b52c-c675af60ad01#>. | ||
@prefix r: <http://www.w3.org/2000/10/swap/reason#>. | ||
@prefix : <urn:example:>. | ||
@prefix var: <http://www.w3.org/2000/10/swap/var#>. | ||
@prefix n3: <http://www.w3.org/2004/06/rei#>. | ||
|
||
skolem:proof a r:Proof, r:Conjunction; | ||
r:component skolem:lemma1; | ||
r:component skolem:lemma2; | ||
r:gives { | ||
:Fabian :believes { | ||
{ | ||
?U_0 a :glitter. | ||
} => { | ||
?U_0 :notNecessarilyA :gold. | ||
}. | ||
}. | ||
:northStar :notNecessarilyA :gold. | ||
}. | ||
|
||
skolem:lemma1 a r:Inference; | ||
r:gives { | ||
@forSome var:x_1. :Fabian :believes { | ||
{ | ||
var:x_1 a :glitter. | ||
} => { | ||
var:x_1 :notNecessarilyA :gold. | ||
}. | ||
}. | ||
}; | ||
r:evidence ( | ||
skolem:lemma3 | ||
); | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo { | ||
{ | ||
var:x_1 a :glitter. | ||
} => { | ||
var:x_1 :notNecessarilyA :gold. | ||
}. | ||
}]; | ||
r:rule skolem:lemma4. | ||
|
||
skolem:lemma2 a r:Inference; | ||
r:gives { | ||
:northStar :notNecessarilyA :gold. | ||
}; | ||
r:evidence ( | ||
skolem:lemma5 | ||
); | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "urn:example:northStar"]]; | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_1"]; r:boundTo [ n3:uri "urn:example:gold"]]; | ||
r:rule skolem:lemma6. | ||
|
||
skolem:lemma3 a r:Inference; | ||
r:gives { | ||
@forSome var:x_1. :Fabian :believes { | ||
{ | ||
var:x_1 a :glitter. | ||
} => { | ||
var:x_1 :notNecessarilyA :gold. | ||
}. | ||
}. | ||
}; | ||
r:evidence ( | ||
skolem:lemma7 | ||
); | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo { | ||
{ | ||
var:x_1 a :glitter. | ||
} => { | ||
var:x_1 :notNecessarilyA :gold. | ||
}. | ||
}]; | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo { | ||
{ | ||
var:x_2 a :glitter. | ||
} => { | ||
var:x_2 :notNecessarilyA :gold. | ||
}. | ||
}]; | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_1"]; r:boundTo [ n3:uri "urn:example:Fabian"]]; | ||
r:rule skolem:lemma8. | ||
|
||
skolem:lemma4 a r:Extraction; | ||
r:gives { | ||
@forAll var:x_0. { | ||
:Fabian :believes var:x_0. | ||
} => { | ||
:Fabian :believes var:x_0. | ||
}. | ||
}; | ||
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/color/qiana/qiana-query.n3>]. | ||
|
||
skolem:lemma5 a r:Inference; | ||
r:gives { | ||
:northStar :notNecessarilyA :gold. | ||
}; | ||
r:evidence ( | ||
skolem:lemma9 | ||
); | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "urn:example:northStar"]]; | ||
r:rule skolem:lemma10. | ||
|
||
skolem:lemma6 a r:Extraction; | ||
r:gives { | ||
@forAll var:x_0, var:x_1. { | ||
var:x_0 :notNecessarilyA var:x_1. | ||
} => { | ||
var:x_0 :notNecessarilyA var:x_1. | ||
}. | ||
}; | ||
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/color/qiana/qiana-query.n3>]. | ||
|
||
skolem:lemma7 a r:Inference; | ||
r:gives { | ||
@forSome var:x_2. :Einstein :says { | ||
{ | ||
var:x_2 a :glitter. | ||
} => { | ||
var:x_2 :notNecessarilyA :gold. | ||
}. | ||
}. | ||
}; | ||
r:evidence ( | ||
[ a r:Fact; r:gives true] | ||
); | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://www.w3.org/2000/10/swap/var#x_2"]]; | ||
r:rule skolem:lemma11. | ||
|
||
skolem:lemma8 a r:Extraction; | ||
r:gives { | ||
@forAll var:x_0. @forSome var:x_1. { | ||
var:x_1 :believes var:x_0. | ||
} <= { | ||
:Einstein :says var:x_0. | ||
}. | ||
}; | ||
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/color/qiana/qiana.n3>]. | ||
|
||
skolem:lemma9 a r:Extraction; | ||
r:gives { | ||
:northStar a :glitter. | ||
}; | ||
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/color/qiana/qiana.n3>]. | ||
|
||
skolem:lemma10 a r:Inference; | ||
r:gives { | ||
@forAll var:x_3. { | ||
var:x_3 a :glitter. | ||
} => { | ||
var:x_3 :notNecessarilyA :gold. | ||
}. | ||
}; | ||
r:evidence ( | ||
skolem:lemma12 | ||
); | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo { | ||
{ | ||
var:x_3 a :glitter. | ||
} => { | ||
var:x_3 :notNecessarilyA :gold. | ||
}. | ||
}]; | ||
r:rule skolem:lemma13. | ||
|
||
skolem:lemma11 a r:Extraction; | ||
r:gives { | ||
@forSome var:x_0. { | ||
:Einstein :says { | ||
{ | ||
var:x_0 a :glitter. | ||
} => { | ||
var:x_0 :notNecessarilyA :gold. | ||
}. | ||
}. | ||
} <= true. | ||
}; | ||
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/color/qiana/qiana.n3>]. | ||
|
||
skolem:lemma12 a r:Inference; | ||
r:gives { | ||
@forSome var:x_3. :Einstein :says { | ||
{ | ||
var:x_3 a :glitter. | ||
} => { | ||
var:x_3 :notNecessarilyA :gold. | ||
}. | ||
}. | ||
}; | ||
r:evidence ( | ||
[ a r:Fact; r:gives true] | ||
); | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://www.w3.org/2000/10/swap/var#x_3"]]; | ||
r:rule skolem:lemma11. | ||
|
||
skolem:lemma13 a r:Extraction; | ||
r:gives { | ||
@forAll var:x_0. { | ||
:Einstein :says var:x_0. | ||
} => var:x_0. | ||
}; | ||
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/color/qiana/qiana.n3>]. | ||
|
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,5 @@ | ||
@prefix : <urn:example:>. | ||
|
||
# query | ||
{ :Fabian :believes ?what } => { :Fabian :believes ?what }. | ||
{ ?x :notNecessarilyA ?what } => { ?x :notNecessarilyA ?what }. |
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,2 +1,3 @@ | ||
#!/bin/bash | ||
eye --quiet --skolem-genid 8b98b360-9a70-4845-b52c-c675af60ad01 --wcache https://eyereasoner.github.io/eye/color .. --nope https://eyereasoner.github.io/eye/color/qiana/qiana.n3 --output qiana-answer.n3 | ||
eye --quiet --skolem-genid 8b98b360-9a70-4845-b52c-c675af60ad01 --wcache https://eyereasoner.github.io/eye/color .. --nope https://eyereasoner.github.io/eye/color/qiana/qiana.n3 --query https://eyereasoner.github.io/eye/color/qiana/qiana-query.n3 --output qiana-answer.n3 | ||
eye --quiet --skolem-genid 8b98b360-9a70-4845-b52c-c675af60ad01 --wcache https://eyereasoner.github.io/eye/color .. https://eyereasoner.github.io/eye/color/qiana/qiana.n3 --query https://eyereasoner.github.io/eye/color/qiana/qiana-query.n3 --output qiana-proof.n3 |