You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Benson Margulies <bi...@gmail.com> on 2010/12/25 02:38:49 UTC

Oh, no, it's a RIOT?

Note the spelling at the end ...

org.openjena.riot.RiotException:
<urn:ced318ff2aad94cd90e753feb96d7d43> Code:
61/SCHEME_PATTERN_MATCH_FAILED in PATH: The scheme specific syntax
rules are violared.

More seriously, I don't know what's wrong.

I switched from RDF/XML-ABBREV to N3 to save space, and now reading it ...

Caused by: org.openjena.riot.RiotException:
<urn:ced318ff2aad94cd90e753feb96d7d43> Code:
61/SCHEME_PATTERN_MATCH_FAILED in PATH: The scheme specific syntax
rules are violared.
	at org.openjena.riot.IRIResolver.exceptions(IRIResolver.java:239)
	at org.openjena.riot.IRIResolver.access$100(IRIResolver.java:23)
	at org.openjena.riot.IRIResolver$IRIResolverNormal.resolveToString(IRIResolver.java:363)
	at org.openjena.riot.IRIResolver.resolveGlobalToString(IRIResolver.java:78)
	at org.openjena.riot.JenaReaderRIOT.readImpl(JenaReaderRIOT.java:121)
	at org.openjena.riot.JenaReaderRIOT.read(JenaReaderRIOT.java:79)
	at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:226)
	at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.java:2148)
	at com.basistech.jug.rdfdb.jena.JenaStore.addGraph(JenaStore.java:55)
	at com.basistech.jug.rdfdb.task.RdfdbTaskEndpoint.assignTask(RdfdbTaskEndpoint.java:48)


The start of one of the N3 blobs looks like the following. I used "N3"
as the write format and as the read format.


@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rex:     <http://www.basistech.com/ontologies/2010/6/rex.owl#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<uri:001f469cc17412da1ce53fa1f9b67481#18>
      a       rex:Location ;
      rex:hasEntityDetectionSource
              "statistical" ;
      rex:hasNormalizedText
              "Asia" ;
      rex:hasOriginalText "Asia" .

Re: Oh, no, it's a RIOT?

Posted by Benson Margulies <bi...@gmail.com>.
mvnrepository.com is behind, as sometimes happens. Thanks, I've updated.

On Sun, Dec 26, 2010 at 12:55 PM, Andy Seaborne <an...@gmail.com> wrote:
>
>
> On 26/12/10 14:34, Benson Margulies wrote:
>>
>> Andy,
>>
>> Due to TDB usage, I'm on Jena 2.6.3. (The newest tdb I've found on
>> central aligns there, I think.)
>
> TDB 0.8.8 was released recently to go with Jena 2.6.4 as part fo the
> non-Apache releases.  It was built with Jena 2.6.4 and ARQ 2.8.7.
>
>        Andy
>
>> This problem I got around by adding one more : to my urn: uris.
>>
>> My bigger problem was the 'N3 round trip' issue that I opened a JIRA
>> for. So, for now, I gyrated to applying XML FastInfoset to XML/RDF.
>

Re: Oh, no, it's a RIOT?

Posted by Andy Seaborne <an...@gmail.com>.

On 26/12/10 14:34, Benson Margulies wrote:
> Andy,
>
> Due to TDB usage, I'm on Jena 2.6.3. (The newest tdb I've found on
> central aligns there, I think.)

TDB 0.8.8 was released recently to go with Jena 2.6.4 as part fo the 
non-Apache releases.  It was built with Jena 2.6.4 and ARQ 2.8.7.

	Andy

> This problem I got around by adding one more : to my urn: uris.
>
> My bigger problem was the 'N3 round trip' issue that I opened a JIRA
> for. So, for now, I gyrated to applying XML FastInfoset to XML/RDF.

Re: Oh, no, it's a RIOT?

Posted by Benson Margulies <bi...@gmail.com>.
Andy,

Due to TDB usage, I'm on Jena 2.6.3. (The newest tdb I've found on
central aligns there, I think.)

This problem I got around by adding one more : to my urn: uris.

My bigger problem was the 'N3 round trip' issue that I opened a JIRA
for. So, for now, I gyrated to applying XML FastInfoset to XML/RDF.




