-
Notifications
You must be signed in to change notification settings - Fork 17
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
OGC API Record / Output formats #29
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…twork-microservices into ogcapir-outputs
…of output formats for API services: xml/json/html
…When running from WAR, the app may not be able to load the search config if not in proper location.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The main goal is to add new "simple" output formats to OGC API Records that can be built from the index document.
Instead of creating mapping for all formats for all plugins (as GeoNetwork is currently doing), here we design flows to build XML or JSON based format from the index document.
Output formats configuration
OGC API records configuration allow to declare formats.
See
application.yml
to configure format properties:HTML pages provides formats switcher:
Formats considered
More work later on:
RSS
JAXB model are generated from XSD using xcj then converters provide mapping from an IndexRecord (JSON from Elasticsearch) to other object types.
RSS (and other formats) are advertised for each collections in the OpenSearchDescription http://localhost:9901/collections/main?f=opensearch
By default RSS feed is sorted by record change date (it may make more sense to sort by dataset publication date instead by default ?) unless you defined a custom sort parameter.
RSS items are described by:
There is no GeoRSS information and details about records online resources like in GeoNetwork 3.
JSON LD
JSON-LD format is based on https://schema.org/Dataset
Output are tested with https://search.google.com/test/rich-results
Search results are exposed as DataFeed
And metadata record as Dataset
JSON-LD format improvements that can be done in future tasks (relates to ongoing work in geonetwork/core-geonetwork#5379):
@id
for organization, keywords ?, ...DCAT
DCAT2 format is the output to use.
Requirements:
Tested:
RDFXML & Turtle
Experimental work made using RDF4J to convert JSON-LD (schema.org) to RDF.
Some properties are not parse correctly. Need more investigation.