Upload
fumihiro-kato
View
1.803
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Lightning Talk about RDF.rb at RejectKaigi2010
Citation preview
RDF.rbFumihiro Kato / 加藤文彦
fumi1@twitter
RDF
StandardizedGraph Model
RDF Store = Graph DB
NoSQL
RDB
Query
DB
Model RDF(Graph)
SQL
Relational Model
RDF Store
SPARQL
SPARQL
• The RDF Query Language
• SPARQL Endpoint
• WebAPI
SELECT * WHERE { ?s ?p ?o . } LIMIT 10
PREFIX dbp-ont: <http://dbpedia.org/ontology/>PREFIX dbpedia: <http://dbpedia.org/resource/>
SELECT *WHERE { ?Person dbp-ont:birthPlace dbpedia:Tokyo ;}LIMIT 100
RubyRDF
RdfContext
Redland
ActiveRDF
Rena
RedLeaf
Reddy
SemitarRDFObjects
Ruby-sesame
RDF.rb
• Pure Ruby
• UNLICENSE (Public Domain)
• CRuby 1.8.7/1.9.x, JRuby 1.4/1.5
• gem install linkeddata
Serialization Formats
• N-Triples
• XML
• Turtle / N3
• JSON
• TRIX
• RDFa
Storage Adapter• Memory
• Sesame
• DataObjects (SQLite3, PostgreSQL)
• RedStore
• 4Store
• MongoDB
• Cassandra
• Talis
require ‘sparql/client’ # gem install sparql-client
sparql = SPARQL::Client(“http://dbpedia.org/sparql”)# SELECT * WHERE { ?s ?p ?o } LIMIT 10result = sparql.select.where([:s, :p, :o]).limit(10)result.each do |solution| puts solution.inspectend
SPARQL with RDf.rb
• http://rdf.rubyforge.org/
• http://github.com/bendiken/rdf