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] [Protege-owl] ontology naming issue

Timothy Redmond tredmond at stanford.edu
Wed May 14 11:43:01 PDT 2008


On May 13, 2008, at 1:38 PM, Ralf Weinand wrote:

> Hi,
>
> I think it´s not a good idea to save an ontology without explicitly  
> giving it a name (like Protege does).
> Protege always writes out <owl:Ontology rdf:about="">.

Actually this paradigm does give  the ontology a name.  The name is  
given by the document base.  The document base usually is given by the  
xmlbase line but if the xmlbase is absent it is given by the physical  
location that the ontology was loaded from.  In fact this way of  
naming the ontology is listed (somewhere) as a best practices.

In your example the third ontology gets into trouble because you tell  
it to import itself.  The  name that you gave the third ontology was

    http://localhost:8080/process/MediationProcess/MoonOMSAddLineItemServiceInput.owl

and the name of ontology #2 is the same.  So this is an example of an  
ontology importing itself.

I know that  Protege does get confused sometimes when an ontology  
imports itself.  It really should simply ignore to do the import.  The  
ontology being requested for the import is already present.  What has  
happened in your case is that the import was loaded leading to  
confusion (two ontology declarations for the same ontology, etc).  I  
will look at this because the fix should be easy.

I did put together a wiki page [1] about imports and  ontology names  
and some of this may be of interest  to you.

-Timothy

[1] http://protegewiki.stanford.edu/index.php/How_Owl_Imports_Work#Names_of_Ontologies


> When several ontologies with empty names are imported into one model,
> then the knowledgebase is somehow inconsistent.
>
> EXAMPLE:
>
> ONTOLOGY 1:
>
> <rdf:RDF
>     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>     xmlns:owl="http://www.w3.org/2002/07/owl#"
>     xmlns="http://localhost:8080/process/MediationProcess/Dataflow_MediationProcessInput2MoonOMSAddLineItemServiceInput.owl# 
> "
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
>   xml:base="http://localhost:8080/process/MediationProcess/Dataflow_MediationProcessInput2MoonOMSAddLineItemServiceInput.owl 
> ">
>   <owl:Ontology rdf:about="">
>     <owl:imports rdf:resource="http://localhost:8080/ontologies/ServiceAnchor.owl 
> "/>
>   </owl:Ontology>
> ....
>
>
>
> ONTOLOGY 2:
>
> <rdf:RDF
>     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>     xmlns:owl="http://www.w3.org/2002/07/owl#"
>     xmlns="http://localhost:8080/process/MediationProcess/MoonOMSAddLineItemServiceInput.owl# 
> "
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
>   xml:base="http://localhost:8080/process/MediationProcess/MoonOMSAddLineItemServiceInput.owl 
> ">
>   <owl:Ontology rdf:about="">
>     <owl:imports rdf:resource="http://localhost:8080/ontologies/MoonOntology.owl 
> "/>
>   </owl:Ontology>
> ....
>
>
> ONTOLOGY 1 and 2 imported results in something like:
>
> <rdf:RDF
>     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>     xmlns:owl="http://www.w3.org/2002/07/owl#"
>     xmlns="http://localhost:8080/process/MediationProcess/MoonOMSAddLineItemServiceInput.owl# 
> "
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
>   xml:base="http://localhost:8080/process/MediationProcess/MoonOMSAddLineItemServiceInput.owl 
> ">
>   <owl:Ontology rdf:about="">
>     <owl:imports rdf:resource="http://localhost:8080/ontologies/ServiceAnchor.owl 
> "/>
>   </owl:Ontology>
>   <owl:Ontology rdf:about="">
>     <owl:imports rdf:resource="http://localhost:8080/ontologies/ServiceAnchor.owl 
> "/>
>   </owl:Ontology>
> ....
>
>
> So I think ontologies should be serialized as.
>
>
> ONTOLOGY 1:
>
> <rdf:RDF
>     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>     xmlns:owl="http://www.w3.org/2002/07/owl#"
>     xmlns="http://localhost:8080/process/MediationProcess/Dataflow_MediationProcessInput2MoonOMSAddLineItemServiceInput.owl# 
> "
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
>   xml:base="http://localhost:8080/process/MediationProcess/Dataflow_MediationProcessInput2MoonOMSAddLineItemServiceInput.owl 
> ">
>   <owl:Ontology rdf:about="http://localhost:8080/process/MediationProcess/Dataflow_MediationProcessInput2MoonOMSAddLineItemServiceInput.owl 
> ">
>     <owl:imports rdf:resource="http://localhost:8080/ontologies/ServiceAnchor.owl 
> "/>
>   </owl:Ontology>
> ....
>
>
>
> ONTOLOGY 2:
>
>
> <rdf:RDF
>     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>     xmlns:owl="http://www.w3.org/2002/07/owl#"
>     xmlns="http://localhost:8080/process/MediationProcess/MoonOMSAddLineItemServiceInput.owl# 
> "
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
>   xml:base="http://localhost:8080/process/MediationProcess/MoonOMSAddLineItemServiceInput.owl 
> ">
>   <owl:Ontology rdf:about="">
>     <owl:imports rdf:resource="http://localhost:8080/ontologies/MoonOntology.owl 
> "/>
>   </owl:Ontology>
> ....
> What do you think?
>
> Cheers,
> Ralf
>
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20080514/e2d6e7f2/attachment.html>


More information about the protege-owl mailing list