Skip to content

API / INSPIRE Atom / Migration to Elasticsearch and Spring#6395

Merged
josegar74 merged 18 commits into
mainfrom
421-inspireatom
Jul 20, 2022
Merged

API / INSPIRE Atom / Migration to Elasticsearch and Spring#6395
josegar74 merged 18 commits into
mainfrom
421-inspireatom

Conversation

@fxprunayre

@fxprunayre fxprunayre commented Jun 15, 2022

Copy link
Copy Markdown
Member

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:

Then access:

The OpenSearch API is still available and rewrites goes to OpenAPI instead of old Jeeves API which is removed.

image

Old references:

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
@fxprunayre fxprunayre added this to the 4.2.1 milestone Jun 15, 2022
@fxprunayre fxprunayre requested a review from josegar74 June 15, 2022 13:08
@fxprunayre fxprunayre changed the title API / INSPIRE Atom / Migration to Elasticsearch API / INSPIRE Atom / Migration to Elasticsearch and Spring Jun 16, 2022
@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 34 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants