Sha256: 5b7db75313ce5b0316694c052ffa9d91c6bb2e1e08270f66f40902793bd98761

Contents?: true

Size: 998 Bytes

Versions: 22

Compression:

Stored size: 998 Bytes

Contents

#    Test filter in N3
#
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
@prefix daml: <http://www.daml.org/2001/03/daml+oil#> .
@prefix : <#> .
@prefix rules: <#> .

# Full DanC challenge

this log:forAll <#p> .

{  <#p> a daml:TransitiveProperty . } :means
{
  { this log:forAll <#x> , <#y> , <#z>.
    { <#x> <#p> <#y>. <#y> <#p> <#z>. } log:implies { <#x> <#p> <#z>. }
  } a log:Truth.
} .



# Intoduce a symmetric implication for convienience

this log:forAll <#a>, <#b> .
{ <#a> :means <#b>. }  log:implies {	<#a> log:implies <#b> .
					<#b> log:implies <#a> . } .
  
{   <#a> log:implies <#b> .
    <#b> log:implies <#a> . }  log:implies  { <#a> :means <#b>. }  . 

# and in fact, though it is not axiomatic...
#
#{ <#x> :means <#y>. }  :means {	<#x> log:implies <#y> .
#					<#y> log:implies <#x> . } . 
#


<#ancestor>  a daml:TransitiveProperty .

# (Was the wrong way around for a long time, just confused people.)
<#pa> <#ancestor> <#granpa> .
<#bill> <#ancestor> <#pa> .

#ends

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
rdf_context-0.5.11 spec/swap_test/syntax/this-rules.n3
rdf-n3-0.3.0 spec/swap_test/syntax/this-rules.n3
rdf_context-0.5.10 spec/swap_test/syntax/this-rules.n3
rdf-n3-0.2.3.2 spec/swap_test/syntax/this-rules.n3
rdf-n3-0.2.3.1 spec/swap_test/syntax/this-rules.n3
rdf-n3-0.2.3 spec/swap_test/syntax/this-rules.n3
rdf_context-0.5.9.1 spec/swap_test/syntax/this-rules.n3
rdf_context-0.5.9 spec/swap_test/syntax/this-rules.n3
rdf_context-0.5.8.2 spec/swap_test/syntax/this-rules.n3
rdf_context-0.5.8.1 spec/swap_test/syntax/this-rules.n3
rdf-n3-0.2.2 spec/swap_test/syntax/this-rules.n3
rdf_context-0.5.7 spec/swap_test/syntax/this-rules.n3
rdf_context-0.5.6 spec/swap_test/syntax/this-rules.n3
rdf-n3-0.2.1 spec/swap_test/syntax/this-rules.n3
rdf-n3-0.0.3 spec/swap_test/syntax/this-rules.n3
rdf-n3-0.0.2 spec/swap_test/syntax/this-rules.n3
rdf-n3-0.0.1 spec/swap_test/syntax/this-rules.n3
rdf_context-0.5.5 spec/swap_test/syntax/this-rules.n3
rdf_context-0.5.3 spec/swap_test/syntax/this-rules.n3
rdf_context-0.5.2 spec/swap_test/syntax/this-rules.n3