Re: Parsing Freebase RDF

Seo Sanghyeon wrote:
> Hello, new to the list,
> 
> I am trying to figure out how to use Freebase RDF service.
> (See http://blog.freebase.com/2008/10/30/introducing_the_rdf_service/)
> 
> $ curl -L http://rdf.freebase.com/ns/en.blade_runner -o en.blade_runner
> $ rdfproc freebase parse en.blade_runner turtle
> 
> It is Turtle, right? Above errors with:
> 
> rdfproc: Parsing URI
> file:///home/tinuviel/devel/freebase/en.blade_runner with turtle
> parser
> rdfproc: Error - URI
> file:///home/tinuviel/devel/freebase/en.blade_runner:2: The namespace
> prefix in "http:" was not declared.
> URI file:///home/tinuviel/devel/freebase/en.blade_runner:2 raptor
> fatal error - turtle_qname_to_uri failed
> rdfproc: Error - URI
> file:///home/tinuviel/devel/freebase/en.blade_runner:2: syntax error
> rdfproc: Failed to parse into the graph
> rdfproc: The parsing returned 2 errors and 0 warnings
> 
> Help?

Their output is invalid. It's missing angle brackets around the @prefix 
URIs.

-- 
- Josh Tauberer

http://razor.occams.info

"Yields falsehood when preceded by its quotation!  Yields
falsehood when preceded by its quotation!" Achilles to
Tortoise (in "Godel, Escher, Bach" by Douglas Hofstadter)

Received on Thursday, 12 March 2009 12:32:55 UTC