TriX (serialization format)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
TriX
Internet media type text/xml
Type of format semantic web
Container for RDF data
Extended to TriX
Standard Specification

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] It was jointly created by HP Labs and Nokia.[2]

Example[edit]

<TriX>
<graph>
<triple>
<uri>http://example.org/Bob</uri>
<uri>http://example.org/wife</uri>
<uri>http://example.org/Mary</uri>
</triple>
<triple>
<uri>http://example.org/Bob</uri>
<uri>http://example.org/name</uri>
<plainLiteral>Bob</plainLiteral>
</triple>
<triple>
<uri>http://example.org/Mary</uri>
<uri>http://example.org/age</uri>
<typedLiteral datatype="http://www.w3.org/2001/XMLSchema#integer">32</typedLiteral>
</triple>
</graph>
</TriX>

Reference[edit]

  1. ^ "TriX : RDF Triples in XML". Hpl.hp.com. Retrieved 2018-03-22.
  2. ^ "TriX: An XML Serialization for RDF Triples". Web.archive.org. Archived from the original on 2011-07-24. Retrieved 2018-03-22.