On Sun, Dec 26, 2010 at 7:20 AM, Andy Seaborne <an...@gmail.com> wrote:
>
>
> On 25/12/10 01:38, Benson Margulies wrote:
>>
>> Note the spelling at the end ...
>>
>> org.openjena.riot.RiotException:
>> <urn:ced318ff2aad94cd90e753feb96d7d43>  Code:
>> 61/SCHEME_PATTERN_MATCH_FAILED in PATH: The scheme specific syntax
>> rules are violared.
>
> Not my error message :-)
>
> Looking at the source code, it's been fixed - except in a comment.
>
>>
>> More seriously, I don't know what's wrong.
>>
>> I switched from RDF/XML-ABBREV to N3 to save space, and now reading it ...
>>
>> Caused by: org.openjena.riot.RiotException:
>> <urn:ced318ff2aad94cd90e753feb96d7d43>  Code:
>> 61/SCHEME_PATTERN_MATCH_FAILED in PATH: The scheme specific syntax
>> rules are violared.
>>        at org.openjena.riot.IRIResolver.exceptions(IRIResolver.java:239)
>>        at org.openjena.riot.IRIResolver.access$100(IRIResolver.java:23)
>>        at
>> org.openjena.riot.IRIResolver$IRIResolverNormal.resolveToString(IRIResolver.java:363)
>>        at
>> org.openjena.riot.IRIResolver.resolveGlobalToString(IRIResolver.java:78)
>>        at
>> org.openjena.riot.JenaReaderRIOT.readImpl(JenaReaderRIOT.java:121)
>>        at org.openjena.riot.JenaReaderRIOT.read(JenaReaderRIOT.java:79)
>>        at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:226)
>>        at
>> com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.java:2148)
>>        at
>> com.basistech.jug.rdfdb.jena.JenaStore.addGraph(JenaStore.java:55)
>>        at
>> com.basistech.jug.rdfdb.task.RdfdbTaskEndpoint.assignTask(RdfdbTaskEndpoint.java:48)
>>
>>
>> The start of one of the N3 blobs looks like the following. I used "N3"
>> as the write format and as the read format.
>
> This parses OK for me - both with RIOT and the existing Jena parser.
>
> Which version?  And was there a line number?
>
>> @prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>  .
>> @prefix rex:<http://www.basistech.com/ontologies/2010/6/rex.owl#>  .
>> @prefix xsd:<http://www.w3.org/2001/XMLSchema#>  .
>> @prefix owl:<http://www.w3.org/2002/07/owl#>  .
>> @prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>  .
>>
>> <uri:001f469cc17412da1ce53fa1f9b67481#18>
>>       a       rex:Location ;
>>       rex:hasEntityDetectionSource
>>               "statistical" ;
>>       rex:hasNormalizedText
>>               "Asia" ;
>>       rex:hasOriginalText "Asia" .
>
>        Andy
>

Re: Oh, no, it's a RIOT?

Posted by Andy Seaborne <an...@gmail.com>.

On 25/12/10 01:38, Benson Margulies wrote:
> Note the spelling at the end ...
>
> org.openjena.riot.RiotException:
> <urn:ced318ff2aad94cd90e753feb96d7d43>  Code:
> 61/SCHEME_PATTERN_MATCH_FAILED in PATH: The scheme specific syntax
> rules are violared.

Not my error message :-)

Looking at the source code, it's been fixed - except in a comment.

>
> More seriously, I don't know what's wrong.
>
> I switched from RDF/XML-ABBREV to N3 to save space, and now reading it ...
>
> Caused by: org.openjena.riot.RiotException:
> <urn:ced318ff2aad94cd90e753feb96d7d43>  Code:
> 61/SCHEME_PATTERN_MATCH_FAILED in PATH: The scheme specific syntax
> rules are violared.
> 	at org.openjena.riot.IRIResolver.exceptions(IRIResolver.java:239)
> 	at org.openjena.riot.IRIResolver.access$100(IRIResolver.java:23)
> 	at org.openjena.riot.IRIResolver$IRIResolverNormal.resolveToString(IRIResolver.java:363)
> 	at org.openjena.riot.IRIResolver.resolveGlobalToString(IRIResolver.java:78)
> 	at org.openjena.riot.JenaReaderRIOT.readImpl(JenaReaderRIOT.java:121)
> 	at org.openjena.riot.JenaReaderRIOT.read(JenaReaderRIOT.java:79)
> 	at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:226)
> 	at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.java:2148)
> 	at com.basistech.jug.rdfdb.jena.JenaStore.addGraph(JenaStore.java:55)
> 	at com.basistech.jug.rdfdb.task.RdfdbTaskEndpoint.assignTask(RdfdbTaskEndpoint.java:48)
>
>
> The start of one of the N3 blobs looks like the following. I used "N3"
> as the write format and as the read format.

This parses OK for me - both with RIOT and the existing Jena parser.

Which version?  And was there a line number?

> @prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>  .
> @prefix rex:<http://www.basistech.com/ontologies/2010/6/rex.owl#>  .
> @prefix xsd:<http://www.w3.org/2001/XMLSchema#>  .
> @prefix owl:<http://www.w3.org/2002/07/owl#>  .
> @prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>  .
>
> <uri:001f469cc17412da1ce53fa1f9b67481#18>
>        a       rex:Location ;
>        rex:hasEntityDetectionSource
>                "statistical" ;
>        rex:hasNormalizedText
>                "Asia" ;
>        rex:hasOriginalText "Asia" .

	Andy