Search Mailing List Archives
[protege-owl] Any way to query subject using protege-owl api?
ekarin.sup at gmail.com
Thu Apr 23 10:11:32 PDT 2009
That SQWRL seems to be useful. The structure of query is quite similar to SQL.
Your help is greatly appreciated, Mr. O'Connor.
On Thu, Apr 23, 2009 at 10:38 PM, Martin O'Connor
<martin.oconnor at stanford.edu> wrote:
> SPARQL is not very good at quering OWL ontologies. You can use SQWRL 
> and the SQWRL API  to embed queries in your application (much as you
> would do with SQL and the JDBC API).
>  http://protege.cim3.net/cgi-bin/wiki.pl?SQWRL
>  http://protege.cim3.net/cgi-bin/wiki.pl?SQWRLQueryAPI
> Ekarin Supataratarn wrote:
>> I'm not sure whether this is the correct mailing list to ask since my
>> question is mainly about using protege-owl api so if this mail should
>> be in other mailing lists then please feel free to tell me.
>> The background of the problem is that now I'm trying to create a
>> simple java application that demonstrate the use of ontology. Our
>> group had decided to model relation of "Restaurants", "Menu",
>> "Ingredient" and "Restaurant Review". We use ontology to store data
>> and using protege-owl (Protege V 3.3) as our api for OWL manipulation.
>> It works great until we start tackling on the question "What
>> restaurant that have cool pork menu" and now we just cannot find a
>> way to do it. This is because we model the triple like the following
>> Subject Predicate Object
>> McDonald isSubClassOf Restaurants
>> McDonald hasMenu McFish
>> McDonald hasMenu McFriedChicken
>> McFish isSubClassOf Menu
>> McFish hasIngredients Fish
>> McFriedChicken isSubClassOf Menu
>> McFriedChicken hasIngredients Chicken
>> We stuck when we tried to trace back from Fish back to McDonald using
>> protege-owl api and we think SPARQL may not be a good choice since
>> query will be complex. We have googled around and found "The OWL API"
>> which contains OWLDataFactory.getOWLSomeRestriction() which suits our
>> problem but It's better if we could be able to stick on the
>> protege-owl api. Any resource would be very helpful and can boost our
>> project progress significantly.
>> Thank you a lot for your attention.
>> Best Regards
>> Ekarin Supataratarn
>> p.s. Sorry for my weak English.
>> protege-owl mailing list
>> protege-owl at lists.stanford.edu
>> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
> 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