Main Page: Difference between revisions

From DREAMS
Jump to navigation Jump to search
Line 13: Line 13:
* [[Item:Q197|boremudder opsugning ved Viking Link]]
* [[Item:Q197|boremudder opsugning ved Viking Link]]
* [[Item:Q200|Viking link underboring under klitter]]
* [[Item:Q200|Viking link underboring under klitter]]
[https://dreams.wikibase.cloud/query/embed.html#PREFIX%20dreams%3A%20%3Chttps%3A%2F%2Fdreams.wikibase.cloud%2Fentity%2F%3E%0APREFIX%20dreamst%3A%20%3Chttps%3A%2F%2Fdreams.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%0A%20%20%23%3Fsubject%0A%20%20%3FsubjectLabel%0A%20%20%23%3Frelation%0A%20%20%3FrelationLabel%0A%20%20%23%3Fobject%0A%20%20%3FobjectLabel%0A%20%20%23%3Fproject%0A%20%20%3FprojectLabel%0A%20%20%23%3Fphase%0A%20%20%3FphaseLabel%0A%20%20%3Freport%20%0A%20%20%3Fquote%20%0AWHERE%20%7B%0A%20%20%3Fpattern%20dreamst%3AP2%20dreams%3AQ195%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20dreamst%3AP33%20%3Fsubject%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20dreamst%3AP35%20%3Frelation%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20dreamst%3AP34%20%3Fobject%20.%0A%20%20OPTIONAL%20%7B%20%3Fpattern%20dreamst%3AP16%20%3Fproject%20.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fpattern%20dreamst%3AP20%20%2F%20dreamst%3AP5%20%3Freport%20.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fpattern%20dreamst%3AP18%20%3Fquote%20.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fpattern%20dreamst%3AP19%20%3Fphase%20.%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22da%2Cen%22.%20%7D%0A%7D Query]


== Ontology ==  
== Ontology ==  

Revision as of 11:55, 14 June 2022

Items

Dokuments

Projects

Superpatterns

Query

Ontology

Items

Properties

Queries

Graph example

#defaultView:Map
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/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: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/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: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/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". }
}

Subactivities ontology

#defaultView:Graph
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/>

SELECT ?concept1 ?concept1Label ?rgb ?concept2 ?concept2Label  {
    ?concept1 dreamst:P14 ?concept2 .
    { BIND (dreams:Q106 AS ?concept2) }
    UNION
    {
      ?concept1 dreamst:P14+ dreams:Q106 .
    }
    OPTIONAL {
      ?concept1 dreamst:P19 ?project_phase1 . 
      BIND( IF(?project_phase1 = dreams:Q97, "3182BD", "E6550D") AS ?rgb)
    } 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
}

Effect graph

#defaultView:Graph
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/>

SELECT
  ?subactivity ?subactivityLabel ?rgb
  ?impact ?impactLabel
{
  BIND( IF(EXISTS { ?subactivity dreamst:P14+ dreams:Q106 }, "3182BD", "E6550D") AS ?rgb)
  # ?impact dreamst:P14+ dreams:Q49 .
  ?subactivity dreamst:P9 ?impact .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
}