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] Custom annotations are lost after save and reload

Holger Stenzhorn holger.stenzhorn at ifomis.uni-saarland.de
Thu Apr 16 12:50:16 PDT 2009


Hi,

I have a problem when adding a custom annotation to a class.

First, I create a new class "ABC" and then I add to this class the
custom annotation URI "http://www.w3.org/2004/02/skos/core#prefLabel"
with the value "123" and "Lang" set to "en".
As a result, "prefLabel - "123"@en" appears in the annotations section
on the right for "123".

Now I save the ontology and get the source [1].
When I reload it, the annotations section is empty for "123".
Saving the ontology now again results in [2].

I am sorry if this issue has been on the list before and I overlooked it...
(Checked in build 109 and build from latest SVN checkout)

Cheers,
Holger

[1]

<?xml version="1.0"?>

<!DOCTYPE rdf:RDF [
    <!ENTITY baz "http://foo.bar/baz#" >
    <!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 skos "http://www.w3.org/2004/02/skos/core#" >
    <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
    <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
]>

<rdf:RDF xmlns="http://foo.bar/baz#"
     xml:base="http://foo.bar/baz"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
     xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
     xmlns:baz="http://foo.bar/baz#"
     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:skos="http://www.w3.org/2004/02/skos/core#">
    <owl:Ontology rdf:about=""/>
   
    <!--
   
///////////////////////////////////////////////////////////////////////////////////////
    //
    // Annotation properties
    //
   
///////////////////////////////////////////////////////////////////////////////////////
     -->
    <owl:AnnotationProperty rdf:about="&skos;prefLabel"/>
   
    <!--
   
///////////////////////////////////////////////////////////////////////////////////////
    //
    // Classes
    //
   
///////////////////////////////////////////////////////////////////////////////////////
     -->

    <!-- http://foo.bar/baz#ABC -->

    <owl:Class rdf:about="#ABC">
        <skos:prefLabel>123</skos:prefLabel>
    </owl:Class>
</rdf:RDF>

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





[2]

<?xml version="1.0"?>

<!DOCTYPE rdf:RDF [
    <!ENTITY baz "http://foo.bar/baz#" >
    <!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 skos "http://www.w3.org/2004/02/skos/core#" >
    <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
    <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
]>

<rdf:RDF xmlns="http://foo.bar/baz#"
     xml:base="http://foo.bar/baz"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
     xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
     xmlns:baz="http://foo.bar/baz#"
     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:skos="http://www.w3.org/2004/02/skos/core#">
    <owl:Ontology rdf:about=""/>
   
    <!--
   
///////////////////////////////////////////////////////////////////////////////////////
    //
    // Data properties
    //
   
///////////////////////////////////////////////////////////////////////////////////////
     -->

    <!-- http://www.w3.org/2004/02/skos/core#prefLabel -->

    <owl:DatatypeProperty rdf:about="&skos;prefLabel"/>
   
    <!--
   
///////////////////////////////////////////////////////////////////////////////////////
    //
    // Classes
    //
   
///////////////////////////////////////////////////////////////////////////////////////
     -->

    <!-- http://foo.bar/baz#ABC -->

    <owl:Class rdf:about="#ABC"/>
   
    <!--
   
///////////////////////////////////////////////////////////////////////////////////////
    //
    // Individuals
    //
   
///////////////////////////////////////////////////////////////////////////////////////
     -->

    <!-- http://foo.bar/baz#ABC -->

    <rdf:Description rdf:about="#ABC">
        <skos:prefLabel>123</skos:prefLabel>
    </rdf:Description>
</rdf:RDF>

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



More information about the p4-feedback mailing list