[protege-owl] Finding a path connecting two owl:Class

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[protege-owl] Finding a path connecting two owl:Class

Massimo Coletti-2
Hi,
 
if I have a complex ontology, with several hierarchies of classes and properties connecting them, how can I find all the "paths" connecting a class (as Domain) with another (as Range)?
 
See the following example:
 

Ontology(<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.mcoletti.net/owl/2006/Ontology1150879527.owl" target="_blank">http://www.mcoletti.net/owl/2006/Ontology1150879527.owl

ObjectProperty(hasRooms inverseOf(inside)
                        domain(House)
                        range(Room))

ObjectProperty(inside inverseOf(hasRooms)
                      domain(Room)
                      range(House))

ObjectProperty(sitsIn domain(Person)
                      range(Room))

Class(Child partial Person)

Class(House partial owl:Thing)

Class(Person partial owl:Thing)

Class(Room partial owl:Thing)

In this example, a possible "path" from Child to House is:

Child --> isA --> Person --> sitsIn --> Room --> inside --> House

Is anybody aware of a tool helping to find thos paths in an OWL knowledge base?

Many Thanks

 

Massimo Coletti

Reply | Threaded
Open this post in threaded view
|

[protege-owl] Re: Finding a path connecting two owl:Class

Bellave Jayaram
 
Would the CONSTRUCT clause of SPARQL [1] work?
 
Jayaram
 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Massimo Coletti
Sent: Wednesday, June 21, 2006 1:54 AM
To: [hidden email]
Subject: [protege-owl] Finding a path connecting two owl:Class

Hi,
 
if I have a complex ontology, with several hierarchies of classes and properties connecting them, how can I find all the "paths" connecting a class (as Domain) with another (as Range)?
 
See the following example:
 

Ontology(<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.mcoletti.net/owl/2006/Ontology1150879527.owl" target=_blank>http://www.mcoletti.net/owl/2006/Ontology1150879527.owl

ObjectProperty(hasRooms inverseOf(inside)
                        domain(House)
                        range(Room))

ObjectProperty(inside inverseOf(hasRooms)
                      domain(Room)
                      range(House))

ObjectProperty(sitsIn domain(Person)
                      range(Room))

Class(Child partial Person)

Class(House partial owl:Thing)

Class(Person partial owl:Thing)

Class(Room partial owl:Thing)

In this example, a possible "path" from Child to House is:

Child --> isA --> Person --> sitsIn --> Room --> inside --> House

Is anybody aware of a tool helping to find thos paths in an OWL knowledge base?

Many Thanks

 

Massimo Coletti

Reply | Threaded
Open this post in threaded view
|

[protege-owl] Re: Finding a path connecting two owl:Class

Massimo Coletti
Bellave Jayaram ha scritto:
>  
> Would the CONSTRUCT clause of SPARQL [1] work?
>  
> Jayaram
>  
> [1]
> http://www.w3.org/TR/2005/WD-rdf-sparql-query-20051123/#accessingRdfGraphs
>
Hi,

it doesn't seem to work in Protégé:
CONSTRUCT { ?a ?b ?c }
WHERE {
?a a soc:natural-person .
 ?a ?b ?c .
?c a dol:perdurant .
 }

leads to ==> "Attempt to have ResultSet from a CONSTRUCT query"

Regards

Massimo

>
>     ------------------------------------------------------------------------
>     *From:* [hidden email]
>     [mailto:[hidden email]] *On Behalf Of
>     *Massimo Coletti
>     *Sent:* Wednesday, June 21, 2006 1:54 AM
>     *To:* [hidden email]
>     *Subject:* [protege-owl] Finding a path connecting two owl:Class
>
>     Hi,
>      
>     if I have a complex ontology, with several hierarchies of classes
>     and properties connecting them, how can I find all the "paths"
>     connecting a class (as Domain) with another (as Range)?
>      
>     See the following example:
>      
>
>     Ontology(http://www.mcoletti.net/owl/2006/Ontology1150879527.owl
>
>     ObjectProperty(hasRooms inverseOf(inside)
>                             domain(House)
>                             range(Room))
>
>     ObjectProperty(inside inverseOf(hasRooms)
>                           domain(Room)
>                           range(House))
>
>     ObjectProperty(sitsIn domain(Person)
>                           range(Room))
>
>     Class(Child partial Person)
>
>     Class(House partial owl:Thing)
>
>     Class(Person partial owl:Thing)
>
>     Class(Room partial owl:Thing)
>
>     In this example, a possible "path" from Child to House is:
>
>     Child --> isA --> Person --> sitsIn --> Room --> inside --> House
>
>     Is anybody aware of a tool helping to find thos paths in an OWL
>     knowledge base?
>
>     Many Thanks
>
>      
>
>     Massimo Coletti
>



This e-mail and any attachments may contain confidential and
privileged information. If you are not the intended recipient,
please notify the sender immediately by return e-mail, delete this
e-mail and destroy any copies. Any dissemination or use of this
information by a person other than the intended recipient is
unauthorized and may be illegal.
-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html