<?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%3ASPARQLhierarchy</id>
	<title>Template:SPARQLhierarchy - 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%3ASPARQLhierarchy"/>
	<link rel="alternate" type="text/html" href="https://wiki.personaldata.io/w/index.php?title=Template:SPARQLhierarchy&amp;action=history"/>
	<updated>2026-04-03T17:40:17Z</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:SPARQLhierarchy&amp;diff=4361&amp;oldid=prev</id>
		<title>Podehaye at 03:22, 21 May 2019</title>
		<link rel="alternate" type="text/html" href="https://wiki.personaldata.io/w/index.php?title=Template:SPARQLhierarchy&amp;diff=4361&amp;oldid=prev"/>
		<updated>2019-05-21T03:22:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:22, 21 May 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PREFIX pdio: &amp;lt;http://wiki.personaldata.io/entity/&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PREFIX pdiot: &amp;lt;http://wiki.personaldata.io/prop/direct/&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PREFIX pdiop: &amp;lt;http://wiki.personaldata.io/prop/&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PREFIX pdiops: &amp;lt;http://wiki.personaldata.io/prop/statement/&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PREFIX pdiopq: &amp;lt;http://wiki.personaldata.io/prop/qualifier/&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#defaultView:Graph&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#defaultView:Graph&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SELECT ?item1 ?item1Label ?rgb ?item2 ?item2Label ?link&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SELECT ?item1 ?item1Label ?rgb ?item2 ?item2Label ?link&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff::1.12:old-4350:rev-4361 --&gt;
&lt;/table&gt;</summary>
		<author><name>Podehaye</name></author>
	</entry>
	<entry>
		<id>https://wiki.personaldata.io/w/index.php?title=Template:SPARQLhierarchy&amp;diff=4350&amp;oldid=prev</id>
		<title>Podehaye: Podehaye moved page SPARQLhierarchy to Template:SPARQLhierarchy</title>
		<link rel="alternate" type="text/html" href="https://wiki.personaldata.io/w/index.php?title=Template:SPARQLhierarchy&amp;diff=4350&amp;oldid=prev"/>
		<updated>2019-05-21T03:14:16Z</updated>

		<summary type="html">&lt;p&gt;Podehaye moved page &lt;a href=&quot;/w/index.php?title=SPARQLhierarchy&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;SPARQLhierarchy (page does not exist)&quot;&gt;SPARQLhierarchy&lt;/a&gt; to &lt;a href=&quot;/wiki/Template:SPARQLhierarchy&quot; title=&quot;Template:SPARQLhierarchy&quot;&gt;Template:SPARQLhierarchy&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:14, 21 May 2019&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff::1.12:old-4346:rev-4350 --&gt;
&lt;/table&gt;</summary>
		<author><name>Podehaye</name></author>
	</entry>
	<entry>
		<id>https://wiki.personaldata.io/w/index.php?title=Template:SPARQLhierarchy&amp;diff=4346&amp;oldid=prev</id>
		<title>192.168.0.1: Created page with &quot; PREFIX pdio: &lt;http://wiki.personaldata.io/entity/&gt; PREFIX pdiot: &lt;http://wiki.personaldata.io/prop/direct/&gt; PREFIX pdiop: &lt;http://wiki.personaldata.io/prop/&gt; PREFIX pdiops: &lt;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.personaldata.io/w/index.php?title=Template:SPARQLhierarchy&amp;diff=4346&amp;oldid=prev"/>
		<updated>2019-05-21T03:11:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; PREFIX pdio: &amp;lt;http://wiki.personaldata.io/entity/&amp;gt; PREFIX pdiot: &amp;lt;http://wiki.personaldata.io/prop/direct/&amp;gt; PREFIX pdiop: &amp;lt;http://wiki.personaldata.io/prop/&amp;gt; PREFIX pdiops: &amp;lt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
