Template:WDGettyCompQuery

This template is intended to be used by Wikidata:WikiProject Visual arts/Getty Vocabularies. For examples see the testcases at Template:WDGettyCompQuery/testcases (they might not all be fully implemented yet).

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Wikidata propertywdprop

P-ID of property at Wikidata

Example
P21
Stringrequired
vocabularyvocabulary

One of "aat", "ulan", "tgn"

Example
ulan
Stringrequired
SPARQL expression from Getty subject to objectsubject to object subj2obj

It is required to set either this parameter or "gvppath".

Example
?gettySubject foaf:focus/gvp:biographyPreferred/schema:birthPlace/^foaf:focus ?gettyObject . ?gettyObject xl:prefLabel/xl:literalForm ?ulanpobTerm. FILTER(LANG(?ulanpobTerm) = "en")
Stringsuggested
Path from Getty subject to objectgvppath

Getty Vocabluars Program ontology path that translates to the Wikidata property

Example
foaf:focus/gvp:biographyPreferred/schema:gender
Stringdeprecated
domain additiondomain addition

additional SPARQL code to be added in the domain selection, e.g. to narrow down the domain to humans

Example
?item wdt:P31 wd:Q5.
Stringoptional
Mapping of values at Getty endpointvaluemapping getty

no description

Example
BIND(IF(?gettyObject = aat:300189559, wd:Q6581097, IF(?gettyObject = aat:300189557, wd:Q6581072, "")) AS ?wdObjectFromGetty)
Stringoptional
Mapping of values at WD endpointvaluemapping wd

no description

Example
BIND(IF(?gettyObject = aat:300189559, wd:Q6581097, IF(?gettyObject = aat:300189557, wd:Q6581072, "")) AS ?wdObjectFromGetty)
Stringoptional
Limit of IDslimit

Maximum number of IDs fed to the Getty Vocabulary Program SPARQL endpoint

Default
10
Example
200
Numberoptional
actionaction

(NOT YET IMPLEMENTED) One of "add first reference", "add first reliable reference", "add first vocabulary reference", "add statement", "find mismatch"

Default
add first reference
Stringsuggested
outputoutput

What the template and the SPARQL query shall output: one of "QSv1", "QScsv" and planned: "nice-QS" (human-readable table presented by Template:SPARQL with QS link), "wdlist", "wdlistraw" (both to be subst:'ed). Default is a human-readable table presented by Template:SPARQL

Example
QSv1
Stringoptional
shortshort

If set to "yes" the display of the query code will be suppressed.

Auto value
no
Stringoptional
labellabel

Text to be used as the label of the link to the Wikidata Query Service. If the parameter "short" and "output" are set the content of "output" is default, otherwise an internationalized version of "Try it!" is default.

Contentoptional
statestate

"state" parameter from Template:SPARQL, either "collapsed" or "expanded", ignored with output "wdlist" or "wdlistraw"

Default
collapsed
Stringoptional