I'm wondering about the current support there is in Ruby for semantic web technologies. Is there good RDF options? It seems that the last surveys done were circa 2007 ( http://paul-classic.stadig.name/2007/10/26/the-state-of-rdf-support-in-ruby-2007/ ). Is Redland's RDF wrappers the best way to go for RDF support - all the other projects mentioned in that aging article seem to be unsupported or dropped. Is Ruby perhaps a bad choice if one which to pursue projects pertaining to the semantic web?
相关问题
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- reference to a method?
- ruby 1.9 wrong file encoding on windows
- gem cleanup shows error: Unable to uninstall bundl
相关文章
- RDF libraries for Scala [closed]
- Ruby using wrong version of openssl
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- “No explicit conversion of Symbol into String” for
- Segmentation fault with ruby 2.0.0p247 leading to
- How to detect if an element exists in Watir
- uninitialized constant Mysql2::Client::SECURE_CONN
I just wrote up a new survey article on Ruby and RDF. Some of my conclusions are:
There are also some interesting follow-up comments from the authors of RDF.rb and Spira. Ben Lavender, in particular, has thought a lot about how to sanely map RDF onto Ruby objects.
AllegroGraph (RDF DB) has a Ruby Client - https://github.com/phifty/agraph
There is a Ruby Sesame library: http://github.com/tillsc/ruby-sesame
Sesame is one of the two most popular RDF frameworks for Java. We (Ontotext) develop a triple storage + built-in inference engine called OWLIM. We provide a free version called SwiftOWLIM.
Some of our users use it with Ruby through the above Ruby Sesame library.
Check out RDF.rb http://rdf.rubyforge.org/
I'm the author of Redland but I don't use Ruby myself. The ruby bindings probably still work (they passed the unit tests at the last release) but probably need some love for any newer ruby language changes.
Pure Ruby users I think have tried Active RDF which is more recent than the other things you suggest but focused on Rails.
Otherwise I suggest asking on the Semantic Web Interest Group IRC channel - #swig on irc.freenode.net
Edit: There's also Reddy http://github.com/tommorris/reddy/tree/master and other ruby rdf code on github if you look around.
Personally I went for RDF.rb as their web site had OK documentation, and it was easy to get started with using the blog tutorials.
ActiveRDF seems like a larger project - but their wiki is down (actually the main page links to a copy of the wiki on archive.com) - and all the example talk about SPARQL queries.
Here's a simple triple lookup example, apologies for silly syntax as this was my first Ruby script:
Unfortunately, like many Ruby and Python dependencies, this also needed some binaries to be able to read Turtle or RDF/XML. "aptitude install raptor-utils" took care of that, though.