- From: Nicholas Humfrey <nicholas.humfrey@bbc.co.uk>
- Date: Tue, 06 Apr 2010 10:10:51 +0100
- To: <public-rdf-ruby@w3.org>
- Message-ID: <C7E0B92C.26221%nicholas.humfrey@bbc.co.uk>
Hello, I am planning on writing a ruby gem to makes it easy to consume RDF from BBC Programmes. I started by having a play with rdf-raptor: require 'rubygems' require 'rdf' require 'rdf/raptor' puts RDF::Raptor.available? #=> true puts RDF::Raptor.version #=> "1.4.21" RDF::Reader.open('http://www.bbc.co.uk/programmes/b00rmssw.rdf') do |reader| reader.each_statement do |statement| puts statement.inspect end end And the output was: #<RDF::Statement:0x810896e4(<file:///programmes/b00rmssw.rdf> <http://www.w3.org/2000/01/rdf-schema#label> "Description of the episode GCHQ: Cracking the Code" .)> #<RDF::Statement:0x81084964(<file:///programmes/b00rmssw.rdf> <http://purl.org/dc/terms/created> "2010-03-23T00:12:42Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> .)> #<RDF::Statement:0x8107e488(<file:///programmes/b00rmssw.rdf> <http://purl.org/dc/terms/modified> "2010-04-01T15:38:27+01:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> .)> #<RDF::Statement:0x8107d510(<file:///programmes/b00rmssw.rdf> <http://xmlns.com/foaf/0.1/primaryTopic> <file:///programmes/b00rmssw#programme> .)> .... Gem versions: rdf (0.1.5) rdf-raptor (0.2.0) 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 Tuesday, 6 April 2010 09:11:22 UTC