-
Notifications
You must be signed in to change notification settings - Fork 1
testing indian lake being in our geosparql
We selected the following polygon within New York state:
We take inputs from the Google Maps API to perform a SPARQL query for features within the corresponding polygon:
PREFIX sf: <http://www.opengis.net/ont/sf#>
PREFIX my: <http://example.org/ApplicationSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
SELECT ?f ?name
WHERE
{
GRAPH<http://nhd.usgs.gov/>
{
?f geo:hasGeometry ?fGeom .
?f rdfs:label ?name .
?fGeom geo:asWKT ?fWKT .
FILTER(geof:sfWithin(?fWKT, "POLYGON(43.85564372562408 -74.50010515283793, 43.8467306902557 -74.08125139307231, 43.57971516896514 -74.10459734033793, 43.57175597145232 -74.50971818994731))"^^geo:wktLiteral))
} }
For our results, we got back 683 features. We didn't find any Lakes and we didn't find Indian Lake (just Indian River).
Previously, we asked our NHD collegues the following questions (didn't get a reply back):
We have found in the zipped rdf files David graciously sent geometry for the Mohawk and Hudson rivers (partially verified), and we are also looking to see if geometry for Lake George and nearby lakes, rivers, and watersheds are included. I searched and found (in NHDH0202.nt) features with rdfs:label Headwater Lake George, Indian Brook-Lake George, and Sabbath Day Point-Lake George, but not one with just 'Lake George' and I'm not sure what to make of it without digging in further. Also I didn't find the string watershed (in a case insensitive search) in any of the files, hoping it would occur in the labels. I was wondering do you have a basic set of classes you use for these features (rivers, lakes, watersheds (catchments)) in an OWL ontology you can refer us to? That way I can more easily do some semantic instead of lexical searching : )
from here we need to get RDF data from NHD that certainly has all of the lakes we have data for in SemantGeo including Indian, etc.
We just tried using the tool asking for the data:
http://viewer.nationalmap.gov/viewer/
so hopefully that will have Lake data from this region, and if not we will email NHD folks.