TriX (syntax)
From Wikipedia, the free encyclopedia
Internet media type |
XML |
---|---|
Type of format | semantic web |
Container for | RDF data |
Extended to | TriX |
Standard(s) | 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.
Example
<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>
External links
|
This article is issued from Wikipedia. The text is available under the Creative Commons Attribution/Share Alike; additional terms may apply for the media files.