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] Is it normal for the changed namespace delcaration when saving changed ontology

zhang weishan dr_zhangws at yahoo.com
Mon Jan 7 12:08:03 PST 2008


Dear All,
  I am using the an ontology which contains SWRL rules, and it imports another ontology (StateMachine.owl) that is updated periodiacally.
  When i use :
    FileWriter writer = new FileWriter("D:/Tomcat/webapps/ontology/StateMachine.owl");

                   OWLModelWriter omw = new OWLModelWriter(owlModel,  
                           owlModel.getTripleStoreModel().getActiveTripleStore(), writer);
                   omw.write();
                   writer.close();

  The original name space declaration is:
  <rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns="http://localhost:9999/ontology/StateMachine.owl#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xml:base="http://localhost:9999/ontology/StateMachine.owl">

After switching the active triple store, the StateMachine.owl is saved after changed. But now the name space declaration is as attached. It is a valid but not as tidy as the original one. Is this normal? Or what should i do to avoid this?

Cheers,
Weishan




<!DOCTYPE rdf:RDF [
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
]>



     xml:base="http://localhost:9999/ontology/StateMachine.owl"
     xmlns:operatingSystem="http://localhost:9999/ontology/OperatingSystem.owl#"
     xmlns:Java="http://localhost:9999/ontology/Java.owl#"
     xmlns:abox="http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl#"
     xmlns:sqwrl="http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
     xmlns:swrl="http://www.w3.org/2003/11/swrl#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:owl11="http://www.w3.org/2006/12/owl11#"
     xmlns:protege="http://protege.stanford.edu/plugins/owl/protege#"
     xmlns:owl11xml="http://www.w3.org/2006/12/owl11-xml#"
     xmlns:error="http://localhost:9999/ontology/Error.owl#"
     xmlns:swrlx="http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.owl#"
     xmlns:statemachine="http://localhost:9999/ontology/StateMachine.owl#"
     xmlns:units="http://localhost:9999/ontology/Units.owl#"
     xmlns:swrlm="http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.owl#"
     xmlns:SoftwarePlatform="http://localhost:9999/ontology/SoftwarePlatform.owl#"
     xmlns:Hardware="http://localhost:9999/ontology/Hardware.owl#"
     xmlns:temporal="http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl#"
     xmlns:owl="http://www.w3.org/2002/07/owl#"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
     xmlns:device="http://localhost:9999/ontology/Device.owl#"
     xmlns:swrlb="http://www.w3.org/2003/11/swrlb#"
     xmlns:DotNet="http://localhost:9999/ontology/DotNet.owl#"
     xmlns:tbox="http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl#"
     xmlns:swrla="http://swrl.stanford.edu/ontologies/3.3/swrla.owl#">




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20080107/68d1027c/attachment.html>


More information about the protege-owl mailing list