Another RDF Encoding Form

740 views

Published on

Lightening talk for Semantic Web in Libraries (SWIB13) conference at 2013-11-27 about another method of expressing RDF data. See http://gbv.github.io/aREF/ for a preliminary specification.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
740
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Another RDF Encoding Form

  1. 1. Another RDF Encoding Form (aREF) Jakob Voß (VZG) SWIB2013 Lightning Talk, 2013-11-27
  2. 2. Another RDF Encoding Form? aREF = JSON-LD light + Turtle light Based on maps, strings, and arrays like JSON Easy literals like Turtle: "literal@language-tag" "literal^data:type"
  3. 3. What’s wrong with existing serializations? RDF/XML is awful RDF/JSON is too verbose Turtle is one big string (parsing required) JSON-LD is complex (13 keywords WTF?!) None of them are good for writing RDF data right in your code.
  4. 4. Purpose of aREF Read and write RDF data in any code or data structures (JSON, YAML, INI files, Perl code, Ruby, Phython. . . .) aREF Serialization <--> List-Map-Structures <==> RDF Triples (e.g. YAML) (data structure)
  5. 5. Example 1: Serialization in YAML _id: http://example.com/people#john foaf:name: John Smith foaf:age: 41^xsd:integer foaf:homepage: - _id: http://personal.example.org/ dct:modified: 2010-05-29^xsd:date - http://work.example.com/jsmith/ dct:description: a nice guy@en foaf:knows: foaf:name: Alice
  6. 6. Example 2: Serialization in Perl-Code $rdf = { _id => ’http://example.com/people#john’, foaf_name => ’John Smith’, foaf_age => ’41^xsd:integer’, foaf_homepage => [ { _id => ’http://personal.example.org/’, dct_modified => ’2010-05-29^xsd:date’, }, ’http://work.example.com/jsmith/’, ], dct_description => ’a nice guy@en’, foaf_knows => { foaf_name => "Alice" }, };
  7. 7. Getting started Current specification and issue tracker http://gbv.github.io/aREF/ Preliminary implementation in Perl: https://metacpan.org/release/Catmandu-RDF Feedback welcome!

×