created on Feb. 17, 2013, 10:12 p.m. by Hevok & updated on Feb. 17, 2013, 10:12 p.m. by Hevok
There are several different representations of RDF.
Node-Edge-Node Triple (=graph representation)
Subject -Predicate-> Object
http://denigma.de/data/entry/aging http://denigma.de/data/entry/causes http://denigma.de/data/entry/cancer
N3 Notation
Simple listing of Triples
{ http://denigma.de/data/entry/aging, http://denigma.de/data/entry/causes, http://denigma.de/data/entry/cancer }
An alternative representation is the N3 Notation in which the for instance the three URI, i.e. for the resources, for Subject, Predicate and Object are separated by a comma and enclosed in curly braces. Howerver, this gets for longer and more complicated knowledge pretty expensive.
Turtle (Terse RDF Triple Language)
The turtle language is a simplification of the N3 language. It uses URIs in angle brackets, Literals are given in quotation mark and every Triple ends with a period, while whitespaces within the Triple will be ignored.
<Subject><Property><Object> .
<Subject><Property>"Object" .
In Turtle simple Triples/Statements look like that:
<http://denigma.de/data/entry/aging>]
<http://denigma.de/data/entry/causes>]
<http://denigma.de/data/entry/cancer>].
In order to avoid long URIs there are shortcuts. For prefixes that are used rather often one has some ways to define certain prefixes via declaring a namespace:
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>] .
@prefix dc: <http://purl.org/dc/elements/1.1/>] .
@prefix ex: <http://example.org/stuff/1.0>] .
<http://www.w3.org/TR/rdf-syntax-grammar>]
dc:title "RDF/XML Syntax Specification (Revised)"@en ;
ex: editor [
ex:fullname "Dave Beckett"^^xsd:string ;
ex:homePage <http://purl.org/net/dajobe/>]
].
So prefixes will be substituted in the statements. Here editor defines a blank node with Value and a resources associated to it.
4 RDF XML-Serialization*
- RDF can be written in XML but it is less readable and becomes more. RDF XML-Serialization is the standard for each Web document, therefore it can be embedded very simple into the web, because XML can be read by most text processors and parsers. RDF can be read from and written in XML
Comment on This Data Unit