API / INSPIRE Atom / Migration to Elasticsearch and Spring#6395
Merged
Conversation
The service works by enabling it in the settings with: * Enable INSPIRE * Configure Atom feeds: Remote * Configure Atom protocol: INSPIRE Atom The rule to scan for feeds made consistent in indexing and during scanning of feeds. The `has_atom` index field is replaced by `atomfeed`. This field is populated during indexing by the feed URL when a link use the protocol defined in the settings. Then when the harvester run, the remote feed is added to that field (instead of any). If we want full text search on the feed content, we can configure the search. To find records with an atom feed we can use `_exists_:atomfeed`. The `atom.search` provides the list of feed but don't allow search operation anymore. For testing, load: * https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/037e55bd-a1dc-4fde- adfe-4610d3a3d5cb/formatters/xml?approved=true * https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/76541ebb- a554-4540-a017-399d4bb4a860/formatters/xml?approved=true Then access: * OpenSearchDescription http://localhost:8080/geonetwork/opensearch/dut/037e55bd-a1dc-4fde-adfe-4610d3a3d5cb/OpenSearchDescription.xml * Describe dataset http://localhost:8080/geonetwork/opensearch/dut/describe?spatial_dataset_identifier_namespace=http://www.pdok.nl&spatial_dataset_identifier_code=14076c36-pdnl-2012-2020-7e65f530188b&language=nl * Download dataset / Returns the feed as the dataset seem having several downloads. http://localhost:8080/geonetwork/opensearch/dut/download? spatial_dataset_identifier_namespace=http:// www.pdok.nl&spatial_dataset_identifier_code=14076c36- pdnl-2012-2020-7e65f530188b&language=nl&crs=https://www.opengis.net/def/crs/EPSG/0/3035
34 tasks
|
SonarCloud Quality Gate failed. |
This was referenced Nov 15, 2023
10 tasks
This file contains hidden or 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
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 service works by enabling it in the settings with:
The rule to scan for feeds made consistent in indexing and during scanning of feeds.
The
has_atomindex field is replaced byatomfeed. This field is populated during indexingby the feed URL when a link use the protocol defined in the settings. Then when the harvester run,
the remote feed is added to that field (instead of any). If we want full text search on the
feed content, we can configure the search. To find records with an atom feed we can use
_exists_:atomfeed.The
atom.searchprovides the list of feed but don't allow search operation anymore.For testing, load:
adfe-4610d3a3d5cb/formatters/xml?approved=true
a554-4540-a017-399d4bb4a860/formatters/xml?approved=true
Then access:
OpenSearchDescription
http://localhost:8080/geonetwork/opensearch/dut/037e55bd-a1dc-4fde-adfe-4610d3a3d5cb/OpenSearchDescription.xml
Describe dataset
http://localhost:8080/geonetwork/opensearch/dut/describe?spatial_dataset_identifier_namespace=http://www.pdok.nl&spatial_dataset_identifier_code=14076c36-pdnl-2012-2020-7e65f530188b&language=nl
Download dataset / Returns the feed as the dataset seem having several downloads.
http://localhost:8080/geonetwork/opensearch/dut/download?
spatial_dataset_identifier_namespace=http://
www.pdok.nl&spatial_dataset_identifier_code=14076c36-
pdnl-2012-2020-7e65f530188b&language=nl&crs=https://www.opengis.net/def/crs/EPSG/0/3035
The OpenSearch API is still available and rewrites goes to OpenAPI instead of old Jeeves API which is removed.
Old references: