N-Triples
N-Triples is a format for storing and transmitting data.[src] It is a line-based, plain text serialisation format for RDF (Resource Description Framework) graphs, and a subset of the Turtle (Terse RDF Triple Language) format.[src] N-Triples should not be confused with Notation3 which is a superset of Turtle.[src] N-Triples was primarily developed by Dave Beckett at the University of Bristol and Art Barstow at the World Wide Web Consortium (W3C).[src] N-Triples was designed to be a simpler format than Notation3 and Turtle, and therefore easier for software to parse and generate.[src] However, because it lacks some of the shortcuts provided by other RDF serialisations (such as CURIEs and nested resources, which are provided by both RDF/XML and Turtle) it can be onerous to type out large amounts of data by hand, and difficult to read.[src]
N-Triples is a format for storing and transmitting data.[src] It is a line-based, plain text serialisation format for RDF (Resource Description Framework) graphs, and a subset of the Turtle (Terse RDF Triple Language) format.[src] N-Triples should not be confused with Notation3 which is a superset of Turtle.[src] N-Triples was primarily developed by Dave Beckett at the University of Bristol and Art Barstow at the World Wide Web Consortium (W3C).[src] N-Triples was designed to be a simpler format than Notation3 and Turtle, and therefore easier for software to parse and generate.[src] However, because it lacks some of the shortcuts provided by other RDF serialisations (such as CURIEs and nested resources, which are provided by both RDF/XML and Turtle) it can be onerous to type out large amounts of data by hand, and difficult to read.[src] ==File format== Each line of the file has either the form of a comment or of a statement: A statement consists of four parts, separated by whitespace: the subject, the predicate, the object, a full stop which means the termination of a statement Subjects may take the form of a URI or a blank node; predicates must be a URI; objects may be a URI, blank node or a literal.[src] URIs are delimited with less-than and greater-than signs used as angle brackets.[src] Blank nodes are represented by an alphanumeric string, prefixed with an underscore and colon ( _: ).[src] Literals are represented as printable ASCII strings (with backslash escapes), delimited with double-quote characters, and optionally suffixed with a language or datatype indicator.[src] Language indicators are an at sign followed by an RFC 3066 language tag; datatype indicators are a double-caret followed by a URI.[src] Comments consist of a line beginning with a hash sign.[src] N-Triples Art Barstow Dave Beckett N-Triples ↵ .[src] "N-Triples"@en-US .[src] _:art .[src] _:dave .[src] _:art .[src] _:art "Art Barstow".[src] _:dave .[src] _:dave "Dave Beckett".[src] (The symbol ↵ is used to indicate a place where a line has been wrapped for legibility.[src] N-Triples do not allow lines to be wrapped arbitrarily: the line endings indicate the end of a statement.) ==N-Quads== The related N-Quads superset extends N-Triples with an optional context value at the fourth position.[src] .[src] # comments here # or on a line by themselves _:subject1 "object1" .[src] _:subject2 "object2" .[src] ==See also== Notation3 (N3) Turtle (syntax) TriG (syntax) ==References== ==External links== RDF for Intrepid Unix Hackers: Grepping N-Triples RDF for Intrepid Unix Hackers: Transmuting N-Triples[src]
32 sentences · 32 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"N-Triples." encyclopegia.org, 2025, https://encyclopegia.org/wiki/n-triples. Accessed 02 December 2026.
Chicago
"N-Triples." encyclopegia.org. Accessed December 2, 2026. https://encyclopegia.org/wiki/n-triples.
APA
encyclopegia.org. (2025). N-Triples. Retrieved December 2, 2026, from https://encyclopegia.org/wiki/n-triples
Accessed December 2, 2026 · CC BY-SA 4.0 · citation page · JSON