TriX (syntax)
From Wikipedia, the free encyclopedia
| 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.
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>
External links[edit]
|
||||||||||||||||||||||||||||||||||||
| This World Wide Web–related article is a stub. You can help Wikipedia by expanding it. |