OWL/XML erroneously (?) use URI instead of IRI

2 messages Options
Embed this post
Permalink
Dmitry Repchevsky

OWL/XML erroneously (?) use URI instead of IRI

Reply Threaded More More options
Print post
Permalink
Hello!

I have a problem with parsing (importing) next ontology:

********************************************************
<Ontology xmlns="http://www.w3.org/2002/07/owl#"
     xml:base="http://www.w3.org/2006/12/owl2-xml#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
     xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
     xmlns:owl="http://www.w3.org/2002/07/owl#"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     
xmlns:Ontology1246477821125="http://www.semanticweb.org/ontologies/2009/6/Ontology1246477821125.owl#"
     
URI="http://www.semanticweb.org/ontologies/2009/6/Ontology1246477821125.owl">
    <Declaration>
        <Class IRI="&Ontology1246477821125;NemusObject"/>
    </Declaration>
    <DataPropertyDomain>
        <DataProperty IRI="&Ontology1246477821125;id"/>
        <Class IRI="&Ontology1246477821125;NemusObject"/>
    </DataPropertyDomain>
    <DataPropertyRange>
        <DataProperty IRI="&Ontology1246477821125;id"/>
        <Datatype lRI="&xsd;string"/>
    </DataPropertyRange>
</Ontology>
********************************************************

The problem is in "IRI" URI. According the specification it is
attribute name="IRI" type="{http://www.w3.org/2001/XMLSchema}anyURI"

But, Protégé expect "URI".

Another issue is that Protégé puts the default namespace as
xmlns="http://www.w3.org/2006/12/owl2-xml#"

while the schema ()defines
targetNamespace="http://www.w3.org/2002/07/owl#"

Thank you in advance,

Dmitry
_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Nick Drummond

Re: OWL/XML erroneously (?) use URI instead of IRI

Reply Threaded More More options
Print post
Permalink
IRIs are part of the OWL 2 specification.

Protege 3 only supports OWL 1.
Protege 4 currently supports most of OWL 2 but the release version
does not handle IRIs (the next version will).

Nick


2009/7/2 Dmitry Repchevsky <[hidden email]>:

> Hello!
>
> I have a problem with parsing (importing) next ontology:
>
> ********************************************************
> <Ontology xmlns="http://www.w3.org/2002/07/owl#"
>     xml:base="http://www.w3.org/2006/12/owl2-xml#"
>     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>     xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
>     xmlns:owl="http://www.w3.org/2002/07/owl#"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
> xmlns:Ontology1246477821125="http://www.semanticweb.org/ontologies/2009/6/Ontology1246477821125.owl#"
>
> URI="http://www.semanticweb.org/ontologies/2009/6/Ontology1246477821125.owl">
>    <Declaration>
>        <Class IRI="&Ontology1246477821125;NemusObject"/>
>    </Declaration>
>    <DataPropertyDomain>
>        <DataProperty IRI="&Ontology1246477821125;id"/>
>        <Class IRI="&Ontology1246477821125;NemusObject"/>
>    </DataPropertyDomain>
>    <DataPropertyRange>
>        <DataProperty IRI="&Ontology1246477821125;id"/>
>        <Datatype lRI="&xsd;string"/>
>    </DataPropertyRange>
> </Ontology>
> ********************************************************
>
> The problem is in "IRI" URI. According the specification it is
> attribute name="IRI" type="{http://www.w3.org/2001/XMLSchema}anyURI"
>
> But, Protégé expect "URI".
>
> Another issue is that Protégé puts the default namespace as
> xmlns="http://www.w3.org/2006/12/owl2-xml#"
>
> while the schema ()defines
> targetNamespace="http://www.w3.org/2002/07/owl#"
>
> Thank you in advance,
>
> Dmitry
> _______________________________________________
> protege-owl mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>
_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03