Skip to content

Commit

Permalink
testing inference fuse
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Nov 21, 2023
1 parent 96f9d08 commit 73c6521
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rdfreasoning/temp/out/socrates-contradiction.ttl.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
** ERROR ** eam ** inference_fuse((
(:Socrates a :Mortal)
(:Socrates a :Immortal)
) => false)
33 changes: 33 additions & 0 deletions rdfreasoning/temp/socrates-contradiction.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rule: <http://eyereasoner.github.io/rule#>.
@prefix : <urn:example:>.

# facts
:Socrates a :Human, :Immortal.
:Human rdfs:subClassOf :Mortal.

# forward rule
[] a rule:ForwardRule;
rule:premise (
(_:A rdfs:subClassOf _:B)
(_:S a _:A)
);
rule:conclusion (
(_:S a _:B)
).

[] a rule:ForwardRule;
rule:premise (
(_:S a :Mortal)
(_:S a :Immortal)
);
rule:conclusion false.

# query rule
[] a rule:QueryRule;
rule:premise (
(_:S a :Mortal)
);
rule:conclusion (
(_:S a :Mortal)
).
1 change: 1 addition & 0 deletions rdfreasoning/temp/test
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
eye --quiet --nope append.ttl --output out/append.ttl.out
eye --quiet --nope lott.ttl --output out/lott.ttl.out
eye --quiet --nope sha512.ttl --output out/sha512.ttl.out
eye --quiet --nope socrates-contradiction.ttl 2> out/socrates-contradiction.ttl.out
eye --quiet --nope union.ttl --output out/union.ttl.out

0 comments on commit 73c6521

Please sign in to comment.