From cf6358736874010fd421bfc6ffec6b100378ccb6 Mon Sep 17 00:00:00 2001 From: Ian Nesbitt Date: Sat, 17 Aug 2024 07:57:02 -0700 Subject: [PATCH] Adding queries to address #100 --- .../application-context-schema-org.xml | 104 +++++++++++++++ .../geocoordinates/geocoordinates.jsonld | 123 ++++++++++++++++++ .../json-ld/geocoordinates/systemmetadata.xml | 26 ++++ 3 files changed, 253 insertions(+) create mode 100644 src/test/resources/org/dataone/cn/index/resources/d1_testdocs/json-ld/geocoordinates/geocoordinates.jsonld create mode 100644 src/test/resources/org/dataone/cn/index/resources/d1_testdocs/json-ld/geocoordinates/systemmetadata.xml diff --git a/src/main/resources/application-context-schema-org.xml b/src/main/resources/application-context-schema-org.xml index 448f306e..02609ff9 100644 --- a/src/main/resources/application-context-schema-org.xml +++ b/src/main/resources/application-context-schema-org.xml @@ -576,6 +576,110 @@ + + + + + + + PREFIX rdfs: + PREFIX SO: + + SELECT ?southBoundCoord + WHERE { + ?datasetId rdf:type SO:Dataset . + ?datasetId SO:spatialCoverage ?spatial . + ?spatial rdf:type SO:Place . + ?spatial SO:geo ?geo . + ?geo rdf:type SO:GeoCoordinates . + ?geo SO:latitude ?southBoundCoord . + } + LIMIT 1 + ]]> + + + + + + + + + + + + PREFIX rdfs: + PREFIX SO: + + SELECT ?westBoundCoord + WHERE { + ?datasetId rdf:type SO:Dataset . + ?datasetId SO:spatialCoverage ?spatial . + ?spatial rdf:type SO:Place . + ?spatial SO:geo ?geo . + ?geo rdf:type SO:GeoCoordinates . + ?geo SO:longitude ?westBoundCoord . + } + LIMIT 1 + ]]> + + + + + + + + + + + + PREFIX rdfs: + PREFIX SO: + + SELECT ?northBoundCoord + WHERE { + ?datasetId rdf:type SO:Dataset . + ?datasetId SO:spatialCoverage ?spatial . + ?spatial rdf:type SO:Place . + ?spatial SO:geo ?geo . + ?geo rdf:type SO:GeoCoordinates . + ?geo SO:latitude ?northBoundCoord . + } + LIMIT 1 + ]]> + + + + + + + + + + + + PREFIX rdfs: + PREFIX SO: + + SELECT ?eastBoundCoord + WHERE { + ?datasetId rdf:type SO:Dataset . + ?datasetId SO:spatialCoverage ?spatial . + ?spatial rdf:type SO:Place . + ?spatial SO:geo ?geo . + ?geo rdf:type SO:GeoCoordinates . + ?geo SO:longitude ?eastBoundCoord . + } + LIMIT 1 + ]]> + + + + +