Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Object oriented RDF in Ruby
Ruby Java
Branch: master
Failed to load latest commit information.
activerdf-jena
activerdf-rdflite Renamed truefalse method to_boolean and moved into ActiveRDF::Helpers
activerdf-redland Renamed truefalse method to_boolean and moved into ActiveRDF::Helpers
activerdf-sesame Standardize line endings to LF
activerdf-sparql Renamed truefalse method to_boolean and moved into ActiveRDF::Helpers
activerdf-yars updated requires to reflect new file locations
designdocs
lib Fix documentation bug
test updated requires to reflect new file locations
tools
.bzrignore add method to remove an Adapter from the ConnectionPool to main Activ…
.gitignore
CHANGELOG
LICENSE added readme/license to rdflite
README.rdoc Fixed regexp, documentation
Rakefile
VERSION
rcov.sh
rubybeautifier.rb

README.rdoc

ActiveRDF is a library for accessing RDF data from Ruby programs. It can be used as data layer in Ruby-on-Rails, similar to ActiveRecord (which provides an O/R mapping to relational databases). ActiveRDF in RoR allows you to create semantic web applications very rapidly. ActiveRDF gives you a Domain Specific Language (DSL) for your RDF model: you can address RDF resources, classes, properties, etc. programmatically, without queries.

See www.activerdf.org for more information.

Getting Started

See wiki.activerdf.org/GettingStartedGuide for information on how to install ActiveRDF, point to data sources, and use it. In brief: “gem install activerdf_sparql”.

Simple Example

The following example uses a SPARQL endpoint with FOAF data and displays all people found in the data source:

require 'activerdf'
ConnectionPool.add_data_source :type => :sparql, :host => '...'
Namespace.register :foaf, 'http://xmlns.com/foaf/0.1/'
ObjectManager.construct_classes
people = FOAF::Person.find_all

License

ActiveRDF is distributed under the LGPL license.

Authors

  • Eyal Oren

  • Renaud Delbru

  • Sebastian Gerke

  • Benjamin Heitmann

Something went wrong with that request. Please try again.