RejectKaigi2010 - RDF.rb

2,034 views

Published on

Lightning Talk about RDF.rb at RejectKaigi2010

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

No Downloads
Views
Total views
2,034
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

RejectKaigi2010 - RDF.rb

  1. 1. RDF.rb Fumihiro Kato /
  2. 2. RDF
  3. 3. Standardized Graph Model
  4. 4. RDF Store = Graph DB
  5. 5. NoSQL
  6. 6. Query SQL SPARQL DB RDB RDF Store Model Relational Model RDF(Graph)
  7. 7. SPARQL • The RDF Query Language • SPARQL Endpoint • WebAPI
  8. 8. SELECT * WHERE { ?s ?p ?o . } LIMIT 10
  9. 9. PREFIX dbp-ont: <http://dbpedia.org/ontology/> PREFIX dbpedia: <http://dbpedia.org/resource/> SELECT * WHERE { ?Person dbp-ont:birthPlace dbpedia:Tokyo ; } LIMIT 100
  10. 10. ActiveRDF RdfContext Ruby-sesame Reddy Rena RDFObjects Semitar RedLeaf RubyRDF Redland
  11. 11. RDF.rb • Pure Ruby • UNLICENSE (Public Domain) • CRuby 1.8.7/1.9.x, JRuby 1.4/1.5 • gem install linkeddata
  12. 12. Serialization Formats • N-Triples • XML • Turtle / N3 • JSON • TRIX • RDFa
  13. 13. Storage Adapter • Memory • Sesame • DataObjects (SQLite3, PostgreSQL) • RedStore • 4Store • MongoDB • Cassandra • Talis
  14. 14. SPARQL with RDf.rb require ‘sparql/client’ # gem install sparql-client sparql = SPARQL::Client(“http://dbpedia.org/sparql”) # SELECT * WHERE { ?s ?p ?o } LIMIT 10 result = sparql.select.where([:s, :p, :o]).limit(10) result.each do |solution| puts solution.inspect end
  15. 15. • http://rdf.rubyforge.org/ • http://github.com/bendiken/rdf • public-rdf-ruby@w3.org

×