You could play with the category hierarchy in combination with DBpedia
Ontology types:

1) subcategories of foods (1 level down) that are also in the category
"vegetables"

SELECT DISTINCT ?subject WHERE {
?subject <http://purl.org/dc/terms/subject> <
http://dbpedia.org/resource/Category:Vegetables>.
?subject <http://purl.org/dc/terms/subject> ?subcategory .
?subcategory <http://www.w3.org/2004/02/skos/core#broader> <
http://dbpedia.org/resource/Category:Foods>.
} LIMIT 100

2) things in the food category that are plants

SELECT DISTINCT ?subject WHERE {
?subject rdf:type <http://dbpedia.org/ontology/Plant>.
?subject <http://purl.org/dc/terms/subject> ?subcategory .
?subcategory <http://www.w3.org/2004/02/skos/core#broader> <
http://dbpedia.org/resource/Category:Foods>.
} LIMIT 100

And so on.

Remember that DBpedia is restricted by what is in Wikipedia and further by
what can be extracted from Wikipedia. There is little the dbpedia
developers can do individually about the former, but if you see problems
with the latter, please ping the list.

Cheers,
Pablo

On Tue, Nov 22, 2011 at 10:02 AM, Pablo Mendes <pablomen...@gmail.com>wrote:

> Amit,
> Which queries did you try?
>
> Best,
> Pablo
>
> On Mon, Nov 21, 2011 at 6:40 PM, Amit Bueno <amitbu...@gmail.com> wrote:
>
>> Hello,****
>>
>> ** **
>>
>> I read a little about the DBPedia, SPARQL technique that is being used
>> and would like to know:****
>>
>> Is there a way to build a select statement that will gather a list of all
>> consumer consumption items, such as:****
>>
>> **1.       **Groceries items****
>>
>> **a.       **Vegetables****
>>
>> **b.      **Fruit****
>>
>> **c.       **Meat/Fish products****
>>
>> **d.      **Milk/eggs products****
>>
>> **e.      **Beverages****
>>
>> **f.        **Bread and sweets products****
>>
>> **g.       **Cleaning products and related****
>>
>> **2.       **Electronic items****
>>
>> **3.       **House Tools****
>>
>> **4.       **Etc'****
>>
>> ** **
>>
>> I ran some tests on the SPARQL terminal page, on the site, and tried to
>> define vegetables… ****
>>
>> Even on that small definition I got lost, because I couldn't tell head to
>> tails….****
>>
>> ** **
>>
>> Regards,****
>>
>> ** **
>>
>> *Amit *****
>>
>> ** **
>>
>>
>> ------------------------------------------------------------------------------
>> All the data continuously generated in your IT infrastructure
>> contains a definitive record of customers, application performance,
>> security threats, fraudulent activity, and more. Splunk takes this
>> data and makes sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-novd2d
>> _______________________________________________
>> Dbpedia-discussion mailing list
>> Dbpedia-discussion@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>
>>
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to