-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a blogic query is a lingua:onQuestionSurface with an optional nested …
…lingua:onAnswerSurface
- Loading branch information
Showing
12 changed files
with
111 additions
and
15 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 |
---|---|---|
@@ -1 +1 @@ | ||
0.5.3 | ||
0.6.0 |
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,3 @@ | ||
@prefix : <https://eyereasoner.github.io/see-lingua/lingua/reset.trig#>. | ||
|
||
:n1 :p1 :n2. |
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,3 @@ | ||
@prefix : <https://eyereasoner.github.io/see-lingua/lingua/slide33.trig#>. | ||
|
||
:xxx a :aaa. |
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,17 @@ | ||
@prefix lingua: <http://www.w3.org/2000/10/swap/lingua#>. | ||
@prefix : <#>. | ||
|
||
# Reset Policy : reset all triples from the resultSurface back to the main surface | ||
|
||
() lingua:onResultSurface _:rs. | ||
|
||
_:rs { | ||
:n1 :p1 :n2. | ||
} | ||
|
||
(_:S) lingua:onQuestionSurface _:qs. | ||
|
||
_:qs { | ||
() lingua:onResultSurface _:S. | ||
() lingua:onAnswerSurface _: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
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,75 @@ | ||
@prefix owl: <http://www.w3.org/2002/07/owl#>. | ||
@prefix lingua: <http://www.w3.org/2000/10/swap/lingua#>. | ||
@prefix skolem: <http://eyereasoner.github.io/.well-known/genid/8b98b360-9a70-4845-b52c-c675af60ad01#>. | ||
@prefix : <#>. | ||
|
||
# slide 33 example from https://www.slideshare.net/PatHayes/blogic-iswc-2009-invited-talk | ||
|
||
# owl restriction | ||
:aaa owl:onProperty :bbb. | ||
:aaa owl:allValuesFrom :ccc. | ||
|
||
# the following 2 triples should entail :yyy a :ccc. | ||
#:xxx a :aaa. | ||
#:xxx :bbb :yyy. | ||
|
||
# the following codex should entail :xxx a :aaa. | ||
(_:y) lingua:onNegativeSurface _:ns1. | ||
|
||
_:ns1 { | ||
:xxx :bbb _:y. | ||
() lingua:onNegativeSurface _:ns2. | ||
} | ||
|
||
_:ns2 { | ||
_:y a :ccc. | ||
} | ||
|
||
# owl:allValuseFrom description logic | ||
(_:a skolem:b _:c) lingua:onNegativeSurface _:ns3. | ||
|
||
_:ns3 { | ||
_:a owl:onProperty skolem:b. | ||
_:a owl:allValuesFrom _:c. | ||
() lingua:onNegativeSurface _:ns4. | ||
} | ||
|
||
_:ns4 { | ||
(_:x _:y) lingua:onNegativeSurface _:ns5. | ||
(_:x) lingua:onNegativeSurface _:ns7. | ||
} | ||
|
||
_:ns5 { | ||
_:x a _:a. | ||
_:x skolem:b _:y. | ||
() lingua:onNegativeSurface _:ns6. | ||
} | ||
|
||
_:ns6 { | ||
_:y a _:c. | ||
} | ||
|
||
_:ns7 { | ||
(_:y) lingua:onNegativeSurface _:ns8. | ||
() lingua:onNegativeSurface _:ns10. | ||
} | ||
|
||
_:ns8 { | ||
_:x skolem:b _:y. | ||
() lingua:onNegativeSurface _:ns9. | ||
} | ||
|
||
_:ns9 { | ||
_:y a _:c. | ||
} | ||
|
||
_:ns10 { | ||
_:x a _:a. | ||
} | ||
|
||
# query | ||
(_:S _:C) lingua:onQuestionSurface _:qs. | ||
|
||
_:qs { | ||
_:S a _:C. | ||
} |
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