| 1 | PREFIX pbo: <https://ontology.property.local/pbo#> |
| 2 | PREFIX ex: <https://ontology.property.local/pbo/example#> |
| 3 | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 4 | PREFIX skos: <http://www.w3.org/2004/02/skos/core#> |
| 5 | PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> |
| 6 | |
| 7 | # CQ-004: assumptions and results of a named financial scenario. |
| 8 | SELECT ?scenario ?kind ?metric ?value ?unit ?basis WHERE { |
| 9 | ?s a pbo:FinancialScenario ; pbo:scenarioName ?scenario . |
| 10 | { ?s pbo:assumes ?mv . BIND("assumption" AS ?kind) } UNION { ?s pbo:yields ?mv . BIND("result" AS ?kind) } |
| 11 | ?mv pbo:metric ?m ; pbo:numericValue ?value ; pbo:unit ?unit . ?m skos:prefLabel ?metric . |
| 12 | OPTIONAL { ?mv pbo:basisNote ?basis } |
| 13 | FILTER(?scenario = "moderate") |
| 14 | } ORDER BY DESC(?kind) ?metric |