-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:eyereasoner/rdfsurfaces-tests
- Loading branch information
Showing
3 changed files
with
80 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# -------------------------- | ||
# RDF surfaces water example | ||
# -------------------------- | ||
# | ||
# See https://en.wikipedia.org/wiki/Disjunction_elimination | ||
|
||
@prefix log: <http://www.w3.org/2000/10/swap/log#>. | ||
@prefix : <urn:example:>. | ||
|
||
# water is an inorganic compound | ||
:water a :InorganicCompound. | ||
|
||
# water is solid or liquid | ||
(_:A) log:onNegativeSurface { | ||
_:A a :InorganicCompound. | ||
() log:onNegativeSurface { | ||
_:A :is :solid. | ||
}. | ||
() log:onNegativeSurface { | ||
_:A :is :liquid. | ||
}. | ||
}. | ||
|
||
# water is packaged or gas | ||
(_:A) log:onNegativeSurface { | ||
_:A a :InorganicCompound. | ||
() log:onNegativeSurface { | ||
_:A :is :packaged. | ||
}. | ||
() log:onNegativeSurface { | ||
_:A :is :gas. | ||
}. | ||
}. | ||
|
||
# solid things are observable | ||
(_:A) log:onNegativeSurface { | ||
_:A :is :solid. | ||
() log:onNegativeSurface { | ||
_:A :is :observable. | ||
}. | ||
}. | ||
|
||
# liquid things are observable | ||
(_:A) log:onNegativeSurface { | ||
_:A :is :liquid. | ||
() log:onNegativeSurface { | ||
_:A :is :observable. | ||
}. | ||
}. | ||
|
||
# packaged things are not observable | ||
(_:A) log:onNegativeSurface { | ||
_:A :is :packaged. | ||
() log:onNegativeSurface { | ||
() log:onNegativeSurface { | ||
_:A :is :observable. | ||
}. | ||
}. | ||
}. | ||
|
||
# gas things are not observable | ||
(_:A) log:onNegativeSurface { | ||
_:A :is :gas. | ||
() log:onNegativeSurface { | ||
() log:onNegativeSurface { | ||
_:A :is :observable. | ||
}. | ||
}. | ||
}. | ||
|
||
# query | ||
() log:onNegativeSurface { | ||
:water :is :observable. | ||
() log:onNegativeAnswerSurface { | ||
:test :is true. | ||
}. | ||
}. |