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] Any way to query subject using protege-owl api?

Ekarin Supataratarn 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.

Best Regards

Ekarin Supataratarn

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 [1]
> and the SQWRL API [2] to embed queries in your application (much as you
> would do with SQL and the JDBC API).
>
> Martin
>
> [1] http://protege.cim3.net/cgi-bin/wiki.pl?SQWRL
> [2] 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
>> text:
>>
>> 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
>> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>>
>> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>>
>>
>
> _______________________________________________
> 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
>



More information about the protege-owl mailing list