N-Triples (triplets) - a text format used for storing and transmitting RDF graphs ("resource description environment"), is a subset of the Turtle format, easier to parse with parsers. This format is recommended by the World Wide Web Consortium (W3C).
| N-triples | |
|---|---|
| Expansion | |
| MIME type | |
| Published | |
| Format type | , , and |
| Site | |
Content
Format
The triplet consists of three parts: subject, predicate and object, separated by spaces (characters U + 0020 and U + 0009). This sequence must end with a '.' and line feed.
A predicate (also called a property) describes the relationship of the subject with the object. For example, as follows, you can express the statement "Kronos is the father of Zeus":
<http://mythology.Greek.org/#Cronus> <http://www.example.org/schemas/relationship/fatherOf> <http://mythology.Greek.org/#Zeus>.
The subject must be a URI link or an empty node, the predicate is a URI , the object is a URI , an empty node or a literal (used to indicate text data, numbers, dates). A set of triplets constitutes a representation of the RDF graph.
Other formats
To represent RDF graphs, other more complex formats are also used: N-Quads , Turtle , Notation 3 .
Literature
- Shelley Powers. Practical RDF . - "O'Reilly Media, Inc.", July 18, 2003. - P. 42–. - ISBN 978-0-596-55051-6 .
- Semantic Web for the Working Ontologist: Effective Modeling in RDFS and OWL . - Elsevier, July 5, 2011. - P. 44–. - ISBN 978-0-12-385966-2 .