query-9c44a05a112c30db1c9405cbac358496

rq turtle/ttl

Usage is a qualifier, that can be used used to indicate the Wikidata item that corresponds to an entry above this one (ie a "broader concept" or "parent concept" or "ancestral concept") in the external hierarchy of the statement this property is qualifying. (P4900)broader concept This property . Wikidata:WikiProject_Fashion/Taxonomy/aat, this thesaurus has an internal hierarchical structure. The costume part of this can be found set out at (Q17152639)thesaurus ). Like most examples of thesauruses in the sense of (P1014)Art & Architecture Thesaurus ID As an example, consider the 'costume' part of the Getty Art & Architecture Thesaurus ( (which in fact corresponds to its direct parent in the AAT hierarchy). (Q1187616)nightwear ), the first item that we can match in the AAT hierarchy above this is 300215942 (AAT: (Q193204)pyjamas P4900 can be used to indicate that eg for This can represented as an AAT statement, with a P4900 qualifier: (Q1187616)nightwear = (P4900)broader concept / 300215942 (P1014)Art & Architecture Thesaurus ID (Q193204)pyjamas , giving: (Q50095342)hierarchical link is not direct = (P1480)sourcing circumstances ). So this can be represented with the additional qualifier 300046106 (AAT: (Q80151)hat ), which currently we do not have an item matched to. However, we do have an item which corresponds to the grandparent item in the AAT hierarchy, 300210734). The immediate parent of this in the AAT hierarchy is "cocked hat" (AAT: 300046114 (AAT: (Q763457)tricorne Sometimes the direct parent there is not an entry that has been matched to an item here. One example (currently) is our item (Q50095342)hierarchical link is not direct = (P1480)sourcing circumstances / (Q80151)hat = (P4900)broader concept / 300046114 (P1014)Art & Architecture Thesaurus ID (Q763457)tricorne : (Q1065579)costume accessory The usefulness of adding this information is that it now makes it easy to extract all the items with matches to a particular part of the external thesaurus. For example, the following query finds all items matched to AAT entries below

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE { 
   wd:Q1065579 (^pq:P4900/^p:P1014)* ?item  .  # note -- this inverted form makes the query much faster
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected a1((" ")) c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal c1(["wd:Q1065579"]):::iri a1 --"p:qualifier/P4900"--> c1 v1 --"p:P1014"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end