-
-
Notifications
You must be signed in to change notification settings - Fork 305
JSON-LD UI enhancements (HTML pages) #2172
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
base: master
Are you sure you want to change the base?
Conversation
|
an example in action can be seen here: https://defs-dev.opengis.net/bblocks-pygeoapi/collections/ogc.bbr.examples.observation.vectorObservationFeature/items/vector-obs-1 |
|
in this case you will notice that much of the STAC and records element mapping is not fully realised as Linked Data - but that is why this capability is very important as part of a testing regime. |
webb-ben
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Additionally, some semantically enabled resources may provide their own ``@id`` (i.e., URI) value, | ||
| which may be different from the one used by pygeoapi. The ``replace_id_field`` setting | ||
| inside ``linked-data`` can be used to instruct pygeoapi to override a given property | ||
| in the object with its own item URL: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this differ from the uri_field in
pygeoapi/docs/source/configuration.rst
Line 235 in 46eaaf5
| uri_field: uri # field corresponding to the Uniform Resource Identifier (see Linked Data section) |
Overview
This PR depends on GH-2171. It provides a series of UI components to enhance the HTML views of feature and stac items when a JSON-LD context is available, by mapping the object properties (and linked data values) to their corresponding semantic terms, resolving the terms, and retrieving a human-friendly label and description.
Additional information
Arrow functions are used, so ES6 is required. They could be replaced and the code made fully ES5 compatible, though.
<script src="...">dependencies is to rdflib.js and to jsonld-ui-utils are included in the HTML.Dependency policy (RFC2)
Updates to public demo
Contributions and licensing
(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)