Notation 3
From Wikipedia, the free encyclopedia
Notation 3, or N3 as it is more commonly known, is a shorthand non-XML serialization of Resource Description Framework models, designed with human-readability in mind: N3 is much more compact and readable than XML RDF notation. The format is being developed by Tim Berners-Lee and others from the Semantic Web community.
[edit] Examples
This RDF model in standard XML notation
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> <rdf:Description rdf:about="http://en.wikipedia.org/wiki/Tony_Benn"> <dc:title>Tony Benn</dc:title> <dc:publisher>Wikipedia</dc:publisher> </rdf:Description> </rdf:RDF>
may be written in Notation 3 like this:
@prefix dc: <http://purl.org/dc/elements/1.1/>. <http://en.wikipedia.org/wiki/Tony_Benn> dc:title "Tony Benn"; dc:publisher "Wikipedia".
(This example would also be valid Turtle.)
[edit] External links
- Notation 3 Specification on W3C Design Issues by Tim Berners-Lee
- Notation 3 Primer: Getting into RDF & Semantic Web using N3
- A Rough Guide to Notation3
- RDF for "Little Languages"