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    

[protege-owl] Bug in namespace writing with experimental XML writer and multiple ontologies.

Thomas Russ tar at ISI.EDU
Thu Oct 2 11:30:29 PDT 2008


I noticed a bug in the writing out of the namespace information when  
using the experimental XML writer and modifying imported ontologies.

The imported ontology is written out with the namespace information  
for the default ontology and not the imported ontology.

For example, consider a simple import structure like

  top        (namespace = top)
    middle

with the Jena writer, if any changes are made to the top ontology, the  
namespace information is correct and looks like the following, where  
both the xml:base and the  default xmlns are set for the top ontology.

<rdf:RDF
    xmlns:xsp="http://www.owl-ontologies.com/2005/08/07/xsp.owl#"
    xmlns:swrlb="http://www.w3.org/2003/11/swrlb#"
    xmlns="http://www.ict.usc.edu/test/top#"
    xmlns:swrl="http://www.w3.org/2003/11/swrl#"
    xmlns:protege="http://protege.stanford.edu/plugins/owl/protege#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
  xml:base="http://www.ict.usc.edu/test/top">

with the experimental XML writer, the namespace information is not  
correct for the top ontology.  Instead it looks like the following  
where the xml:base is correct, but the namespace information is  
incorrect.  There is an entry for "xmlns:top" which should not be  
there and the default namespace is incorrectly set to be the default  
(middle) ontology.

<rdf:RDF xmlns="http://www.ict.usc.edu/test/middle#"
     xml:base="http://www.ict.usc.edu/test/top"
     xmlns:top="http://www.ict.usc.edu/test/top#"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
     xmlns:xsp="http://www.owl-ontologies.com/2005/08/07/xsp.owl#"
     xmlns:swrl="http://www.w3.org/2003/11/swrl#"
     xmlns:swrlb="http://www.w3.org/2003/11/swrlb#"
     xmlns:protege="http://protege.stanford.edu/plugins/owl/protege#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:owl="http://www.w3.org/2002/07/owl#">






More information about the protege-owl mailing list