Skip to content

Commit

Permalink
fixing queries
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Mar 20, 2024
1 parent 7282cc4 commit 32ebff3
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 186 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
7 changes: 4 additions & 3 deletions lingua/beetle.trig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# See https://en.wikipedia.org/wiki/Disjunction_elimination

@prefix lingua: <http://www.w3.org/2000/10/swap/lingua#>.
@prefix lingua: <http://www.w3.org/2000/10/swap/lingua#>.
@prefix : <#>.

Expand Down Expand Up @@ -53,8 +54,8 @@ _:ng7 {


# query
(_:S _:O) lingua:question _:qs.
_:ng8 lingua:query _:ng8.

_:qs {
_:S :is _:O.
_:ng8 {
:beetle :is :beautiful.
}
6 changes: 3 additions & 3 deletions lingua/beetle6.trig
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ _:ng11 {
}

# query
(_:S) lingua:question _:qs.
_:ng12 lingua:query _:ng12.

_:qs {
_:S :is :nice.
_:ng12 {
:beetle :is :nice.
}
4 changes: 2 additions & 2 deletions lingua/blogic.trig
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ _:ng2 {
}

# query
(_:S) lingua:question _:ng3.
_:ng3 lingua:query _:ng3.

_:ng3 {
_:S a :Mortal.
:Socrates a :Mortal.
}
15 changes: 7 additions & 8 deletions lingua/edt.trig
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,31 @@

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix lingua: <http://www.w3.org/2000/10/swap/lingua#>.
@prefix var: <http://www.w3.org/2000/10/swap/var#>.
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix edt: <http://eulersharp.sourceforge.net/2009/12dtb/test#>.

# importing
() lingua:nand _:ng1.
_:ng1 lingua:implication true.

_:ng1 {
<> log:imports <../../eye/reasoning/edt/test-facts.ttl>.
<> log:imports <../../eye/reasoning/edt/test-dl.ttl>.
() lingua:nand true.
}

(_:X _:D _:C) lingua:nand _:ng2.
_:ng2 lingua:if _:ng3.

_:ng2 {
() lingua:not _:ng3.
_:C rdfs:subClassOf _:D.
_:X a _:C.
var:X a var:D.
}

_:ng3 {
_:X a _:D.
var:C rdfs:subClassOf var:D.
var:X a var:C.
}

# query
() lingua:question _:ng4.
_:ng4 lingua:query _:ng4.

_:ng4 {
edt:i100000 a edt:N10000.
Expand Down
1 change: 0 additions & 1 deletion lingua/output/rain.trig
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@prefix : <https://eyereasoner.github.io/see-lingua/lingua/rain.trig#>.

:obs1 :ascribed :Rain.
:obs1 :ascribed :WetGrass.
3 changes: 0 additions & 3 deletions lingua/output/reset.trig

This file was deleted.

1 change: 0 additions & 1 deletion lingua/output/slide32.trig
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@prefix : <https://eyereasoner.github.io/see-lingua/lingua/slide32.trig#>.

:Ghent a :City.
:Ghent a :HumanCommunity.
6 changes: 3 additions & 3 deletions lingua/rain.trig
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ _:ng4 {
}

# query
(_:S _:O) lingua:question _:qs.
_:ng5 lingua:query _:ng5.

_:qs {
_:S :ascribed _:O.
_:ng5 {
:obs1 :ascribed :WetGrass.
}
17 changes: 0 additions & 17 deletions lingua/reset.trig

This file was deleted.

6 changes: 3 additions & 3 deletions lingua/slide32.trig
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ _:ng2 {
}

# query
(_:S _:C) lingua:question _:qs.
_:ng3 lingua:query _:ng3.

_:qs {
_:S a _:C.
_:ng3 {
:Ghent a :HumanCommunity.
}
6 changes: 3 additions & 3 deletions lingua/slide33.trig
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ _:ng10 {
}

# query
(_:S _:C) lingua:question _:qs.
_:ng11 lingua:query _:ng11.

_:qs {
_:S a _:C.
_:ng11 {
:xxx a :aaa.
}
12 changes: 2 additions & 10 deletions lingua/syllogism.trig
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ _:ng2 {

_:ng3 {
_:Bird a :Bird.
() lingua:and _:ng4.
}

_:ng4 {
_:Bird a :Mammal.
}

Expand Down Expand Up @@ -59,10 +55,6 @@ _:X a :Cat , :White.

_:ng7 {
_:M a :Muslim.
() lingua:and _:ng8.
}

_:ng8 {
_:M a :Christian.
}

Expand Down Expand Up @@ -99,8 +91,8 @@ _:ng12 {
}

# Test
() lingua:question _:qs.
_:ng13 lingua:query _:ng13.

_:qs {
_:ng13 {
:test :is true.
}
Loading

0 comments on commit 32ebff3

Please sign in to comment.