Search Mailing List Archives
[protege-discussion] SPARQL and Object Property
Brice Sommacal
brice.sommacal at gmail.com
Mon Jun 4 05:35:38 PDT 2012
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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20120604/235ed20c/attachment.html>
More information about the protege-discussion
mailing list