Created
December 8, 2022 05:53
-
-
Save phochste/90fe840cdc0b586f95bfd84b3f82ef43 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@prefix log: <http://www.w3.org/2000/10/swap/log#>. | |
@prefix : <http://example.org/ns#>. | |
# beetle is a car | |
:beetle a :Car. | |
# bob is a person | |
:bob a :Person. | |
# grannysmith apple is green | |
:grannysmith a :Apple ; | |
:is :green . | |
# mars is the red planet | |
:mars a :Planet. | |
() log:onNegativeSurface { | |
:mars :is :green. | |
}. | |
# all things are beautifull | |
# green things are beautiful | |
(_:A) log:onNegativeSurface { | |
_:A :is :green. | |
() log:onNegativeSurface { | |
_:A :is :beautiful. | |
}. | |
}. | |
# things which are not green are beautiful | |
(_:A) log:onNegativeSurface { | |
() log:onNegativeSurface { | |
_:A :is :green | |
}. | |
() log:onNegativeSurface { | |
_:A :is :beautiful. | |
}. | |
}. | |
# query | |
(_:S _:O) log:onQuerySurface { | |
_:S :is _:O. | |
}. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment