Skip to content
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

adds support for gmx:anchor in gmd:identifier #947

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pvgenuchten
Copy link
Contributor

optimizes #946

@pvgenuchten pvgenuchten marked this pull request as draft October 4, 2024 19:34
@coveralls
Copy link

coveralls commented Oct 4, 2024

Coverage Status

coverage: 59.688% (-0.4%) from 60.128%
when pulling 83e8568 on pvgenuchten:anchor-in-identifier
into d4e7080 on geopython:master.

@coveralls
Copy link

Coverage Status

coverage: 58.418% (-1.3%) from 59.725%
when pulling a8b0a2c on pvgenuchten:anchor-in-identifier
into f620405 on geopython:master.

@pvgenuchten pvgenuchten marked this pull request as ready for review October 4, 2024 20:15
@pvgenuchten pvgenuchten force-pushed the anchor-in-identifier branch 5 times, most recently from 06261a5 to 83e8568 Compare October 8, 2024 10:00
@pvgenuchten
Copy link
Contributor Author

pvgenuchten commented Oct 8, 2024

the gmx:Anchor element typically contains a uri and a label, in some cases both values are stored as

  • uselimitation and uselimitation_url
  • abstract and abstract_url
  • keyword.thesaurus.title and keyword.thesaurus.url

in the case of uricode it probably makes more sense to store a single value. Also because the type is array, adding uricode = [a,b,c] and uricode_url = [a1,b1,c1] would not make much sense.

assert_list(iden.uricode, 1)
assert iden.uricode[0] == 'https://www.nationaalgeoregister.nl/geonetwork/srv/metadata/f44dac86-2228-412f-8355-e56446ca9933'

# gmd:pointOfContact/gmd:CI_ResponsibleParty/gmd:organisationName/gmx:Anchor = 'http://standaarden.overheid.nl/owms/terms/Ministerie_van_Defensie'
Copy link
Contributor

@geographika geographika Oct 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these lines be removed (the commented-out lines at the end of this file)?

Copy link
Contributor Author

@pvgenuchten pvgenuchten Oct 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Seth, it was a reminder of upcoming work, but I removed it

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.

3 participants