Expand sparql query for extracting spatial coverage info from schema.org documents

Open
#100 1 comment 0 reactions 1 assignee View on GitHub

@iannesbitt is already working on this.

Since Oct 16, 2024.

  • #125 by @iannesbitt — closed without merging
  • #385 by @iannesbitt — open

Assessment

This issue has not been assessed yet.

Description

bug help wanted

The existing methods of extracting of geographical information from schema.org documents does not meet the standards of the SOSO guidelines on describing Spatial Coverage. The beans that do this work are highlighted below. At the moment, it seems like we only support spatialCoverage sections similar to the following:

    "spatialCoverage": {
        "@type": "Place",
        "geo": {
            "@type": "GeoShape",
            "box": "-5.5000 -92.6000 1.8000 -74.5000"
        }
    },

https://github.com/DataONEorg/dataone-indexer/blob/1ad4183acf55de496dbf299e2fbb992d38115296/src/main/resources/application-context-schema-org.xml#L458-L577

Since we claim to support all of the representations of schema.org outlined in the SOSO guidelines, we need to be able to support a broader range of spatialCoverage information as outlined in that document. For example, the following is a valid representation from a dataset with a point location, which I think should also be fairly straightforward to support:

  "spatialCoverage": {
    "@type": "Place",
    "name": "BioBasis Nuuk - Monitoring lakes",
    "geo": {
      "@type": "GeoCoordinates",
      "latitude": "64.13",
      "longitude": "-51.38",
      "name": "BioBasis Nuuk - Monitoring lakes"
    },
    "additionalProperty": {
      "@type": [ "PropertyValue", "http://www.wikidata.org/entity/Q4018860" ],
      "name": "WKT",
      "value": "POINT (-51.38 64.13)",
      "valueReference": [
        {
          "@type": [ "PropertyValue", "http://www.wikidata.org/entity/Q31385480" ],
          "name": "datatype",
          "value": "http://www.opengis.net/ont/geosparql#wktLiteral"
        },
        {
          "@type": [ "PropertyValue", "http://www.wikidata.org/entity/Q161779" ],
          "name": "SRS",
          "alternateName": "Spatial Reference System",
          "value": "http://www.opengis.net/def/crs/EPSG/0/4326"
        }
      ]
    }
  },

I have no experience with SPARQL apart from looking through the resource document referenced above so would be coming at this from square zero...if someone else has some idea of what they're doing, I would appreciate some guidance :)

Dominant language
Java
Stars
0
Forks
2
Avg merge
6d 6h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DataONEorg/dataone-indexer

All issues in DataONEorg/dataone-indexer

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.