Main Page: Difference between revisions

From DREAMS
Jump to navigation Jump to search
No edit summary
Line 19: Line 19:
* [tinyurl.com/yhvzw8p7 Geographical map]
* [tinyurl.com/yhvzw8p7 Geographical map]


=== graph example ===
=== Graph example ===
<pre>
<pre>
#defaultView:Map
#defaultView:Map
Line 32: Line 32:
</pre>
</pre>


== Sustainable Development Goals ==
=== Sustainable Development Goals ===
 
<pre>
<pre>
PREFIX dreams: <http://dreams.wiki.opencura.com/entity/>
PREFIX dreams: <http://dreams.wiki.opencura.com/entity/>
Line 41: Line 40:
   ?sdg dreamst:P2 dreams:Q22 .
   ?sdg dreamst:P2 dreams:Q22 .
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
</pre>
=== Impact graph from ontology ===
<pre>
#defaultView:Graph
PREFIX dreams: <http://dreams.wiki.opencura.com/entity/>
PREFIX dreamst: <http://dreams.wiki.opencura.com/prop/direct/>
SELECT ?concept2 ?concept2Label ?concept1 ?concept1Label {
  ?concept2 dreamst:P14 ?concept1 .
  { BIND (dreams:Q49 AS ?concept1) }
  UNION
  {
    ?concept1 dreamst:P14+ dreams:Q49 .
    ?concept2 dreamst:P14+ dreams:Q49 .
  }   
  SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
}
}
</pre>
</pre>

Revision as of 19:25, 23 November 2021

Dokuments

Ontology

Items

Properties

Queries

Graph example

#defaultView:Map
PREFIX dreams: <http://dreams.wiki.opencura.com/entity/>
PREFIX dreamst: <http://dreams.wiki.opencura.com/prop/direct/>

SELECT ?report ?reportLabel ?location ?locationLabel ?geo {
  ?report dreamst:P12 ?location .
  ?location dreamst:P13 ?geo
  SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
}

Sustainable Development Goals

PREFIX dreams: <http://dreams.wiki.opencura.com/entity/>
PREFIX dreamst: <http://dreams.wiki.opencura.com/prop/direct/>

SELECT ?sdg ?sdgLabel {
  ?sdg dreamst:P2 dreams:Q22 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Impact graph from ontology

#defaultView:Graph
PREFIX dreams: <http://dreams.wiki.opencura.com/entity/>
PREFIX dreamst: <http://dreams.wiki.opencura.com/prop/direct/>

SELECT ?concept2 ?concept2Label ?concept1 ?concept1Label {
  ?concept2 dreamst:P14 ?concept1 .
  { BIND (dreams:Q49 AS ?concept1) }
  UNION
  {
    ?concept1 dreamst:P14+ dreams:Q49 .
    ?concept2 dreamst:P14+ dreams:Q49 .
  }    
  SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
}