DataONEorg / usgs-triplifier

Official triplification scripts for the USGS including GNIS-LD and NHD
Other
0 stars 0 forks source link

2.1.0 #29

Closed ThomasThelen closed 2 years ago

ThomasThelen commented 2 years ago

This PR contains the features that will make up the 2.1.0 release. It includes a few dependency updates and a partial replacement of the ago ontology.

To test:

  1. Visit the stage site
  2. Open a new query tab and run Query 1 (below)
  3. Confirm 10 results
  4. Run Query 2 (below)
  5. Confirm that there are no longer any results

Query 1

This query gets geometries with the geosparql:hasGeometry predicate.

PREFIX geosparql: <http://www.opengis.net/ont/geosparql#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT * WHERE {
  ?sub geosparql:hasGeometry ?obj .
} LIMIT 10

Query 2

This looks for any triples with the ago:geometry as the predicate. This shouldn't return any results.

PREFIX ago: <http://awesemantic-geo.link/ontology/>
SELECT * WHERE {
  ?sub ago:geometry ?obj .
} LIMIT 10