Loading into an RDF::Graph

Hello,

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')
graph.load!


Or perhaps:

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



nick.


http://www.bbc.co.uk/
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