Dreams:effect: Difference between revisions
Jump to navigation
Jump to search
(→Affects: positiv påvirkning handled for affected) |
(handled positiv påvirkning for is affected by) |
||
Line 129: | Line 129: | ||
BIND(IF(?significance_ = dreams:Q178, "🔴", | BIND(IF(?significance_ = dreams:Q178, "🔴", | ||
IF(?significance_ = dreams:Q176, "🔴🔴", | IF(?significance_ = dreams:Q176, "🔴🔴", | ||
IF(?significance_ = dreams:Q231, "😀", | IF(?significance_ = dreams:Q231, "😀😀", | ||
"❓"))) AS ?significance) | IF(?significance_ = dreams:Q232, "😀", | ||
"❓")))) AS ?significance) | |||
} | } | ||
OPTIONAL { ?pattern dreamst:P19 ?project_phase . } | OPTIONAL { ?pattern dreamst:P19 ?project_phase . } |
Revision as of 13:42, 12 August 2022
Data
PREFIX target: <https://dreams.wikibase.cloud/entity/Q12> 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 ?description ?value ?valueLabel ?valueUrl WHERE { BIND(target: AS ?effect) { BIND(1 AS ?order) BIND("Effect" AS ?description) BIND(target: AS ?value) . } UNION { BIND(5 AS ?order) BIND("Superconcept" AS ?description) target: dreamst:P10 ?value . BIND(SUBSTR(STR(?value), 38) AS ?q) BIND(CONCAT("#effect/", ?q) AS ?valueUrl) } UNION { BIND(6 AS ?order) BIND("Subconcepts" AS ?description) target: ^dreamst:P10 ?value . BIND(SUBSTR(STR(?value), 38) AS ?q) BIND(CONCAT("#effect/", ?q) AS ?valueUrl) } UNION { BIND(10 AS ?order) BIND("Scholia" AS ?description) target: dreamst:P3 ?value_ . BIND(CONCAT(?value_, " ↗") AS ?value) BIND(CONCAT("https://scholia.toolforge.org/", ?value_) AS ?valueUrl) } SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". } }
Affects
PREFIX target: <https://dreams.wikibase.cloud/entity/Q6> 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 ?pattern ?patternLabel (CONCAT("#pattern/", SUBSTR(STR(?pattern), 38)) AS ?patternUrl) ?affected ?affectedLabel (CONCAT("#effect/", SUBSTR(STR(?affected), 38)) AS ?affectedUrl) ?significance ?quote ?project_phase ?project_phaseLabel (CONCAT("#project-phase/", SUBSTR(STR(?project_phase), 38)) AS ?project_phaseUrl) ?project_type ?project_typeLabel (CONCAT("#project-type/", SUBSTR(STR(?project_type), 38)) AS ?project_typeUrl) ?report ?reportLabel (CONCAT("#report/", SUBSTR(STR(?report), 38)) AS ?reportUrl) WHERE { ?pattern dreamst:P2 dreams:Q263 ; dreamst:P33 target: ; dreamst:P34 ?affected ; dreamst:P18 ?quote ; dreamst:P20 ?report . OPTIONAL { ?pattern dreamst:P21 ?significance_ . BIND(IF(?significance_ = dreams:Q178, "🔴", IF(?significance_ = dreams:Q176, "🔴🔴", IF(?significance_ = dreams:Q231, "😀😀", IF(?significance_ = dreams:Q232, "😀", "❓")))) AS ?significance) } OPTIONAL { ?pattern dreamst:P19 ?project_phase . } OPTIONAL { ?pattern dreamst:P16 ?project_type . } SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". } }
Is affected by
PREFIX target: <https://dreams.wikibase.cloud/entity/Q6> 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 ?pattern ?patternLabel (CONCAT("#pattern/", SUBSTR(STR(?pattern), 38)) AS ?patternUrl) ?effect ?effectLabel (CONCAT("#effect/", SUBSTR(STR(?effect), 38)) AS ?effectUrl) ?significance ?quote ?project_phase ?project_phaseLabel (CONCAT("#project-phase/", SUBSTR(STR(?project_phase), 38)) AS ?project_phaseUrl) ?project_type ?project_typeLabel (CONCAT("#project-type/", SUBSTR(STR(?project_type), 38)) AS ?project_typeUrl) ?report ?reportLabel (CONCAT("#report/", SUBSTR(STR(?report), 38)) AS ?reportUrl) WHERE { ?pattern dreamst:P2 dreams:Q263 ; dreamst:P33 ?effect ; dreamst:P34 target: ; dreamst:P18 ?quote ; dreamst:P20 ?report . OPTIONAL { ?pattern dreamst:P21 ?significance_ . BIND(IF(?significance_ = dreams:Q178, "🔴", IF(?significance_ = dreams:Q176, "🔴🔴", IF(?significance_ = dreams:Q231, "😀😀", IF(?significance_ = dreams:Q232, "😀", "❓")))) AS ?significance) } OPTIONAL { ?pattern dreamst:P19 ?project_phase . } OPTIONAL { ?pattern dreamst:P16 ?project_type . } SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". } }