W3C home > Mailing lists > Public > public-rdf-ruby@w3.org > April 2010

Loading into an RDF::Graph

From: Nicholas Humfrey <nicholas.humfrey@bbc.co.uk>
Date: Thu, 15 Apr 2010 10:30:53 +0100
To: <public-rdf-ruby@w3.org>
Message-ID: <C7EC9B5D.26ADB%nicholas.humfrey@bbc.co.uk>

I was playing about with RDF.rb last night. I started by trying this:

require 'rubygems'
require 'rdf'
require 'rdf/raptor'

graph = RDF::Graph.new('http://www.bbc.co.uk/programmes/b0081dq5.rdf')
graph.load(graph.context.to_s, :base_uri => graph.context)

Could the API be simplified to:

graph = RDF::Graph.new('http://www.bbc.co.uk/programmes/b0081dq5.rdf')

Or perhaps:

graph = RDF::Graph.load('http://www.bbc.co.uk/programmes/b0081dq5.rdf')


This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
Received on Thursday, 15 April 2010 09:31:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:53:40 UTC