Search Mailing List Archives
[protege-owl] Ontology query
martin.oconnor at stanford.edu
Fri Jan 29 07:44:22 PST 2010
I am in the middle of the SWRLTab port for Protege 4 and hope to have it
available by June. BTW, the SQWRL is actively supported in the current
Protege 3, not just in earlier versions of it. If fact, major extensions
to the language will be available next week in the upcoming 3.4.3 release.
FYI, the SQWRL queries would be:
hasLocation(Wouter, ?l) -> sqwrl:select(?l)
hasLocation(?p, Kitchen) -> sqwrl:select(?p)
Wouter Theetaert wrote:
> Dear all,
> I have an ontology which looks like this:
> - Classes: 'Person', 'Location'
> - Properties: 'hasLocation'
> - Individuals: 'Wouter' (of class Person), 'Kitchen' (of class Location).
> Using the latest version of the OWL API (v3), it's no problem to add
> 'Wouter hasLocation Kitchen' to the ontology. Indeed, when I look at
> the ontology with Protege afterwards, 'hasLocation Kitchen' is added
> to the Individual 'Wouter'.
> I would like to get around the other way, now. Given the Individual
> Wouter, I want to know its location. This is in fact some kind of
> query, but after spending hours on Google, I still didn't find out how
> to do that. This are the queries I want to execute:
> - Given the Individual Wouter, what is its location? ('Wouter
> hasLocation Kitchen' is added to the ontology, so I want the
> Individual 'Kitchen' as a response).
> - What are the Individuals that are located in the Kitchen? (the
> response should be 'Wouter', in this case).
> I've read about SQWRL, but if I'm correct this was only worked out in
> an older version of Protégé-OWL (in the SWRLTab plugin). Protégé 4
> doensn't even support SQWRL. My question is simple: is querying like I
> mentioned before possible with OWL API v3? What options do I have?
> Thanks in advance,
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
More information about the protege-owl