Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Another RDF Encoding Form


Published on

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

Published in: Technology
  • Be the first to comment

  • Be the first to like this

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: foaf:name: John Smith foaf:age: 41^xsd:integer foaf:homepage: - _id: dct:modified: 2010-05-29^xsd:date - dct:description: a nice guy@en foaf:knows: foaf:name: Alice
  6. 6. Example 2: Serialization in Perl-Code $rdf = { _id => ’’, foaf_name => ’John Smith’, foaf_age => ’41^xsd:integer’, foaf_homepage => [ { _id => ’’, dct_modified => ’2010-05-29^xsd:date’, }, ’’, ], dct_description => ’a nice guy@en’, foaf_knows => { foaf_name => "Alice" }, };
  7. 7. Getting started Current specification and issue tracker Preliminary implementation in Perl: Feedback welcome!