Top Qs
Timeline
Chat
Perspective
TriX (serialization format)
From Wikipedia, the free encyclopedia
Remove ads
TriX (Triples in XML) is a serialization format for RDF (Resource Description Framework) graphs. It is an XML format for serializing Named Graphs and RDF Datasets which offers a compact and readable alternative to the XML-based RDF/XML syntax.[1][2] It was jointly created by HP Labs and Nokia.[3]
![]() | This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
|
Remove ads
It is suggested that those digital artifacts dependent of the serialization format need means to verify immutability, or digital artifacts including datasets, code, texts, and images are not verifiable nor permanent. Embedding cryptographic hash values to applied URIs has been suggested for structured data files such as nano-publications.[4]
Remove ads
Example
<TriX>
<graph>
<triple>
<uri>https://example.org/Bob</uri>
<uri>https://example.org/wife</uri>
<uri>https://example.org/Mary</uri>
</triple>
<triple>
<uri>https://example.org/Bob</uri>
<uri>https://example.org/name</uri>
<plainLiteral>Bob</plainLiteral>
</triple>
<triple>
<uri>https://example.org/Mary</uri>
<uri>https://example.org/age</uri>
<typedLiteral datatype="https://www.w3.org/2001/XMLSchema#integer">32</typedLiteral>
</triple>
</graph>
</TriX>
Remove ads
References
Further reading
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads