Query 0 - Get_CLC_areas:
PREFIX dataset:
PREFIX geof:
PREFIX geo:
PREFIX rdf:
PREFIX clc:
SELECT ?a ?aID ?aLandUse ?aGeo ?aGeoWKT
WHERE {
GRAPH dataset:clc {
?a rdf:type clc:Area.
?a clc:hasID ?aID.
?a clc:hasLandUse ?aLandUse.
?a clc:hasGeometry ?aGeo.
?aGeo clc:asWKT ?aGeoWKT.
FILTER(geof:sfIntersects(?aGeoWKT, "GIVEN_POLYGON_IN_WKT"^^geo:wktLiteral))
}
}
Query 1 - Get_highways:
PREFIX dataset:
PREFIX geof:
PREFIX geo:
PREFIX rdf:
PREFIX lgd:
SELECT ?r ?rName ?rGeoWKT
WHERE {
GRAPH dataset:lgd {
?r rdf:type lgd:HighwayThing.
?r rdfs:label ?rName.
?r lgd:hasGeometry ?rGeo.
?rGeo lgd:asWKT ?rGeoWKT.
FILTER(geof:sfIntersects(?rGeoWKT, "GIVEN_POLYGON_IN_WKT"^^geo:wktLiteral))
}
}
Query 2 - Get_municipalities:
PREFIX dataset:
PREFIX geof:
PREFIX geo:
PREFIX rdf:
PREFIX gag:
SELECT (geof:boundary(?gGeoWKT) as ?boundary) ?gLabel
WHERE {
GRAPH dataset:gag {
?g rdf:type gag:Municipality.
?g rdfs:label ?gLabel.
?g gag:hasGeometry ?gGeo.
?gGeo gag:asWKT ?gGeoWKT.
FILTER(geof:sfIntersects(?gGeoWKT, "GIVEN_POLYGON_IN_WKT"^^geo:wktLiteral))
}
}
Query 3 - Get_hotspots:
PREFIX dataset:
PREFIX geof:
PREFIX geo:
PREFIX rdf:
PREFIX xsd:
PREFIX noa:
SELECT ?h ?sensor ?confidence ?producer ?satellite ?chain ?confirmatino ?geometry ?r ?wkt
WHERE {
GRAPH dataset:hotspots {
?h rdf:type noa:Hotspot.
?h noa:isDerivedFromSensor ?sensor.
?h noa:hasConfidence ?confidence.
?h noa:isProducedBy ?producer.
?h noa:isDerivedFromSatellite ?satellite.
?h noa:producedFromProcessingChain ?chain.
?h noa:hasConfirmation ?confirmation .
?h noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime.
?h noa:hasGeometry ?geomentry.
OPTIONAL {?h noa:refinedBy ?r}
FILTER(!bound(?r))
?geometry noa:asWKT ?wkt .
FILTER(geof:sfIntersects(?wkt, "GIVEN_POLYGON_IN_WKT"^^geo:wktLiteral))
}
}
Query 4 - Get_coniferous_forests_in_fire:
PREFIX dataset:
PREFIX geof:
PREFIX geo:
PREFIX rdf:
PREFIX xsd:
PREFIX clc:
PREFIX noa:
SELECT ?h ?hWKT
WHERE {
GRAPH dataset:hotspots {
?h rdf:type noa:Hotspot.
?h noa:hasGeometry ?hGeo.
?h noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime.
?hGeo noa:asWKT ?hWKT.
}
GRAPH dataset:clc {
?a a clc:Area.
?a clc:hasGeometry ?aGeo.
?a clc:hasLandUse clc:coniferousForest.
?aGeo clc:asWKT ?aWKT.
}
FILTER(geof:sfIntersects(?hWKT, ?aWKT)) .
FILTER(geof:sfIntersects(?aWKT, "GIVEN_POLYGON_IN_WKT"^^geo:wktLiteral))
}
Query 5 - Get_road_segments_affected_by_fire:
PREFIX dataset:
PREFIX geof:
PREFIX geo:
PREFIX rdf:
PREFIX noa:
PREFIX lgd:
SELECT ?r (geof:difference(?rWKT, ?hWKT) as ?diff)
WHERE {
GRAPH dataset:hotspots {
?h rdf:type noa:Hotspot.
?h noa:hasGeometry ?hGeo.
?h noa:hasAcquisitionTime ?hAcqTime.
?hGeo noa:asWKT ?hWKT.
}
GRAPH dataset:lgd {
?r rdf:type lgd:HighwayThing.
?r lgd:hasGeometry ?rGeo.
?rGeo lgd:asWKT ?rWKT.
}
FILTER(geof:sfIntersects(?rWKT, ?hWKT)) .
FILTER(geof:sfIntersects(?rWKT, "GIVEN_POLYGON_IN_WKT"^^geo:wktLiteral))
}