From: YU F. <yuf...@gm...> - 2010-12-17 16:13:52
|
Hi all, in org.semanticweb.owlapi.util.AutoIRIMapper /** * A handler that can handle OWL/XML files. */ private class OWLXMLOntologyRootElementHandler implements OntologyRootElementHandler { public IRI handle(Attributes attributes) { String ontURI = attributes.getValue(Namespaces.OWL.toString(), "URI"); if (ontURI == null) { ontURI = attributes.getValue("URI"); } if (ontURI == null) { return null; } return IRI.create(ontURI); } } now, There is a little inconsistency between OWL/XML serialization that protege4 generated. If you save the famous family_swrl.owl into OWL/XML, the root element will be : <Ontology xmlns="http://www.w3.org/2002/07/owl#" xml:base="http://a.com/ontology" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xml="http://www.w3.org/XML/1998/namespace" * ontologyIRI="http://a.com/ontology" * > Just FYI. Fan YU |