parser of turtle files

19 views
Skip to first unread message

Alexandre Rademaker

unread,
Aug 20, 2015, 1:26:00 AM8/20/15
to HermiT Users
I have reported it in the issues of the project but since Google will shutdown code.google.com ....

1. Create a turtle file with the fragment below which is valid:

<https://w3id.org/own-pt/wn30-pt/instances/synset-00233335-v>
    a <https://w3id.org/own-pt/wn30/schema/VerbSynset> ;
    <http://www.w3.org/2004/02/skos/core#inScheme> <https://w3id.org/own-pt/wn30-pt/> ;
    <https://w3id.org/own-pt/wn30/schema/containsWordSense> <https://w3id.org/own-pt/wn30-pt/instances/wordsense-00233335-v-1>, <https://w3id.org/own-pt/wn30-pt/instances/wordsense-00233335-v-3> ;
    <https://w3id.org/own-pt/wn30/schema/gloss> """estabelecer limites em (alcance ou acesso); \"vamos
    restringir o uso desse estacionamento\"; \"Limite o tempo que voce
    pode gastar com seus amigos\"""" ;
    <https://w3id.org/own-pt/wn30/schema/synsetId> "233335"^^<http://www.w3.org/2001/XMLSchema#nonNegativeInteger> .

2. Execute Hermit with 

java -jar /usr/local/HermiT/HermiT.jar --verbose=2 -k  tudo-pro.ttl

3. You will get

Parser: TurtleOntologyParser
uk.ac.manchester.cs.owl.owlapi.turtle.parser.ParseException: Encountered " "\"" "\" ;\n    <https://w3id.org/own-pt/wn30/schema/synsetId> \" "" at line 4389743, column 36.
Was expecting:
    "." ...


Ignazio Palmisano

unread,
Aug 20, 2015, 2:35:40 AM8/20/15
to HermiT Users
On 20 August 2015 at 06:26, Alexandre Rademaker <arade...@gmail.com> wrote:
> I have reported it in the issues of the project but since Google will
> shutdown code.google.com ....
>
> 1. Create a turtle file with the fragment below which is valid:
>

Hi, this is not a bug in HermiT but in the OWL API that it uses. It
has been fixed in more recent versions of OWL API.

I've raised a pull request on the HermiT's copy available on GitHub to
use a newer OWLAPI. While that is going through review to be merged,
you can use my fork here:

https://github.com/ignazio1977/hermit-reasoner

It uses OWLAPI 4.0.2 and should allow you to parse this input correctly.
HTH,
I.

> <https://w3id.org/own-pt/wn30-pt/instances/synset-00233335-v>
> a <https://w3id.org/own-pt/wn30/schema/VerbSynset> ;
> <http://www.w3.org/2004/02/skos/core#inScheme>
> <https://w3id.org/own-pt/wn30-pt/> ;
> <https://w3id.org/own-pt/wn30/schema/containsWordSense>
> <https://w3id.org/own-pt/wn30-pt/instances/wordsense-00233335-v-1>,
> <https://w3id.org/own-pt/wn30-pt/instances/wordsense-00233335-v-3> ;
> <https://w3id.org/own-pt/wn30/schema/gloss> """estabelecer limites em
> (alcance ou acesso); \"vamos
> restringir o uso desse estacionamento\"; \"Limite o tempo que voce
> pode gastar com seus amigos\"""" ;
> <https://w3id.org/own-pt/wn30/schema/synsetId>
> "233335"^^<http://www.w3.org/2001/XMLSchema#nonNegativeInteger> .
>
> 2. Execute Hermit with
>
> java -jar /usr/local/HermiT/HermiT.jar --verbose=2 -k tudo-pro.ttl
>
> 3. You will get
>
> Parser: TurtleOntologyParser
> uk.ac.manchester.cs.owl.owlapi.turtle.parser.ParseException: Encountered "
> "\"" "\" ;\n <https://w3id.org/own-pt/wn30/schema/synsetId> \" "" at line
> 4389743, column 36.
> Was expecting:
> "." ...
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "HermiT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hermit-users...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages