On 22 Jul 2007, at 19:04, sjtirtha wrote:
> To have a better understanding, I still need to ask some questions.
>
> I can define an OWLClass with the same URI, but this OWLClass can
> have different definition(on Superclass, EquivalentClass,
> annotation) in differentntology. Is that right ?
Exactly.
> If it is right. That means the definistion of a OWLClass is always
> depends on the ontology.
Yes.
> It can lead to misinterpretation of the reasoner.
You just need to ensure that you load all relevant ontologies into
the reasoner using the loadOntologies method.
Cheers,
Matthew
>
> steve
>
> On 7/22/07, Matthew Horridge <matthew.horridge@... >
> wrote:Hi Steve,
>
> > I'm implementing now application using more than one ontologies and
> > more than one namespaces.
> > What I'm trying now is,
> >
> > There are ontology A and ontology B. Each has it's own namespace,
> > namespace A and B
> > In ontology A I defined a class X. class X has DataProperty
> > "hasName" with value "Class_X".
> > In ontology B I defined a class Y and class Y is subclass of class X
> >
> > To do that I imported ontology A in the ontology B.
> >
> > Ontology A and B are saved in 2 different files.
> > In ontology_B.owl I see that ontology A is imported by the
> > namespace of A.
> > So there is no physical URI information, where ontology A is saved.
> > In this context these ontologies work only together inside OWLAPI,
> > because I defined URI mapper for the namespace of A and B.
> >
> > In ontology_B.owl I see also that class X of ontology A is defined,
> > because I used class X as superclass of class Y.
> > But the definition of class X in ontology B doesn't contain any
> > futher information, like "hasName" DataProperty with value
> "Class_X".
> > So the definition of class X in ontology B is only a duplicate/
> > reference to the real class X in ontology A.
> > Having 2 defintion of the same class X means, I can define to
> > different classes with the same URI in ontology A and B. Am I
> right ?
>
> You can spread definitions/descriptions (i.e. axioms) through out
> multiple ontologies - there isn't really a notion of a class
> "belonging" to a particular ontology. So, I it looks like you
> understand this correctly.
> >
> > I look into OWLAPI, that OWLClass works only in a context of a
> > ontology. So if we have more than one ontologies, which are used
> > for the same purpose, we need to iterate in all the imported
> > ontologies. But since the class X is defined twice in ontology A
> > and B, can I refer automaticlly class X in ontology A to the class
> > X in the ontology B.
>
> Again, you can refer to a class in any ontology (without importing
> another ontology that contains a definition for that class) - what
> importing does is bring in axioms that describe/define that class, so
> in your example, you can reference class X without importing ontology
> A, but in this case you won't get the axiom that states it is a
> subclass of hasName some Class X.
> >
> > I asked the similar question before about how to use getSuperclasses
> > (ontology). And Matthew answered me, that I need to read all
> > imported ontology iteratively.
>
> Yes, this is correct.
>
> > But I see there is already connection between ontology A and
> > ontology B and I know also the URI of class X. Can I directly get
> > the superclass class X from ontology B, without passing ontology B
> > into the "getSuperclasses" method ?
>
> No, you can't.
>
> Also, you should note that because a URI of a class resembles a URI
> of an ontology, there is no relationship between that class and
> ontology from an OWL point of view.
>
> Cheers,
>
> Matthew
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Owlapi-developer mailing list
> Owlapi-developer@...
> https://lists.sourceforge.net/lists/listinfo/owlapi-developer
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Owlapi-developer mailing list
> Owlapi-developer@...
> https://lists.sourceforge.net/lists/listinfo/owlapi-developer
|