| 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-012: tax rules by property class with effective dates and cut-offs. |
| 8 | SELECT ?rule ?propertyClass ?effectiveFrom ?effectiveUntil ?cutoff ?regime WHERE { |
| 9 | ?r a pbo:TaxRule ; rdfs:label ?rule ; pbo:appliesToPropertyClass ?pc ; pbo:underRegime ?rg . |
| 10 | ?pc skos:prefLabel ?propertyClass . ?rg rdfs:label ?regime . |
| 11 | OPTIONAL { ?r pbo:effectiveFrom ?effectiveFrom } OPTIONAL { ?r pbo:effectiveUntil ?effectiveUntil } OPTIONAL { ?r pbo:cutoffDate ?cutoff } |
| 12 | } ORDER BY ?effectiveFrom ?rule |