opengeospatial / ogcapi-records

An open standard for the discovery of geospatial resources on the Web.
https://ogcapi.ogc.org/records
Other
58 stars 27 forks source link

Confusing schemas for `themes` #235

Closed m-mohr closed 1 year ago

m-mohr commented 1 year ago

I just searched for information about themes and found various schemas and examples, which was a bit confusing:

Maybe check the following files whether they are up-to-date:

These look consistent:

pvretano commented 1 year ago

@m-mohr yeah, the examples are not quite up to date relative to the schemas. I have it on my todo list to update and augment them. Need to do a general validation of all example relative to the current state of the schemas.

m-mohr commented 1 year ago

@pvretano Thanks. The "good" schemas itself also have an issue, I think. Neither concepts nor scheme is required. I assume both should be required?

In the STAC extension I made the schema a bit more strict in general (doesn't need to get adopted to Records, just fyi):

{
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "required": [
              "concepts",
              "scheme"
            ],
            "properties": {
              "concepts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    },
                    "title": {
                      "type": "string",
                      "minLength": 1
                    },
                    "description": {
                      "type": "string",
                      "minLength": 1
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    }
                  }
                }
              },
              "scheme": {
                "type": "string",
                "minLength": 1
              }
            }
          }
        }
pvretano commented 1 year ago

@m-mohr I'll have to check with the author of that schema about why concepts and scheme are not required. Not exactly sure why that is the case ... makes sense that they should be otherwise there is little distinction with keywords. Thanks for the heads up.

tomkralidis commented 1 year ago

Thanks @m-mohr. PR in #237

m-mohr commented 1 year ago

Great, the requirements are fixed. Now it's just open to clean-up some older files, right?

tomkralidis commented 1 year ago

Thanks @m-mohr. Associated PR in #236.

m-mohr commented 1 year ago

@tomkralidis Thanks, but I don't see any changes in #236 to the two files mentioned in https://github.com/opengeospatial/ogcapi-records/issues/235#issuecomment-1528834725 ?!

m-mohr commented 1 year ago

Oh, I guess that's a typo and meant #246 :-)

tomkralidis commented 1 year ago

Oops mea culpa, yes #246 :)

tomkralidis commented 1 year ago

Given #246 is now merged, I think we can close this one @pvretano @m-mohr ?

pvretano commented 1 year ago

Resolved by PR #246 ... closing. Create a new issue or re-open this one if something comes up.