I-GUIDE / data-catalog-archive

The IGUIDE data catalog
3 stars 3 forks source link

TODO: use the following spatial coverage properties for the file-level matadata #47

Closed igarousi closed 7 months ago

igarousi commented 1 year ago

However, a recommended practice is to use the Schema:geo that is a subtype of Place and could be specified by using either Schema:GeoCoordinates for a point location or Schema:GeoShape for a line or area coverage extent (such as bounding box, polygon, etc.). Note that the geometry described by GeoShape should be expressed with a set of latitude and longitude pairs.

A geographic point location may look like this (from SOSO):

{
  "spatialCoverage": {
    "@type": "Place",
    "geo": {
      "@type": "GeoCoordinates",
      "latitude": 39.3280,
      "longitude": 120.1633
    }
  }
}

A geographic vector is expressed using Schema:line, and it may look like this (from SOSO):

{
  "spatialCoverage": {
    "@type": "Place",
    "geo": {
      "@type": "GeoShape",
      "line": "39.3280 120.1633 40.445 123.7878"
    }
  }
}

A geographic polygon is described using Schema:polygon, and it may look like this (from SOSO):

{
  "spatialCoverage": {
    "@type": "Place",
    "geo": {
      "@type": "GeoShape",
      "polygon": "39.3280 120.1633 40.445 123.7878 41 121 39.77 122.42 39.3280 120.1633"
    }
  }
}

A geographic bounding box is an area enclosed by a rectangle formed by two points. It is expressed using Schema:box, and it may look like this (from SOSO):

{
  "spatialCoverage": {
    "@type": "Place",
    "geo": {
      "@type": "GeoShape",
      "box": "39.3280 120.1633 40.445 123.7878"
    }
  }
}

Multiple locations can be specified using a list: (from SOSO):

{
  "spatialCoverage": {
    "@type": "Place",
    "geo": [
      {
        "@type": "GeoCoordinates",
        "latitude": -17.65,
        "longitude": 50
      },
      {
        "@type": "GeoCoordinates",
        "latitude": -19,
        "longitude": 51
      }
    ]
  }
}