Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[p4-feedback] Problem loading Turtle file

Holger Stenzhorn holger.stenzhorn at ifomis.uni-saarland.de
Wed Apr 15 10:06:26 PDT 2009


Hi,

Thanks a lot for this info! Well, so there is actually bug. But it is
not in the parser but rather in the files we received from our
partners... :-)

Cheers,
Holger

Rinke Hoekstra schrieb:
> Hi Holger,
>
> This is not a bug. The reason the parser crashes is that 123 is not a  
> valid QName.. all prefixed names should start with a character from A- 
> Z] | "_" | [a-z] | [#x00C0-#x00D6] | [#x00D8-#x00F6] | [#x00F8-#x02FF]  
> | [#x0370-#x037D] | [#x037F-#x1FFF] | [#x200C-#x200D] | [#x2070- 
> #x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] |  
> [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
>
> See [1].
>
> -Rinke
>
> [1] http://www.dajobe.org/2004/01/turtle/#qname
>
>
>
>
> On 15 apr 2009, at 18:46, Holger Stenzhorn wrote:
>
>   
>> Hi,
>>
>> We have received an OWL file in Turtle format from our project  
>> partners.
>> When trying to load that file, using the latest Protégé-SVN version, I
>> get a parsing error.
>>
>> Experimenting a bit I could locate the issue and construct a test  
>> case:
>> [1] loads fine. But when trying [2] I get the excpetion in [3].
>> But when using the full URI instead [4] the loading works.
>>
>> Cheers,
>> Holger
>>
>> P.S.: Sorry, if this issue belongs on the OWLAPI list...
>>
>> [1]
>> @prefix owl: <http://www.w3.org/2002/07/owl#> .
>> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
>> @prefix xyz: <http://some/prefix#> .
>> <http://foo.bar/baz> rdf:type owl:Ontology .
>> xyz:abc rdf:type owl:Class .
>>
>> [2]
>> @prefix owl: <http://www.w3.org/2002/07/owl#> .
>> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
>> @prefix xyz: <http://some/prefix#> .
>> <http://foo.bar/baz> rdf:type owl:Ontology .
>> xyz:123 rdf:type owl:Class .
>>
>> [3]
>> uk.ac.manchester.cs.owl.turtle.parser.ParseException: Encountered  
>> "123"
>> at line 5, column 5.
>> Was expecting one of:
>>    "." ...
>>    "a" ...
>>    <URITOKEN> ...
>>    <QNAME> ...
>>    <VAR> ...
>>
>> [4]
>> @prefix owl: <http://www.w3.org/2002/07/owl#> .
>> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
>> <http://foo.bar/baz> rdf:type owl:Ontology .
>> <http://some/prefix#2> rdf:type owl:Class .
>>
>>
>>
>>
>> _______________________________________________
>> p4-feedback mailing list
>> p4-feedback at lists.stanford.edu
>> https://mailman.stanford.edu/mailman/listinfo/p4-feedback
>>     
>
>
>
> ---
> Drs Rinke Hoekstra
>
> Leibniz Center for Law      |  AI Department
> Faculty of Law              |  Faculty of Sciences
> Universiteit van Amsterdam  |  Vrije Universiteit
> Kloveniersburgwal 48        |  De Boelelaan 1081a
> 1012 CX  Amsterdam          |  1081 HV Amsterdam
> +31-(0)20-5253499           |  +31-(0)20-5987752
> hoekstra at uva.nl             |  hoekstra at few.vu.nl
>
> Homepage: http://www.leibnizcenter.org/users/rinke
>
>
>
>
>
> _______________________________________________
> p4-feedback mailing list
> p4-feedback at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/p4-feedback
>   




More information about the p4-feedback mailing list