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

Feature: Add new AgroPortal model migration script #15

Merged
merged 5 commits into from
Sep 7, 2023

Conversation

syphax-bouazzouni
Copy link

@syphax-bouazzouni syphax-bouazzouni commented Jul 31, 2023

Context

See agroportal/project-management#411

This PR adds a script that do the following migration actions

  • Transform all the URI attributes from String to URIs
  • Reset to nil the validity date if invalid (inferior to creation date)
  • Set curatedOn date to creationDate if invalid
  • Add ontologies views to the hasPart attribute if invalid
  • Set URI = submission.id if URI is null
  • Reject URI from the identifier values if found.
  • Transform designedForOntologyTask string to URI by adding the namespace http://omv.ontoware.org/2005/05/ontology#
  • Set modificationDate = creationDate, if invalid
  • Transform naturalLanguage string to URI by adding the namespace http://lexvo.org/id/iso639-1/
  • Transform isOfType string to URI by adding the namespace "http://omv.ontoware.org/2005/05/ontology#
  • Set description = "#{ontology_acronym} description", if no description given
  • Transfrom all agent attributes from String to Agent object; by reusing the string as the object name.

Changes

  • Add Agroportal new model migration script (75f9f69)

@syphax-bouazzouni syphax-bouazzouni force-pushed the feature/new-agent-model-migration branch from 75f9f69 to af46521 Compare July 31, 2023 07:05
@syphax-bouazzouni syphax-bouazzouni force-pushed the feature/new-agent-model-migration branch from 5ad4efc to 43e0610 Compare September 7, 2023 21:16
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.

1 participant