Changes
Jump to navigation
Jump to search
Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page. --> == Usage == Parameter 1 is the Sparql query, and parameter 2 is the text to display. * <source la..."
{{Documentation subpage}}
<!-- Categories go at the bottom of this page. -->
== Usage ==
Parameter 1 is the Sparql query, and parameter 2 is the text to display.
* <source lang="sparql">{{wdquery|query=
SELECT ?property ?alias ?occurences WHERE {
hint:Query hint:optimizer "None" .
{
SELECT ?alias (COUNT (?alias) as ?occurences) WHERE {
?tmp a wikibase:Property .
?tmp skos:altLabel ?alias FILTER (LANG (?alias) = "en")
} GROUP BY ?alias
}
?property a wikibase:Property .
?property skos:altLabel ?alias FILTER (?occurences > 1) .
} ORDER BY ?alias|an example query}}</source>
{{wdquery|query=
SELECT ?property ?alias ?occurences WHERE {
hint:Query hint:optimizer "None" .
{
SELECT ?alias (COUNT (?alias) as ?occurences) WHERE {
?tmp a wikibase:Property .
?tmp skos:altLabel ?alias FILTER (LANG (?alias) = "en")
} GROUP BY ?alias
}
?property a wikibase:Property .
?property skos:altLabel ?alias FILTER (?occurences > 1) .
} ORDER BY ?alias
|an example query}}
== See also ==
* {{tl|SPARQL}}
* WDQ
** {{tl|WDQ}}
** {{tl|Query}}
<includeonly>
<!-- Categories go here: -->
[[Category:Query template]]
</includeonly>
<!-- Categories go at the bottom of this page. -->
== Usage ==
Parameter 1 is the Sparql query, and parameter 2 is the text to display.
* <source lang="sparql">{{wdquery|query=
SELECT ?property ?alias ?occurences WHERE {
hint:Query hint:optimizer "None" .
{
SELECT ?alias (COUNT (?alias) as ?occurences) WHERE {
?tmp a wikibase:Property .
?tmp skos:altLabel ?alias FILTER (LANG (?alias) = "en")
} GROUP BY ?alias
}
?property a wikibase:Property .
?property skos:altLabel ?alias FILTER (?occurences > 1) .
} ORDER BY ?alias|an example query}}</source>
{{wdquery|query=
SELECT ?property ?alias ?occurences WHERE {
hint:Query hint:optimizer "None" .
{
SELECT ?alias (COUNT (?alias) as ?occurences) WHERE {
?tmp a wikibase:Property .
?tmp skos:altLabel ?alias FILTER (LANG (?alias) = "en")
} GROUP BY ?alias
}
?property a wikibase:Property .
?property skos:altLabel ?alias FILTER (?occurences > 1) .
} ORDER BY ?alias
|an example query}}
== See also ==
* {{tl|SPARQL}}
* WDQ
** {{tl|WDQ}}
** {{tl|Query}}
<includeonly>
<!-- Categories go here: -->
[[Category:Query template]]
</includeonly>