Skip to content

Commit

Permalink
adding good cobbler example
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Jul 31, 2024
1 parent 3388ed2 commit 1a31749
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/pure/cobbler.n3s
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Good Cobbler
# Example from https://shs.hal.science/halshs-04148373/document
# Using functional logic http://intrologic.stanford.edu/chapters/chapter_11.html

@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix : <urn:example:>.

# Some x is a good cobbler
_:x a (:good :Cobbler).

# is there someone x which is good at some y
(_:x _:y) log:onNegativeSurface {
_:x a (:good _:y).
() log:onNegativeAnswerSurface {
:test :is true.
}.
}.

0 comments on commit 1a31749

Please sign in to comment.