PREFIX pdio: &amp;lt;http://wiki.personaldata.io/entity/&amp;gt;&lt;br /&gt;
PREFIX pdiot: &amp;lt;http://wiki.personaldata.io/prop/direct/&amp;gt;&lt;br /&gt;
PREFIX pdiop: &amp;lt;http://wiki.personaldata.io/prop/&amp;gt;&lt;br /&gt;
PREFIX pdiops: &amp;lt;http://wiki.personaldata.io/prop/statement/&amp;gt;&lt;br /&gt;
PREFIX pdiopq: &amp;lt;http://wiki.personaldata.io/prop/qualifier/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#defaultView:Graph&lt;br /&gt;
SELECT ?item1 ?item1Label ?rgb ?item2 ?item2Label ?link&lt;br /&gt;
WITH {SELECT ?nodeType ?nodeRGB WHERE {&lt;br /&gt;
    pdio:{{{visualization}}} pdiop:P26 ?nodeTypeStatement.&lt;br /&gt;
    ?nodeTypeStatement pdiops:P26 ?nodeType.&lt;br /&gt;
    OPTIONAL {&lt;br /&gt;
      ?nodeTypeStatement pdiopq:P115 ?nodeRGB&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
AS %nodeTypes&lt;br /&gt;
WITH {SELECT ?edgeTypeDomain ?edgeTypeRange ?edgeType ?rgb  WHERE {&lt;br /&gt;
    pdio:Q803 pdiop:P117 ?edgeTypeStatement.&lt;br /&gt;
    ?edgeTypeStatement pdiops:P117 ?edgeType.&lt;br /&gt;
    ?edgeTypeStatement pdiopq:P24 ?edgeTypeDomain.&lt;br /&gt;
    ?edgeTypeStatement pdiopq:P23 ?edgeTypeRange.&lt;br /&gt;
    OPTIONAL {&lt;br /&gt;
      ?edgeTypeStatement pdiopq:P115 ?rgb     &lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
AS %edgeTypes&lt;br /&gt;
WITH {SELECT ?node ?nodeType ?nodeRGB WHERE {&lt;br /&gt;
    ?node pdiot:{{{predicate}}} pdio:{{{value}}}.&lt;br /&gt;
    ?node pdiot:P3 ?nodeType.&lt;br /&gt;
    INCLUDE %nodeTypes.&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
AS %nodes&lt;br /&gt;
WITH {SELECT ?domain ?range ?rgb WHERE {&lt;br /&gt;
    INCLUDE %edgeTypes.&lt;br /&gt;
    ?domain pdiot:P3 ?edgeTypeDomain.&lt;br /&gt;
    ?range pdiot:P3 ?edgeTypeRange.&lt;br /&gt;
    ?edgeType pdiot:P105 ?Pid.&lt;br /&gt;
    BIND(URI(CONCAT(&amp;quot;http://wiki.personaldata.io/prop/direct/&amp;quot;, ?Pid)) AS ?link).&lt;br /&gt;
    ?domain ?link ?range.&lt;br /&gt;
    ?domain pdiot:{{{predicate}}} pdio:{{{value}}}.       # This is filtering for each edge twice, potentially a huge waste: |E|*|V| instead of |V|&lt;br /&gt;
    ?range pdiot:{{{predicate}}} pdio:{{{value}}}.&lt;br /&gt;
  }&lt;br /&gt;
} AS %edges&lt;br /&gt;
WHERE {&lt;br /&gt;
  {  &lt;br /&gt;
     INCLUDE %nodeTypes.&lt;br /&gt;
     BIND(?nodeType AS ?item1).&lt;br /&gt;
     BIND(?nodeRGB AS ?rgb).&lt;br /&gt;
  }&lt;br /&gt;
  UNION&lt;br /&gt;
  {  &lt;br /&gt;
     INCLUDE %edgeTypes.&lt;br /&gt;
     BIND(?edgeTypeDomain AS ?item1).&lt;br /&gt;
     BIND(?edgeTypeRange AS ?item2).&lt;br /&gt;
  }&lt;br /&gt;
  UNION&lt;br /&gt;
  {  &lt;br /&gt;
     INCLUDE %nodes.&lt;br /&gt;
     BIND(?node AS ?item1).&lt;br /&gt;
     BIND(?nodeRGB AS ?rgb).&lt;br /&gt;
  }&lt;br /&gt;
  UNION&lt;br /&gt;
  {  &lt;br /&gt;
     INCLUDE %edges.&lt;br /&gt;
     BIND(?domain AS ?item1).&lt;br /&gt;
     BIND(?range AS ?item2).&lt;br /&gt;
  }&lt;br /&gt;
  SERVICE wikibase:label {&lt;br /&gt;
    bd:serviceParam wikibase:language &amp;quot;en&amp;quot; . &lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
LIMIT 10000&lt;/div&gt;</summary>
		<author><name>192.168.0.1</name></author>
	</entry>
</feed>