-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to use jsonld after playground discussion; refactor tests
- Loading branch information
Showing
3 changed files
with
208 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
132 changes: 0 additions & 132 deletions
132
tests/usgs-location-oriented/collections-usgs-things-items-'USCE-07335390'.json
This file was deleted.
Oops, something went wrong.
188 changes: 188 additions & 0 deletions
188
tests/usgs-location-oriented/collections-usgs-things-items-AR008-331856091114601.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
{ | ||
"@context":[ | ||
{ | ||
"schema":"https://schema.org/", | ||
"type":"@type", | ||
"gsp":"http://www.opengis.net/ont/geosparql#" | ||
} | ||
], | ||
"type":"schema:Place", | ||
"id":"'AR008-331856091114601'", | ||
"@iot.selfLink":"https://labs.waterdata.usgs.gov/sta/v1.1/Things('AR008-331856091114601')", | ||
"name":"AR008-331856091114601", | ||
"description":"Well", | ||
"Locations":[ | ||
{ | ||
"@iot.selfLink":"https://labs.waterdata.usgs.gov/sta/v1.1/Locations('8416841e-2d1b-11ec-ac1b-a32405a27bb1')", | ||
"@iot.id":"8416841e-2d1b-11ec-ac1b-a32405a27bb1", | ||
"name":"AR008-331856091114601", | ||
"description":"Well", | ||
"encodingType":"application/vnd.geo+json", | ||
"location":{ | ||
"type":"Point", | ||
"coordinates":[ | ||
-91.1969333333333, | ||
33.3169611111111 | ||
] | ||
} | ||
} | ||
], | ||
"Datastreams":[ | ||
{ | ||
"@iot.selfLink":"https://labs.waterdata.usgs.gov/sta/v1.1/Datastreams('177000bd9f6c45e5909c1729e4aab7b0')", | ||
"@iot.id":"177000bd9f6c45e5909c1729e4aab7b0", | ||
"name":"177000bd9f6c45e5909c1729e4aab7b0", | ||
"description":"Flow rate, well / AR008-331856091114601-177000bd9f6c45e5909c1729e4aab7b0", | ||
"observationType":"Instantaneous", | ||
"unitOfMeasurement":{ | ||
"name":"UNKNOWN", | ||
"symbol":"US Gal/min", | ||
"definition":"" | ||
}, | ||
"observedArea":{ | ||
"type":"Point", | ||
"coordinates":[ | ||
-91.1969333, | ||
33.3169611 | ||
] | ||
}, | ||
"phenomenonTime":"2024-09-20T09:15:00Z/2024-09-30T16:00:00Z", | ||
"properties":{ | ||
"Thresholds":[ | ||
{ | ||
"Name":"Operational limit (minimum)", | ||
"Type":"ThresholdBelow", | ||
"Periods":[ | ||
{ | ||
"EndTime":"9999-12-31T23:59:59.9999999+00:00", | ||
"StartTime":"0001-01-01T00:00:00.0000000+00:00", | ||
"SuppressData":true, | ||
"ReferenceValue":-0.01, | ||
"ReferenceValueToTriggerDisplay":null | ||
} | ||
], | ||
"ReferenceCode":"Operational limit - low-Public" | ||
}, | ||
{ | ||
"Name":"Operational limit (maximum)", | ||
"Type":"ThresholdAbove", | ||
"Periods":[ | ||
{ | ||
"EndTime":"9999-12-31T23:59:59.9999999+00:00", | ||
"StartTime":"0001-01-01T00:00:00.0000000+00:00", | ||
"SuppressData":true, | ||
"ReferenceValue":20000, | ||
"ReferenceValueToTriggerDisplay":15000 | ||
} | ||
], | ||
"ReferenceCode":"Operational limit - high-Public" | ||
} | ||
], | ||
"ParameterCode":"00058", | ||
"StatisticCode":"00011" | ||
} | ||
}, | ||
{ | ||
"@iot.selfLink":"https://labs.waterdata.usgs.gov/sta/v1.1/Datastreams('9aa77f35cea344a4a0e5715e05d057c3')", | ||
"@iot.id":"9aa77f35cea344a4a0e5715e05d057c3", | ||
"name":"9aa77f35cea344a4a0e5715e05d057c3", | ||
"description":"Precipitation, total, inches / AR008-331856091114601-9aa77f35cea344a4a0e5715e05d057c3", | ||
"observationType":"Instantaneous", | ||
"unitOfMeasurement":{ | ||
"name":"in", | ||
"symbol":"in", | ||
"definition":"" | ||
}, | ||
"observedArea":{ | ||
"type":"Point", | ||
"coordinates":[ | ||
-91.1969333, | ||
33.3169611 | ||
] | ||
}, | ||
"phenomenonTime":"2024-09-20T09:15:00Z/2024-09-30T16:00:00Z", | ||
"properties":{ | ||
"ParameterCode":"00045" | ||
} | ||
} | ||
], | ||
"Locations@iot.navigationLink":"https://labs.waterdata.usgs.gov/sta/v1.1/Things('AR008-331856091114601')/Locations", | ||
"HistoricalLocations@iot.navigationLink":"https://labs.waterdata.usgs.gov/sta/v1.1/Things('AR008-331856091114601')/HistoricalLocations", | ||
"Datastreams@iot.navigationLink":"https://labs.waterdata.usgs.gov/sta/v1.1/Things('AR008-331856091114601')/Datastreams", | ||
"state":"Arkansas", | ||
"county":"Chicot County", | ||
"country":"United States of America", | ||
"mapScale":24000, | ||
"stateCode":"AR", | ||
"wellDepth":"80.0", | ||
"agencyCode":"AR008", | ||
"countryFIPS":"US", | ||
"hydrologicUnit":"08050002", | ||
"decimalLatitude":33.3169611111111, | ||
"decimalLongitude":-91.1969333333333, | ||
"monitoringLocationUrl":"https://waterdata.usgs.gov/monitoring-location/331856091114601", | ||
"monitoringLocationName":"16S01W10CC1 CH-32 WU", | ||
"monitoringLocationType":"Well", | ||
"monitoringLocationNumber":"331856091114601", | ||
"locationHUCTwelveDigitCode":"080500020302", | ||
"decimalLatitudeStandardized":33.3169611111111, | ||
"decimalLongitudeStandardized":-91.1969333333333, | ||
"geometry":{ | ||
"type":"Point", | ||
"coordinates":[ | ||
-91.1969333333333, | ||
33.3169611111111 | ||
] | ||
}, | ||
"gsp:hasGeometry":{ | ||
"@type":"http://www.opengis.net/ont/sf#Point", | ||
"gsp:asWKT":{ | ||
"@type":"http://www.opengis.net/ont/geosparql#wktLiteral", | ||
"@value":"POINT (-91.1969333333333 33.3169611111111)" | ||
} | ||
}, | ||
"schema:geo":{ | ||
"@type":"schema:GeoCoordinates", | ||
"schema:longitude":-91.1969333333333, | ||
"schema:latitude":33.3169611111111 | ||
}, | ||
"@id":"https://api.iodh.internetofwater.app/collections/usgs-sta/items/'AR008-331856091114601'", | ||
"links":[ | ||
{ | ||
"type":"application/json", | ||
"rel":"root", | ||
"title":"The landing page of this server as JSON", | ||
"href":"https://api.iodh.internetofwater.app?f=json" | ||
}, | ||
{ | ||
"type":"text/html", | ||
"rel":"root", | ||
"title":"The landing page of this server as HTML", | ||
"href":"https://api.iodh.internetofwater.app?f=html" | ||
}, | ||
{ | ||
"rel":"alternate", | ||
"type":"application/geo+json", | ||
"title":"This document as JSON", | ||
"href":"https://api.iodh.internetofwater.app/collections/usgs-sta/items/'AR008-331856091114601'?f=json" | ||
}, | ||
{ | ||
"rel":"self", | ||
"type":"application/ld+json", | ||
"title":"This document as RDF (JSON-LD)", | ||
"href":"https://api.iodh.internetofwater.app/collections/usgs-sta/items/'AR008-331856091114601'?f=jsonld" | ||
}, | ||
{ | ||
"rel":"alternate", | ||
"type":"text/html", | ||
"title":"This document as HTML", | ||
"href":"https://api.iodh.internetofwater.app/collections/usgs-sta/items/'AR008-331856091114601'?f=html" | ||
}, | ||
{ | ||
"rel":"collection", | ||
"type":"application/json", | ||
"title":"United States Geologic Survey SensorThings API", | ||
"href":"https://api.iodh.internetofwater.app/collections/usgs-sta" | ||
} | ||
] | ||
} |