-
Notifications
You must be signed in to change notification settings - Fork 12
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
Good practice to refer to schema/documentation explaining the semantics #72
Comments
Schema support is under discussion in the OGC API groups. OGC API Features currently distinguishes three different schemas:
The current plan is to provide all of them as JSON Schema as resources in the API under the collection resource (e.g. We have implemented the current proposal to see how it would look like and added a description in the OGC API Features GitHub issue. A link to the response schema can of course also be added to the feature/feature collection responses just like any other link. |
Thanks Clemens, good to know that it's being discussed. I'll take a look and try to see how we can test this. |
Going to the link provided I feel only 1 use case is covered but we see 2 use cases (currently discussing this in the O&M SWG)
Would that make sense to expose link to semantics/queryable in the item response payload ? |
That is why wrote:
JSON Schema recommends a |
My bad, I went directly to the OGC API F work and forgot the last sentence.
I'm getting bootstrapped on JSON schema. Better then go on the recommended approach and ensure it is implemented by server/client solutions The only use case I see where I would still suggest adding a link in the payload would be when a person A passes a GeoJSON file to a person B instead of giving the API URL to person B. |
In our case the approach was to find an automatic solution for many existing WFS in our SDI. I developed the proxy solution for WFS 1.1.0 and WFS 2.0.0. I was faced to 2 different problems:
I also think, that sending a geojson file from one person to another is a realistic use case ;-) - maybe we should inject more metadata to the single objects - they may inherit this from their service metadata - this is only an idea - please think about maschine readable license information - I recommend the use of https://www.w3.org/TR/odrl-model/ - also for the metadata (services/datasets) itself ;-) |
From the webinar discussions it seems that some of us are currently exploring how to provide a reference to the schema/documentation describing the semantics used in the GeoJSON properties.
Example from Armin :
ms:json-schema_0.7_idhttps://geoportal.trier.de/trier/config/jsonschema/pois.json</ms:json-schema_0.7_id>
To avoid each of us re-inventing his own wheel could we agree on a pattern/naming to follow ?
Quick food for thoughts try
"schema":{
"type":"application/schema+json",
"url":"link to the schema/documentation"
}
}
I'm not so sure "schema" is the better choice but, I was wiling to broaden the use to something else that json schema.
?
The text was updated successfully, but these errors were encountered: