Dreams:effect: Difference between revisions
Jump to navigation
Jump to search
(8 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/> | PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/> | ||
PREFIX dreamsp: <https://dreams.wikibase.cloud/prop/> | PREFIX dreamsp: <https://dreams.wikibase.cloud/prop/> | ||
PREFIX dreamspsv: <https://dreams.wikibase.cloud/prop/statement/ | PREFIX dreamspsv: <https://dreams.wikibase.cloud/prop/statement/værdi/> | ||
SELECT DISTINCT (?description AS ?beskrivelse) ? | SELECT DISTINCT (?description AS ?beskrivelse) ?værdi ?værdiLabel ?værdiUrl | ||
WHERE { | WHERE { | ||
BIND(target: AS ?effect) | BIND(target: AS ?effect) | ||
Line 13: | Line 13: | ||
BIND(1 AS ?order) | BIND(1 AS ?order) | ||
BIND("Effekt" AS ?description) | BIND("Effekt" AS ?description) | ||
BIND(target: AS ? | BIND(target: AS ?værdi) . | ||
} | } | ||
UNION | UNION | ||
Line 19: | Line 19: | ||
BIND(5 AS ?order) | BIND(5 AS ?order) | ||
BIND("Overbegreb" AS ?description) | BIND("Overbegreb" AS ?description) | ||
target: dreamst:P10 ? | target: dreamst:P10 ?værdi . | ||
BIND(SUBSTR(STR(? | BIND(SUBSTR(STR(?værdi), 38) AS ?q) | ||
BIND(CONCAT("#effect/", ?q) AS ? | BIND(CONCAT("#effect/", ?q) AS ?værdiUrl) | ||
} | } | ||
UNION | UNION | ||
{ | { | ||
BIND(6 AS ?order) | BIND(6 AS ?order) | ||
BIND(" | BIND("Underbegreb" AS ?description) | ||
target: ^dreamst:P10 ? | target: ^dreamst:P10 ?værdi . | ||
BIND(SUBSTR(STR(? | BIND(SUBSTR(STR(?værdi), 38) AS ?q) | ||
BIND(CONCAT("#effect/", ?q) AS ? | BIND(CONCAT("#effect/", ?q) AS ?værdiUrl) | ||
} | } | ||
UNION | UNION | ||
Line 35: | Line 35: | ||
BIND(6 AS ?order) | BIND(6 AS ?order) | ||
BIND("Påvirker" AS ?description) | BIND("Påvirker" AS ?description) | ||
target: dreamst:P9 ? | target: dreamst:P9 ?værdi . | ||
BIND(CONCAT("#effect/", SUBSTR(STR(? | BIND(CONCAT("#effect/", SUBSTR(STR(?værdi), 38)) AS ?værdiUrl) | ||
} | } | ||
UNION | UNION | ||
Line 42: | Line 42: | ||
BIND(2 AS ?order) | BIND(2 AS ?order) | ||
BIND("Er påvirket af" AS ?description) | BIND("Er påvirket af" AS ?description) | ||
target: ^dreamst:P9 ? | target: ^dreamst:P9 ?værdi . | ||
BIND(CONCAT("#effect/", SUBSTR(STR(? | BIND(CONCAT("#effect/", SUBSTR(STR(?værdi), 38)) AS ?værdiUrl) | ||
} | } | ||
UNION | UNION | ||
Line 49: | Line 49: | ||
BIND(10 AS ?order) | BIND(10 AS ?order) | ||
BIND("SDG" AS ?description) | BIND("SDG" AS ?description) | ||
target: dreamst:P42 ? | target: dreamst:P10* / dreamst:P10* / dreamst:P42 ?værdi . | ||
BIND(CONCAT("#sdg/", SUBSTR(STR(? | BIND(CONCAT("#sdg/", SUBSTR(STR(?værdi), 38)) AS ?værdiUrl) | ||
} | } | ||
UNION | UNION | ||
Line 56: | Line 56: | ||
BIND(11 AS ?order) | BIND(11 AS ?order) | ||
BIND("arter.dk" AS ?description) | BIND("arter.dk" AS ?description) | ||
target: dreamst:P45 ? | target: dreamst:P45 ?værdi_ . | ||
BIND(CONCAT(? | BIND(CONCAT(?værdi_, " ↗") AS ?værdi) | ||
BIND(CONCAT("https://arter.dk/taxa/taxon/details/", ? | BIND(CONCAT("https://arter.dk/taxa/taxon/details/", ?værdi_) AS ?værdiUrl) | ||
} | } | ||
UNION | UNION | ||
Line 64: | Line 64: | ||
BIND(20 AS ?order) | BIND(20 AS ?order) | ||
BIND("Scholia" AS ?description) | BIND("Scholia" AS ?description) | ||
target: dreamst:P3 ? | target: dreamst:P3 ?værdi_ . | ||
BIND(CONCAT(? | BIND(CONCAT(?værdi_, " ↗") AS ?værdi) | ||
BIND(CONCAT("https://scholia.toolforge.org/topic/", ? | BIND(CONCAT("https://scholia.toolforge.org/topic/", ?værdi_) AS ?værdiUrl) | ||
} | } | ||
Line 83: | Line 83: | ||
PREFIX dreamspsv: <https://dreams.wikibase.cloud/prop/statement/value/> | PREFIX dreamspsv: <https://dreams.wikibase.cloud/prop/statement/value/> | ||
SELECT | SELECT DISTINCT | ||
?mønster ("🔍" AS ?mønsterLabel) | ?mønster ("🔍" AS ?mønsterLabel) | ||
(CONCAT("#pattern/", SUBSTR(STR(?mønster), 38)) AS ?mønsterUrl) | (CONCAT("#pattern/", SUBSTR(STR(?mønster), 38)) AS ?mønsterUrl) | ||
? | ?rapport ?rapportLabel | ||
(CONCAT("#report/", SUBSTR(STR(? | (CONCAT("#report/", SUBSTR(STR(?rapport), 38)) AS ?rapportUrl) | ||
? | ?subjekt ?subjektLabel ?subjektUrl | ||
? | ?påvirkning ?påvirkningLabel ?påvirkningUrl | ||
?recipient ?recipientLabel ?recipientUrl | ?recipient ?recipientLabel ?recipientUrl | ||
? | ?signifikans ?signifikansLabel | ||
? | ?afbødning ?afbødningLabel ?afbødningUrl | ||
?quote | ?quote | ||
? | ?projektfase ?projektfaseLabel | ||
(CONCAT("#projectphase/", SUBSTR(STR(? | (CONCAT("#projectphase/", SUBSTR(STR(?projektfase), 38)) AS ?projektfaseUrl) | ||
?link ?linkUrl | ?link ?linkUrl | ||
Line 112: | Line 112: | ||
OPTIONAL { | OPTIONAL { | ||
?mønster dreamst:P33 ? | ?mønster dreamst:P33 ?subjekt . | ||
? | ?subjekt rdfs:label ?subjekt_label . | ||
FILTER(LANG(? | FILTER(LANG(?subjekt_label) = 'da') | ||
BIND(CONCAT("#effect/", SUBSTR(STR(? | BIND(CONCAT("#effect/", SUBSTR(STR(?subjekt), 38)) AS ?subjektUrl) | ||
} | } | ||
OPTIONAL { ?mønster dreamst:P47 ? | OPTIONAL { ?mønster dreamst:P47 ?subjekt_text } | ||
BIND(COALESCE(? | BIND(COALESCE(?subjekt, ?subjekt_text, "") AS ?subjekt) | ||
BIND(CONCAT(? | BIND(CONCAT(?subjekt_text, " (", COALESCE(?subjekt_label, ""), ")") AS ?subjektLabel) | ||
OPTIONAL { | OPTIONAL { | ||
?mønster dreamst:P34 ? | ?mønster dreamst:P34 ?påvirkning . | ||
? | ?påvirkning rdfs:label ?påvirkning_label . | ||
FILTER (LANG(? | FILTER (LANG(?påvirkning_label) = 'da') | ||
BIND(CONCAT("#effect/", SUBSTR(STR(? | BIND(CONCAT("#effect/", SUBSTR(STR(?påvirkning), 38)) AS ?påvirkningUrl) | ||
} | } | ||
OPTIONAL { ?mønster dreamst:P49 ? | OPTIONAL { ?mønster dreamst:P49 ?påvirkning_text } | ||
BIND(COALESCE(? | BIND(COALESCE(?påvirkning, ?påvirkning_text) AS ?påvirkning) | ||
BIND(CONCAT(? | BIND(CONCAT(?påvirkning_text, " (", COALESCE(?påvirkning_label, ""), ")") AS ?påvirkningLabel) | ||
OPTIONAL { | OPTIONAL { | ||
Line 142: | Line 142: | ||
OPTIONAL { | OPTIONAL { | ||
?mønster dreamst:P56 ? | ?mønster dreamst:P56 ?afbødning . | ||
? | ?afbødning rdfs:label ?afbødning_label . | ||
FILTER (LANG(? | FILTER (LANG(?afbødning_label) = 'da') | ||
BIND(CONCAT("#effect/", SUBSTR(STR(? | BIND(CONCAT("#effect/", SUBSTR(STR(?afbødning), 38)) AS ?afbødningUrl) | ||
} | } | ||
OPTIONAL { ?mønster dreamst:P53 ? | OPTIONAL { ?mønster dreamst:P53 ?afbødning_text } | ||
BIND(COALESCE(? | BIND(COALESCE(?afbødning, ?afbødning_text) AS ?afbødning) | ||
BIND(CONCAT(? | BIND(CONCAT(?afbødning_text, " (", COALESCE(?afbødning_label, ""), ")") AS ?afbødningLabel) | ||
OPTIONAL { ?mønster dreamst:P18 ?quote . } | OPTIONAL { ?mønster dreamst:P18 ?quote . } | ||
OPTIONAL { ?mønster dreamst:P19 ? | OPTIONAL { ?mønster dreamst:P19 ?projektfase . } | ||
OPTIONAL { ?mønster dreamst:P20 ? | OPTIONAL { ?mønster dreamst:P20 ?rapport . } | ||
OPTIONAL { | OPTIONAL { | ||
?mønster dreamst:P21 ? | ?mønster dreamst:P21 ?signifikans . | ||
? | ?signifikans rdfs:label ?signifikans_text . | ||
FILTER (LANG(? | FILTER (LANG(?signifikans_text) = 'da') | ||
OPTIONAL { ? | OPTIONAL { ?signifikans dreamst:P44 ?symbol . } | ||
BIND(IF(BOUND(?symbol), ?symbol, "❓") AS ? | BIND(IF(BOUND(?symbol), ?symbol, "❓") AS ?signifikans_symbol) | ||
BIND(CONCAT(? | BIND(CONCAT(?signifikans_symbol, " ", ?signifikans_text) AS ?signifikansLabel) | ||
} | } | ||
OPTIONAL { | OPTIONAL { | ||
?mønster dreamst:P20 ? | ?mønster dreamst:P20 ?rapport . | ||
? | ?rapport dreamst:P40 ?miljøportal . | ||
OPTIONAL { ?mønster dreamst:P46 ?page } | OPTIONAL { ?mønster dreamst:P46 ?page } | ||
BIND(IF(BOUND(?page), CONCAT(?page, " ↗"), " ↗") AS ?link) | BIND(IF(BOUND(?page), CONCAT(?page, " ↗"), " ↗") AS ?link) | ||
Line 173: | Line 173: | ||
} | } | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". } | SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". } | ||
} | } | ||
}} | }} |
Latest revision as of 00:06, 16 December 2022
Effektdata
PREFIX target: <https://dreams.wikibase.cloud/entity/Q179> PREFIX dreams: <https://dreams.wikibase.cloud/entity/> PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/> PREFIX dreamsp: <https://dreams.wikibase.cloud/prop/> PREFIX dreamspsv: <https://dreams.wikibase.cloud/prop/statement/værdi/> SELECT DISTINCT (?description AS ?beskrivelse) ?værdi ?værdiLabel ?værdiUrl WHERE { BIND(target: AS ?effect) { BIND(1 AS ?order) BIND("Effekt" AS ?description) BIND(target: AS ?værdi) . } UNION { BIND(5 AS ?order) BIND("Overbegreb" AS ?description) target: dreamst:P10 ?værdi . BIND(SUBSTR(STR(?værdi), 38) AS ?q) BIND(CONCAT("#effect/", ?q) AS ?værdiUrl) } UNION { BIND(6 AS ?order) BIND("Underbegreb" AS ?description) target: ^dreamst:P10 ?værdi . BIND(SUBSTR(STR(?værdi), 38) AS ?q) BIND(CONCAT("#effect/", ?q) AS ?værdiUrl) } UNION { BIND(6 AS ?order) BIND("Påvirker" AS ?description) target: dreamst:P9 ?værdi . BIND(CONCAT("#effect/", SUBSTR(STR(?værdi), 38)) AS ?værdiUrl) } UNION { BIND(2 AS ?order) BIND("Er påvirket af" AS ?description) target: ^dreamst:P9 ?værdi . BIND(CONCAT("#effect/", SUBSTR(STR(?værdi), 38)) AS ?værdiUrl) } UNION { BIND(10 AS ?order) BIND("SDG" AS ?description) target: dreamst:P10* / dreamst:P10* / dreamst:P42 ?værdi . BIND(CONCAT("#sdg/", SUBSTR(STR(?værdi), 38)) AS ?værdiUrl) } UNION { BIND(11 AS ?order) BIND("arter.dk" AS ?description) target: dreamst:P45 ?værdi_ . BIND(CONCAT(?værdi_, " ↗") AS ?værdi) BIND(CONCAT("https://arter.dk/taxa/taxon/details/", ?værdi_) AS ?værdiUrl) } UNION { BIND(20 AS ?order) BIND("Scholia" AS ?description) target: dreamst:P3 ?værdi_ . BIND(CONCAT(?værdi_, " ↗") AS ?værdi) BIND(CONCAT("https://scholia.toolforge.org/topic/", ?værdi_) AS ?værdiUrl) } SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". } } ORDER BY ?order
Mønstre
PREFIX target: <https://dreams.wikibase.cloud/entity/Q309> PREFIX dreams: <https://dreams.wikibase.cloud/entity/> PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/> PREFIX dreamsp: <https://dreams.wikibase.cloud/prop/> PREFIX dreamspsv: <https://dreams.wikibase.cloud/prop/statement/value/> SELECT DISTINCT ?mønster ("🔍" AS ?mønsterLabel) (CONCAT("#pattern/", SUBSTR(STR(?mønster), 38)) AS ?mønsterUrl) ?rapport ?rapportLabel (CONCAT("#report/", SUBSTR(STR(?rapport), 38)) AS ?rapportUrl) ?subjekt ?subjektLabel ?subjektUrl ?påvirkning ?påvirkningLabel ?påvirkningUrl ?recipient ?recipientLabel ?recipientUrl ?signifikans ?signifikansLabel ?afbødning ?afbødningLabel ?afbødningUrl ?quote ?projektfase ?projektfaseLabel (CONCAT("#projectphase/", SUBSTR(STR(?projektfase), 38)) AS ?projektfaseUrl) ?link ?linkUrl WHERE { ?mønster dreamst:P2 dreams:Q263 ; ( dreamst:P33