Template:LabelContains
Jump to navigation
Jump to search
This model is a Partial query. This means it can be used to help writing SPARQL query.
Usage[edit]
{{LabelContains|?item|plop|en}}
?item rdfs:label ?itemLabelEn filter (lang(?itemLabelEn) = "en"&& contains(?itemLabelEn,_"plop"))
Uses[edit]
{{Labelled}}
=> inherits from its variable name
See also[edit]
{{LabelStartsWith}}
{{Labelled}}
=> base template for this one
Partial query to search item whose labels in a language contains some string
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Item variable
| String | optional |
2 | 2 | String to search in item label | String | required |
label language | 3 | Language code of the language we want the label in to be
| String | optional |
The above documentation is transcluded from Template:LabelContains/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |
?{{{1}}} rdfs:label ?{{{1}}}Label{{{3}}} filter (lang(?{{{1}}}Label{{{3}}}) = "{{{3}}}"&& contains(?{{{1}}})