| 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-007: risks, categories and mitigations for a subject (strategy, operating model, agreement, project). |
| 8 | SELECT ?subject ?risk ?category ?mitigation WHERE { |
| 9 | ?subj pbo:hasRisk ?r . { ?subj skos:prefLabel ?subject } UNION { ?subj rdfs:label ?subject . FILTER NOT EXISTS { ?subj skos:prefLabel ?x } } |
| 10 | ?r rdfs:label ?risk ; pbo:riskCategory ?c . ?c skos:prefLabel ?category . |
| 11 | OPTIONAL { ?r pbo:mitigatedBy ?m . ?m pbo:mitigationNote ?mitigation } |
| 12 | FILTER(?subj = pbo:Strategy_RoomingHouse) |
| 13 | } ORDER BY ?risk |