TechArticle

N-Triples

Infobox

headline
N-Triples
description
Line-oriented RDF serialization with one triple per line.

N-Triples is the most minimal line-oriented serialization of RDF. Each line expresses exactly one triple as three terms separated by whitespace, terminated by a period.

N-Triples is not designed for human authoring. It is a canonical, machine-friendly format used for streaming, diffing, and interchange. Turtle adds prefixes, abbreviations, and collection syntax on top of the same underlying triple model.

Hello world

<https://example.org/people/alice> <https://schema.org/givenName> "Alice" .

This expresses the RDF statement:

  • subject: https://example.org/people/alice
  • predicate: https://schema.org/givenName
  • object: Alice

In Wiki CLI

Use wiki export -f nt when you want RDF serialized as N-Triples. Built pages also expose this view in the Metadata panel under the NT chip.

References

ContentsOn this page

[hide]

Backlinks