-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fields for schema #173
Comments
Do we need a distinct https://stackoverflow.com/questions/64233370/in-json-schema-how-to-define-an-enum-with-description-of-each-elements-in-the-e offers a potential solution with an https://json-schema.org/understanding-json-schema/reference/const For example for sentinel-2 scene classification layer: {
"anyOf": [
{ "const": "0", "title": "No data" },
{ "const": "1", "title": "Defective" },
{ "const": "2", "title": "Dark Area Pixels" },
{ "const": "3", "title": "Cloud Shadows" },
{ "const": "4", "title": "Vegetation" },
{ "const": "5", "title": "Bare Soils" },
...
]
} |
For units of measures, Features - Part 5 already specifies We could raise the issue that this is more a vocabulary than a "language"? Does this address the needs of uom, uomURI, and uomSymbol identified above? Do we need additional fields for semantic lookup vs. for display to the user? We should clarify how QUDT should be identified? A full URI , or only the identifier? Topic for the sprint in a couple week! |
In Features - Part 5, it was clarified that UCUM for example really is a language rather than a vocabulary, since you can combine different codes together to create new units, and therefore language is the more general term. A note was added there to clarify that. The decision to use unit rather than uom is because unit is readily understandable by the uninitiated. So There is also a new
so this addresses the semantic aspect ( Regarding statistics, while the standard JSON Schema properties might define the minimum/maximum values, it would not necessarily indicate the statistics of the current dataset. It might therefore make sense to define custom fields here for these. referenceFrame, localFrame, axisId might be more relevant to Connected Systems, but if these are defined there they could also be used if relevant for Coverages. fieldIndex has been defined in Features - Part 5 as In addition to making sure the draft reflects all these decisions so far (
We also discussed at the Coveages Sprint that the |
I recommend to reopen this issue. In the current draft of Features part 5 I see the adoption of x-ogc-definition and x-ogc-unit but I do not see x-ogc-nilValues or equivalent to specify nodata values, what is essencial for grid coverages. I was not able to spot anything like this in the current draft of ogc api coverage. Can we do something about it? @jerstlouis reported:
But I'm not able to spot this in the current version of OGC API coverages yet. Can we add it? |
@joanma747 We could, but we need to discuss it first! :) That's why you should make sure to join the meeting tomorrow 10:00 AM Eastern ;) |
- The main change relates to the ability to describe meaning of enum values related to opengeospatial/ogcapi-coverages#173 (comment) using a combination of `anyOf` with `const` + `title` as described in https://stackoverflow.com/questions/64233370/in-json-schema-how-to-define-an-enum-with-description-of-each-elements-in-the-e - Other changes are gramamr fixes and minor clarifications - Changing indirect dependency to QUDT in general as opposed to QUDT units since QUDT can also used for semantic definitions (not only QUDT units) - Clarified that JSON Schema keywords can also include additional keywords in section below
- The main change relates to the ability to describe meaning of enum values related to opengeospatial/ogcapi-coverages#173 (comment) using a combination of `anyOf` with `const` + `title` as described in https://stackoverflow.com/questions/64233370/in-json-schema-how-to-define-an-enum-with-description-of-each-elements-in-the-e - Changes also introduce a new `x-ogc-nilValues` keyword for identifying nil values - Other changes are gramamr fixes and minor clarifications - Changing indirect dependency to QUDT in general as opposed to QUDT units since QUDT can also used for semantic definitions (not only QUDT units) - Clarified that JSON Schema keywords can also include additional keywords in section below
- The main change relates to the ability to describe meaning of enum values related to opengeospatial/ogcapi-coverages#173 (comment) using a combination of `anyOf` with `const` + `title` as described in https://stackoverflow.com/questions/64233370/in-json-schema-how-to-define-an-enum-with-description-of-each-elements-in-the-e - Changes also introduce a new `x-ogc-nilValues` keyword for identifying nil values - Other changes are gramamr fixes and minor clarifications - Changing indirect dependency to QUDT in general as opposed to QUDT units since QUDT can also used for semantic definitions (not only QUDT units) - Clarified that JSON Schema keywords can also include additional keywords in section below
- The main change relates to the ability to describe meaning of enum values related to opengeospatial/ogcapi-coverages#173 (comment) using a combination of `anyOf` with `const` + `title` as described in https://stackoverflow.com/questions/64233370/in-json-schema-how-to-define-an-enum-with-description-of-each-elements-in-the-e - Changes also introduce a new `x-ogc-nilValues` keyword for identifying nil values - Other changes are gramamr fixes and minor clarifications - Changing indirect dependency to QUDT in general as opposed to QUDT units since QUDT can also used for semantic definitions (not only QUDT units) - Clarified that JSON Schema keywords can also include additional keywords in section below
Is there a possibility to link to external lists ? |
Look at "observation characteristics" properties that comes from OMS for other "things" to add. https://umltool.ogc.org/index.php?m=7&o=CCBF8590-E16B-4e08-B49A-8804CBF4B7A6 |
SWG 2024-12-04:
Possibly needing further discussion:
|
@jerstlouis On the OMS ObservationCharacteristics, this element can be applied at all levels, e.g. individual Observation, Timeseries, Collection of Observations. In the Coverage context, it could be used to provide additional metadata on the individual fields. I recently did an example in the context of the TSML update where I extended a CovJSON Timeseries with OMS concepts in the |
@KathiSchleidt @joanma747 So which are the extended fields that we should define? Tomorrow in Common we're planning to set up a wiki page to keep track of them (see opengeospatial/faster-directions#1 (comment) regarding how difficult this has become). From your example we would have:
Would other things be relevant? |
@jerstlouis for OMS:host, how about we change this to sosa:Platform? SOSA is the semantic twin of OMS under W3C, currently we're updating SOSA based on the recent OMS update. |
@KathiSchleidt I've created a Wiki page on the OGC API - Common repo to keep track of the |
@jerstlouis just updated the OMS links in the table. Many thanks for the overview! Note on the UML Tool: the main browser URL just gets you to the main landing page. To link to an individual page, you have to copy the link to the diagram from the navigation on the left |
See also opengeospatial/ogcapi-features#838
https://schemas.opengis.net/ogcapi/tiles/part1/1.0/openapi/schemas/tms/propertiesSchema.yaml
uom
in Additional x-ogc keywords for encoding-independent JSON schema ogcapi-features#838 ) ?uom
in Additional x-ogc keywords for encoding-independent JSON schema ogcapi-features#838 ) ?definition
in Additional x-ogc keywords for encoding-independent JSON schema ogcapi-features#838 )For "axes" in the range (from opengeospatial/ogcapi-features#838)
Coverages-specific
Encoding info
Statistics
The text was updated successfully, but these errors were encountered: