User:Charles Matthews/Food science workshop links

WikiFactMine terrible logo.svg

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).

ObjectivesEdit

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.

LinksEdit

Example queriesEdit

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 hereEdit