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-discussion] SPARQL and Object Property

jayadianti herlina herlinajayadianti at gmail.com
Mon Jun 4 06:12:11 PDT 2012


Dear Mr Brice

Thank you very much Brice
Its work thank you,..now I want to make a filter for that, like Filter in *
"Dataproperty"*
but now in *"Objectpeoperty"* can you give me a suggestion to do that. I
have no problem in DataProperty
I want to make a filter for instance in other classes..but the result is
lexical error.
as an example. I can't write..
FILTER (?Food="CHICKEN") --> lexical error.

Thank you
Regards
Lina

On Mon, Jun 4, 2012 at 1:35 PM, Brice Sommacal <brice.sommacal at gmail.com>wrote:

> Hello,
>
> owl:onProperty is used to make restriction.
> If you want to retrieve all people and food which are "connected" with the
> predicat :hasDailyMenu, you should request like the following:
>
> SELECT ?People ?Food
>         WHERE { ?People :hasdailymenu ?Food.
>                                  }
>
> Regards ,
>
>
> Brice
>
> 2012/6/1 jayadianti herlina <herlinajayadianti at gmail.com>
>
>> Hi expert
>>
>> I need your help.
>> I have a problem in connection between classes and object properties.
>> I create 2 classes "People" and "Food"
>> and an object property "hasdailymenu".
>> its work perfectly in DL but I still have a difficulties in SPARQL.
>>
>> PREFIX rdf: <http://www.semanticweb.org/CO.owl#>
>> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>> PREFIX owl: <http://www.w3.org/2002/07/owl#>
>> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
>> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
>> SELECT ?People ?Food
>>         WHERE { ?People owl:onProperty :hasdailymenu.
>>                                  ....}
>>
>> help me.
>>
>> Sincerely
>> Lina
>>
>>
>> _______________________________________________
>> protege-discussion mailing list
>> protege-discussion at lists.stanford.edu
>> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>>
>> Instructions for unsubscribing:
>> http://protege.stanford.edu/doc/faq.html#01a.03
>>
>>
>
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing:
> http://protege.stanford.edu/doc/faq.html#01a.03
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20120604/58c1e9e7/attachment.html>


More information about the protege-discussion mailing list