Skip to content

Commit

Permalink
refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Nov 6, 2024
1 parent f5c4593 commit aa109d6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reasoning/n3plus1/README
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
N3 plus 1
---------

N3 plus increments like RDF 1.1, RDF 1.2, compound terms, ...
N3 plus increments like RDF 1.1, RDF 1.2, sets, compounds, ...
12 changes: 11 additions & 1 deletion reasoning/n3plus1/in.n3
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,17 @@ _:i {
{| :from 1964; :to 1975 |}
{| :from 1980; :to 2001 |} .

# compound terms
# sets
:g :h ($ :s :m :l $).

{
:g :h ?I.
?I log:equalTo ($ :l :s :m :l :s $).
} => {
?I :v :w.
}.

# compounds
:i :j ^(:f :a :b :c).

{
Expand Down
2 changes: 2 additions & 0 deletions reasoning/n3plus1/out.n3
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.

_:e_g_1 :h _:e_i_1.
:g :h ($ :l :m :s $).
:s :p << :d :e :f ~ _:bne_21 >>.
:s :p << :g :h :i ~ :x >>.
:s :p :o.
Expand All @@ -21,6 +22,7 @@ _:bn_1 :q2 "B".
<< :liz :marriedTo :richard ~ _:bne_34 >> :from 1980 .
<< :liz :marriedTo :richard ~ _:bne_31 >> :to 1975 .
<< :liz :marriedTo :richard ~ _:bne_34 >> :to 2001 .
($ :l :m :s $) :v :w.
(:g :d :e) :k ^(:g :d :e).

_:e_g_1 {
Expand Down

0 comments on commit aa109d6

Please sign in to comment.