<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.personaldata.io/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AWdquery%2Fdoc</id>
	<title>Template:Wdquery/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.personaldata.io/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AWdquery%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.personaldata.io/w/index.php?title=Template:Wdquery/doc&amp;action=history"/>
	<updated>2026-05-13T21:13:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.personaldata.io/w/index.php?title=Template:Wdquery/doc&amp;diff=3262&amp;oldid=prev</id>
		<title>192.168.0.1: Created page with &quot;{{Documentation subpage}} &lt;!-- Categories go at the bottom of this page. --&gt;  == Usage == Parameter 1 is the Sparql query, and parameter 2 is the text to display. * &lt;source la...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.personaldata.io/w/index.php?title=Template:Wdquery/doc&amp;diff=3262&amp;oldid=prev"/>
		<updated>2019-05-10T01:32:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- Categories go at the bottom of this page. --&amp;gt;  == Usage == Parameter 1 is the Sparql query, and parameter 2 is the text to display. * &amp;lt;source la...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Parameter 1 is the Sparql query, and parameter 2 is the text to display.&lt;br /&gt;
* &amp;lt;source lang=&amp;quot;sparql&amp;quot;&amp;gt;{{wdquery|query=&lt;br /&gt;
&lt;br /&gt;
SELECT ?property ?alias ?occurences WHERE {&lt;br /&gt;
  hint:Query hint:optimizer &amp;quot;None&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
  {&lt;br /&gt;
    SELECT ?alias (COUNT (?alias) as ?occurences) WHERE {&lt;br /&gt;
      ?tmp a wikibase:Property .&lt;br /&gt;
      ?tmp skos:altLabel ?alias FILTER (LANG (?alias) = &amp;quot;en&amp;quot;)&lt;br /&gt;
    } GROUP BY ?alias&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  ?property a wikibase:Property .&lt;br /&gt;
  ?property skos:altLabel ?alias FILTER (?occurences &amp;gt; 1) .&lt;br /&gt;
} ORDER BY ?alias|an example query}}&amp;lt;/source&amp;gt;&lt;br /&gt;
{{wdquery|query=&lt;br /&gt;
&lt;br /&gt;
SELECT ?property ?alias ?occurences WHERE {&lt;br /&gt;
  hint:Query hint:optimizer &amp;quot;None&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
  {&lt;br /&gt;
    SELECT ?alias (COUNT (?alias) as ?occurences) WHERE {	&lt;br /&gt;
      ?tmp a wikibase:Property .&lt;br /&gt;
      ?tmp skos:altLabel ?alias FILTER (LANG (?alias) = &amp;quot;en&amp;quot;)&lt;br /&gt;
    } GROUP BY ?alias&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  ?property a wikibase:Property .&lt;br /&gt;
  ?property skos:altLabel ?alias FILTER (?occurences &amp;gt; 1) .&lt;br /&gt;
} ORDER BY ?alias&lt;br /&gt;
|an example query}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|SPARQL}}&lt;br /&gt;
* WDQ&lt;br /&gt;
** {{tl|WDQ}}&lt;br /&gt;
** {{tl|Query}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories go here: --&amp;gt;&lt;br /&gt;
[[Category:Query template]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>192.168.0.1</name></author>
	</entry>
</feed>