User:Charles Matthews/Food science workshop links

From Wikidata
Jump to navigation Jump to search

This is a links page, for a WikiFactMine workshop being given 3 September in Cambridge, UK. The theme is obtaining "dictionaries" for food science (Q1637030).

Objectives[edit]

The workshop will address issues with 16 topic areas, drawn from a food science thesaurus. Queries will be used also to add images to Wikidata.

Links[edit]

Example queries[edit]

These go from (too) basic to practical.

  • #Instance of "bread"
    SELECT ?item
    
    WHERE
      { ?item wdt:P31 wd:Q7802 .
              
       }
    
    Try it!
  • #Instance of "bread", labels
    SELECT ?item ?itemLabel
    
    WHERE
      { ?item wdt:P31 wd:Q7802 .
     SERVICE wikibase:label {bd:serviceParam wikibase:language "en" .}
      }
    
    Try it!
  • #Instance of "bread" and subclasses, labels
    SELECT DISTINCT ?item ?itemLabel
    
    WHERE
      { ?item wdt:P31*/wdt:P279* wd:Q7802 .
     SERVICE wikibase:label {bd:serviceParam wikibase:language "en" .}
      }
    
    Try it!
  • #Direct subclasses of "bread", labels
    SELECT ?item ?itemLabel
    
    WHERE
      { ?item wdt:P279 wd:Q7802 .
     SERVICE wikibase:label {bd:serviceParam wikibase:language "en" .}
      }
    
    Try it!
  • #Direct subclass and instance of "bread", labels
    SELECT ?item ?itemLabel
    
    WHERE
      { ?item wdt:P31 wd:Q7802 . 
        ?item wdt:P279 wd:Q7802 .
     SERVICE wikibase:label {bd:serviceParam wikibase:language "en" .}
      }
    
    Try it!

Add your query here[edit]