Re: Prefixes unsupported in RDF::Reader using N-Triples?

N-Triples does not support prefixes.  You need either rdf-raptor or
Gregg's rdf-n3, either of which can parse what you presented here.

On Fri, Mar 4, 2011 at 9:46 AM, Ross Singer <rossfsinger@gmail.com> wrote:
> The ntriples format doesn't support @prefixes, does it?
>
> -Ross.
>
> On Fri, Mar 4, 2011 at 6:13 AM, Asaf Bartov <asaf.bartov@gmail.com> wrote:
>> Hello again.
>> I'm getting:
>> RDF::ReaderError (expected subject in #<File:/tmp/__temp_ntriples__.nt> line
>> 1):
>> Where my triples are directly from DBPedia, i.e. they begin like:
>> @prefix dbpedia-owl:    <http://dbpedia.org/ontology/> .
>> @prefix dbpedia:        <http://dbpedia.org/resource/> .
>> dbpedia:Audio_Bullys    dbpedia-owl:recordLabel dbpedia:Source .
>> dbpedia:Turin_Brakes    dbpedia-owl:recordLabel dbpedia:Source .
>> etc.
>> Are @prefix statements not supported yet?
>> Thanks,
>>     Asaf
>> --
>> Asaf Bartov <asaf.bartov@gmail.com>
>>
>
>

Received on Friday, 4 March 2011 16:26:47 UTC