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] annotations for entity annotation axiom

Christian Knuepfer christian.knuepfer at uni-jena.de
Tue Apr 7 06:16:42 PDT 2009


Hi,

in Protege 4 it is possible to annotate annotations. That's great. But
this annotations are only stored as OWL/XML. All other save formats
(e.g. RDF/XML) will discard this information without any warning!

Here is a little example in the both formats. I annotated the label of
Class1 with "label for Class1":

OWL/XML (the annotation is in the first EntityAnnotation)
------------------------------------------------------------------
<?xml version="1.0"?>


<!DOCTYPE Ontology [
    <!ENTITY owl "http://www.w3.org/2002/07/owl#" >
    <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
    <!ENTITY owl2xml "http://www.w3.org/2006/12/owl2-xml#" >
    <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
    <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
    <!ENTITY Ontology1239108302828
"http://localhost/2009/3/7/Ontology1239108302828.owl#" >
]>


<Ontology xmlns="http://www.w3.org/2006/12/owl2-xml#"
     xml:base="http://www.w3.org/2006/12/owl2-xml#"
     xmlns:="http://www.w3.org/2006/12/owl2-xml#"

xmlns:Ontology1239108302828="http://localhost/2009/3/7/Ontology1239108302828.owl#"
     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#"
     URI="http://localhost/2009/3/7/Ontology1239108302828.owl">
    <SubClassOf>
        <Class URI="&Ontology1239108302828;ID_0000000"/>
        <Class URI="&owl;Thing"/>
    </SubClassOf>
    <EntityAnnotation>
        <Annotation annotationURI="&rdfs;comment">
            <Constant datatypeURI="&xsd;string"
                >label for Class1</Constant>
        </Annotation>
        <Class URI="&Ontology1239108302828;ID_0000000"/>
        <Annotation annotationURI="&rdfs;label">
            <Constant>Class1</Constant>
        </Annotation>
    </EntityAnnotation>
</Ontology>

<!-- Generated by the OWL API (version 2.2.1.974)
http://owlapi.sourceforge.net -->
------------------------------------------------------------------




RDF/XML (no annotation)

------------------------------------------------------------------
<?xml version="1.0"?>


<!DOCTYPE rdf:RDF [
    <!ENTITY owl "http://www.w3.org/2002/07/owl#" >
    <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
    <!ENTITY owl2xml "http://www.w3.org/2006/12/owl2-xml#" >
    <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
    <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
    <!ENTITY Ontology1239108302828
"http://localhost/2009/3/7/Ontology1239108302828.owl#" >
]>


<rdf:RDF xmlns="http://www.w3.org/2006/12/owl2-xml#"
     xml:base="http://localhost/2009/3/7/Ontology1239108302828.owl"

xmlns:Ontology1239108302828="http://localhost/2009/3/7/Ontology1239108302828.owl#"
     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#">
    <owl:Ontology rdf:about=""/>

    <!--

///////////////////////////////////////////////////////////////////////////////////////
    //
    // Classes
    //

///////////////////////////////////////////////////////////////////////////////////////
     -->

    <!--
http://localhost/2009/3/7/Ontology1239108302828.owl#ID_0000000 -->

    <owl:Class rdf:about="#ID_0000000">
        <rdfs:label>Class1</rdfs:label>
        <rdfs:subClassOf rdf:resource="&owl;Thing"/>
    </owl:Class>

    <!-- http://www.w3.org/2002/07/owl#Thing -->

    <owl:Class rdf:about="&owl;Thing"/>
</rdf:RDF>
------------------------------------------------------------------


Why are the annotations discarded in RDF/XML? At least there should be a
warning that some information will be lost after saving...


Greetings,

Christian.



-- 
Christian Knuepfer
Friedrich-Schiller-Universitaet Jena
Institut fuer Informatik
Ernst-Abbe-Platz 1-4
D-07743 Jena, Germany

Office: R. 3237
Phone: Intl.+49-3641-9-46353
Fax: Intl.+49-3641-9-46302

e-mail: christian.knuepfer at uni-jena.de
WWW: http://www.informatik.uni-jena.de/~tral

PGP Key-ID: 0xC3329342
PGP Public Key:
  http://www.minet.uni-jena.de/~tral/data/christian_knuepfer_pub.asc
Fingerprint 5656 7F57 8E58 FC7B AC58 6714 3DA4 3181 C332 9342
--





More information about the p4-feedback mailing list