|
| 1 | +# Find PFAS results near suspected PFAS industry using facilities, by State |
| 2 | +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> |
| 3 | +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 4 | +PREFIX skos: <http://www.w3.org/2004/02/skos/core#> |
| 5 | +PREFIX fio: <http://w3id.org/fio/v1/fio#> |
| 6 | +PREFIX fio-pfas: <http://w3id.org/fio/v1/pfas#> |
| 7 | +PREFIX naics: <http://w3id.org/fio/v1/naics#> |
| 8 | +PREFIX epa-frs: <http://w3id.org/fio/v1/epa-frs#> |
| 9 | +PREFIX geo: <http://www.opengis.net/ont/geosparql#> |
| 10 | +PREFIX kwg-ont: <http://stko-kwg.geog.ucsb.edu/lod/ontology/> |
| 11 | +PREFIX kwgr: <http://stko-kwg.geog.ucsb.edu/lod/resource/> |
| 12 | +PREFIX spatial: <http://purl.org/spatialai/spatial/spatial-full#> |
| 13 | +PREFIX coso:<http://w3id.org/coso/v1/contaminoso#> |
| 14 | +PREFIX qudt: <http://qudt.org/schema/qudt/> |
| 15 | + |
| 16 | +SELECT DISTINCT ?observation ?stateName ?townName ?concentration ?unit ?normalizedConc ?substance ?date ?facilityName ?industryName WHERE { |
| 17 | + #find s2 cells with detect samples |
| 18 | + ?sp a coso:SamplePoint; |
| 19 | + kwg-ont:sfWithin ?s2, ?town. |
| 20 | + ?observation coso:observedAtSamplePoint ?sp; |
| 21 | + coso:ofDSSToxSubstance/skos:altLabel ?substance; |
| 22 | + coso:hasResult ?result; |
| 23 | + coso:observedTime ?date. |
| 24 | + ?result qudt:quantityValue/qudt:numericValue ?concentration; |
| 25 | + qudt:quantityValue/qudt:hasUnit ?rawUnit. #only detected values |
| 26 | + ?rawUnit qudt:symbol ?unit; |
| 27 | + qudt:conversionMultiplier ?unitConversion. |
| 28 | + BIND((?unitConversion * ?concentration) as ?normalizedConc ) #normalize different units |
| 29 | + ?s2 rdf:type kwg-ont:S2Cell_Level13. |
| 30 | + ?town rdf:type kwg-ont:AdministrativeRegion_3; |
| 31 | + kwg-ont:administrativePartOf+ ?state; |
| 32 | + rdfs:label ?townName. |
| 33 | + ?state rdf:type kwg-ont:AdministrativeRegion_1; |
| 34 | + rdfs:label ?stateName. |
| 35 | + |
| 36 | + #find facilities in s2 cells |
| 37 | + ?facility kwg-ont:sfWithin ?s2; |
| 38 | + rdf:type fio:Facility; |
| 39 | + rdfs:label ?facilityName; |
| 40 | + fio:ofIndustry ?industry. |
| 41 | + ?pfasIndustryList rdfs:subClassOf fio-pfas:IndustryCollectionByPFASContaminationConcern; |
| 42 | + fio:hasMember ?industry. |
| 43 | + ?industry rdfs:label ?industryName. |
| 44 | + |
| 45 | +} ORDER BY DESC(?normalizedConc) # highest normalized concentration first |
| 46 | +limit 100 |
| 47 | + |
0 commit comments