From 710c85b15c83577128bf9c0efa363e357fd5507f Mon Sep 17 00:00:00 2001 From: josd Date: Mon, 15 Apr 2024 01:01:21 +0200 Subject: [PATCH 1/6] refreshing --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index c53f227..4d42cae 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,3 @@ See the living document [RDF Surfaces Primer](https://w3c-cg.github.io/rdfsurfac ### Latest Examples and Test Cases - https://github.com/eyereasoner/rdfsurfaces-tests -- https://github.com/eyereasoner/eye/tree/master/reasoning/rdfsurfaces From ef8bc403156f99e06b348dde939aa631f5559f4c Mon Sep 17 00:00:00 2001 From: josd Date: Tue, 30 Apr 2024 10:32:28 +0200 Subject: [PATCH 2/6] translating rdfsurfaces predicates --- index.bs | 62 +++++++++++++++++++++++++++--------------------------- index.html | 6 +++--- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/index.bs b/index.bs index 33dc25d..406abea 100644 --- a/index.bs +++ b/index.bs @@ -205,7 +205,7 @@ First-order logic using *positive* and *negative* surfaces. **First-order logic in Notation3** RDF Surfaces provides a way to express the notion of *positive* and *negative surfaces* -in Notation3 with help of the built-in `log:nand`. The `log:nand` built-in is equivalent to the logical NAND function ("not and"). A `log:nand` is true when at least one of the nested triples in the object is false. A *positive* surface can be constructed from double nested `log:nand` built-in. A *negative* surface can be constructed from a single `log:nand` built-in. +in Notation3 with help of the built-in `log:onNegativeSurface`. The `log:onNegativeSurface` built-in is equivalent to the logical NAND function ("not and"). A `log:onNegativeSurface` is true when at least one of the nested triples in the object is false. A *positive* surface can be constructed from double nested `log:onNegativeSurface` built-in. A *negative* surface can be constructed from a single `log:onNegativeSurface` built-in. The subject of both built-ins are the blank nodes that need to be put on the surface (so that they become existential or universal quantified variables depending on the nesting level of the surface). @@ -217,8 +217,8 @@ surface (so that they become existential or universal quantified variables depen @prefix : <http://example.org/ns#> . @prefix log: <http://www.w3.org/2000/10/swap/log#> . -() log:nand { - (_:X) log:nand { +() log:onNegativeSurface { + (_:X) log:onNegativeSurface { _:X a :City . } } . @@ -246,8 +246,8 @@ _:X a :City . @prefix : <http://example.org/ns#> . @prefix log: <http://www.w3.org/2000/10/swap/log#> . -(_:X) log:nand { - () log:nand { +(_:X) log:onNegativeSurface { + () log:onNegativeSurface { _:X a :City . } } . @@ -262,7 +262,7 @@ _:X a :City . @prefix : <http://example.org/ns#> . @prefix log: <http://www.w3.org/2000/10/swap/log#> . -(_:X) log:nand { +(_:X) log:onNegativeSurface { _:X a :Problem . } . @@ -277,14 +277,14 @@ mean alive, or dead, or both alive and dead. @prefix : <http://example.org/ns#> . @prefix log: <http://www.w3.org/2000/10/swap/log#> . -(_:X) log:nand { +(_:X) log:onNegativeSurface { _:X a :Cat . - () log:nand { + () log:onNegativeSurface { _:X :is :Alive . } . - () log:nand { + () log:onNegativeSurface { _:X :is :Dead . } . } . @@ -299,10 +299,10 @@ mean alive, or dead, or both alive and dead. @prefix : <http://example.org/ns#> . @prefix log: <http://www.w3.org/2000/10/swap/log#> . -(_:X) log:nand { +(_:X) log:onNegativeSurface { _:X a :Cat ; :is :Alive . - () log:nand { + () log:onNegativeSurface { _:X :says :Meow . } . } . @@ -310,7 +310,7 @@ mean alive, or dead, or both alive and dead. -A surface can be queried by providing a query surface with the `log:nans` ("not an answer") built-in. The results of this query will be the final result of the reasoning engine interpreting the surfaces. +A surface can be queried by providing a query surface with the `log:onNegativeAnswerSurface` ("not an answer") built-in. The results of this query will be the final result of the reasoning engine interpreting the surfaces.
@@ -325,17 +325,17 @@ that is a `:City`, it implies that `_:S` needs be be also a `:HumanCommunity`. ex:Ghent a ex:City. # Every city is a human community -(_:S) log:nand { +(_:S) log:onNegativeSurface { _:S a ex:City. - () log:nand { + () log:onNegativeSurface { _:S a ex:HumanCommunity. }. }. # Query -(_:S _:C) log:nand { +(_:S _:C) log:onNegativeSurface { _:S a _:C. - () log:nans { + () log:onNegativeAnswerSurface { _:S a _:C. } . }. @@ -400,7 +400,7 @@ special semantics: - `log:nand` + `log:onNegativeSurface` Negative surface claim that any RDF graph in the object position is false. @@ -471,8 +471,8 @@ and @prefix : <http://example.org/ns#> . @prefix log: <http://www.w3.org/2000/10/swap/log#> . -() log:nand { - () log:nand { +() log:onNegativeSurface { + () log:onNegativeSurface { :Alice a :Person . } . } @@ -509,8 +509,8 @@ As RDF Surface: :Alice a :Person . :Alice :knows :Bob . -() log:nand { - () log:nand { +() log:onNegativeSurface { + () log:onNegativeSurface { :Bob a :Person . :Bob :knows :Alice . } . @@ -544,8 +544,8 @@ As RDF Surface: @prefix : <http://example.org/ns#> . @prefix log: <http://www.w3.org/2000/10/swap/log#> . -() log:nand { - (_:X) log:nand { +() log:onNegativeSurface { + (_:X) log:onNegativeSurface { _:X a :Person . _:X :knows :Alice . } . @@ -594,8 +594,8 @@ As RDF Surface: @prefix : <http://example.org/ns#> . @prefix log: <http://www.w3.org/2000/10/swap/log#> . -(_:X) log:nand { - () log:nand { +(_:X) log:onNegativeSurface { + () log:onNegativeSurface { _:X a :Person . _:X :knows :Alice . } . @@ -638,7 +638,7 @@ As RDF Surface: :Alice a :Person . :Alice :knows :Bob . -() log:nand { +() log:onNegativeSurface { :Bob a :Person . :Bob :knows :Alice . } . @@ -687,7 +687,7 @@ As RDF Surface: :Alice a :Person . :Alice :knows :Bob . -(_:X) log:nand { +(_:X) log:onNegativeSurface { _:X a :Person . _:X :knows :Alice . } . @@ -729,16 +729,16 @@ As RDF Surface: :Alice a :Person . :Alice :knows :Bob . -() log:nand { - () log:nand { +() log:onNegativeSurface { + () log:onNegativeSurface { :Alice a :Person . } . - () log:nand { + () log:onNegativeSurface { :Bob a :Person . } . - () log:nand { + () log:onNegativeSurface { :Charly a :Person . } . }. diff --git a/index.html b/index.html index 60b8080..f18990f 100644 --- a/index.html +++ b/index.html @@ -2222,7 +2222,7 @@

blank surface

First-order logic in Notation3

-

RDF Surfaces provides a way to express the notion of positive and negative surfaces in Notation3 with help of the built-in log:nand. The log:nand built-in is equivalent to the logical NAND function ("not and"). A log:nand is true when at least one of the nested triples in the object is false. A positive surface can be constructed from double nested log:nand built-in. A negative surface can be constructed from a single log:nand built-in.

+

RDF Surfaces provides a way to express the notion of positive and negative surfaces in Notation3 with help of the built-in log:onNegativeSurface. The log:onNegativeSurface built-in is equivalent to the logical NAND function ("not and"). A log:onNegativeSurface is true when at least one of the nested triples in the object is false. A positive surface can be constructed from double nested log:onNegativeSurface built-in. A negative surface can be constructed from a single log:onNegativeSurface built-in.

The subject of both built-ins are the blank nodes that need to be put on the surface (so that they become existential or universal quantified variables depending on the nesting level of the surface).

@@ -2301,7 +2301,7 @@

} .

-

A surface can be queried by providing a query surface with the log:nans ("not an answer") built-in. The results of this query will be the final result of the reasoning engine interpreting the surfaces.

+

A surface can be queried by providing a query surface with the log:onNegativeAnswerSurface ("not an answer") built-in. The results of this query will be the final result of the reasoning engine interpreting the surfaces.

:Ghent a :City is a triple on the implicit positive surface. The two nested @@ -2373,7 +2373,7 @@

3. < semantics - log:nand + log:onNegativeSurface Negative surface claim that any RDF graph in the object position is false.

A surface can contain zero or more other surfaces. These surfaces are then nested. From 9540f5c057ba50310dda5dd28a763f0a71ccaa5d Mon Sep 17 00:00:00 2001 From: josd Date: Tue, 30 Apr 2024 15:13:05 +0200 Subject: [PATCH 3/6] translating rdfsurfaces predicates --- index.html | 171 +++++++++++++++++++++++++++-------------------------- 1 file changed, 86 insertions(+), 85 deletions(-) diff --git a/index.html b/index.html index f18990f..cc3f137 100644 --- a/index.html +++ b/index.html @@ -1488,8 +1488,8 @@ } } - - + + - + - - + +