arXiv:2610.31266cs.LOOct 2026

Manuscript Offprint

arXiv:2610.31266

Notation3: Graph Terms for RDF

Dörthe Arndt, Pierre-Antoine Champin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Notation3 Logic was introduced as an extension of RDF allowing the user to express rules on top of triples and to make statements about graphs. The original proposal of the logic only came with an informal specification of its semantics which has been refined later on. While this refinement clarified the meaning of rules and implicitly quantified variables, it left the meaning of graphs used as terms – so-called graph terms – open. In this paper we aim to close this gap. We discuss in detail, how graph terms are used in Notation3, which formal requirements they need to meet, and provide examples to illustrate the difficulties when defining their semantics. We then introduce an abstract syntax for the logic and define its semantics in two steps: similarly to RDF's simple interpretations, we define interpretations and basic entailment for Notation3 which covers plain RDF triples but also triples containing graph terms. N3-entailment is then an extension of basic entailment which assigns meaning to the different special predicates of the logic like for example the implication symbol. N3-entailment is defined in a way that it can be extended whenever a new predicate is added to the logic. As Notation3 Logic is currently under development, we expect many predicates to be added. Our research provides and important step towards the full standardisation of the logic.

2012 ACM Subject Classification Information systems → Resource Description Framework (RDF); Theory of computation → Logic and verification; Theory of computation → Semantics and reasoning

Keywords and phrases Notation3 Logic, Graph terms, Semantics, Rules, RDF

Digital Object Identifier 10.4230/TGDK.1.1.42

Supplementary Material The authors declare that this article involves no relevant supplementary resources.

Acknowledgements The authors would like to thank all the participants of the W3C Notation 3 Community Group a^{a} for fruitful discussions and their feedback on early stages of this work.

Received Date of submission Accepted Date of acceptance Published Date of publishing

Editor TGDK section area editor

a^{a} https://www.w3.org/community/n3-dev/

1 Introduction

Ever since the invention of the Semantic Web, the community saw the need to allow users to make statements about statements. Different approaches like singleton properties [31], the inclusion of named graphs to RDF [30, Section 4], or the integration of RDF-star (formally RDF*) [21, 22] into the upcoming RDF 1.2, are only some indicators for it. And while these proposals and standards to some extend address the problem, they all have some draw-backs: singleton properties and RDF-star only support statements about triples but not about RDF graphs and for named graphs, there is so far no agreement about their semantics [39].

In this paper we focus on another framework which supports statements about statements: Notation3 Logic (N3) [13]. N3 was proposed by Tim Berners-Lee and others to provide a simple syntax for RDF – this resulted in RDF-Turtle [32] – but also as a logical extension for RDF. N3

© Jane Open Access and Joan R. Public;

licensed under Creative Commons License CC-BY 4.0

Transactions on Graph Data and Knowledge, Vol. 1, Issue 1, Article No. 42, pp. 42:1–42:29

Transactions on Graph Data and Knowledge

Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany

Figure

42:2 Notation3: Graph Terms for RDF

supports so-called graph terms which are conceptually very similar to RDF-star's triple terms with the only difference that N3 does not only allow triples as terms but entire graphs. Of course, this comes with challenges: graph terms could stand for themselves or for bigger graphs, scoping of blank nodes is far from trivial, and graph terms are used to express logical constructs. When originally proposed, the semantics of N3 has only been defined informally and different implementations like Cwm [10], EYE [37] or Data-Fu [27] were developed to reason on it. The theoretical works which followed later on to define a model theoretic semantics for N3 did focus on rules [3, 4] and on implicit quantification [5], but did not fully cover the semantics of graph terms as it was originally intended.

In this paper we aim to fill this gap: We analyse the requirements a graph term semantics has to comply with according to the informal specifications and the existing implementations. We then propose an abstract syntax for N3 and define its semantics in two steps: we first specify a base semantics which covers the meaning of graph terms but does not assign any meaning to the built-in predicates of the logic. In that sense our base semantics is very similar to RDF's simple entailment. In a second step we define N3-semantics which covers the logical predicates in N3's log-namespace 1^{1}. Here we mainly focus on logical implication (log:implies) and on graph inclusion (log:includes). Especially the former is crucial for N3 as this predicate enables rule-based reasoning. We furthermore show that our definitions are in-line with the requirements.

The remainder of this paper is structured as follows: In Section 2 we analyse how graph terms are used in N3, and we derive the requirements for their semantics in Section 3. In Section 4 we define an abstract syntax for N3 and explain how it maps to the concrete serialization syntax. In Section 5 we then provide a formal semantics for the abstract syntax, and we show in Section 6 that the semantics of graph terms meets our requirements. In Section 7 we discuss the related work and explain how our formalisation relates to other approaches to enable statements about statements in RDF. With Section 8 we conclude our paper.

References (32)