Skip to content

Feature/816 migration scripts #866

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

Merged
merged 15 commits into from
Jun 8, 2023
Merged

Conversation

coltonglasgow
Copy link
Contributor

No description provided.

- Created a new folder structure for migration queries
  - Two top level directories called action and reporting each containing a directory for default and ngraph queries.
- Simplified query file names with new directory structure
- Lots of small changes to queries
  - Split multi query files into individual files
  - Updated percentage action query
  - Tested queries on Apache Jena, GraphDB, and Allegro Graph
Created new directories under `migration/v12.0/queries/reporting/` for old and new gist namespace validation scripts.
- Old namespace queries should be used for validating before migration
- New namespace queries should be used for validating after migration
- Added a README to old and new namespace directories stating the above two bullet points
- Improved directory structure for report queries
  - Following action directory format (action/default|ngraphs)
  - Added README in report directory with directory layout
- Updated `migrate_local.yaml` with new directory structure
- README for v12.0 migrations (WiP)
@coltonglasgow coltonglasgow linked an issue May 26, 2023 that may be closed by this pull request
26 tasks
Comment on lines 79 to 119
# validation
# default
- action: "verify"
message: "Check for other items that should be reviewed."
type: "construct"
inference: "none"
stopOnFail: false
target: "{report}"
endpoint:
query_uri: "{endpoint}"
user: "{user}"
password: "{password}"
queries:
source: "{reporting_queries_path_default}/"
includes:
- "detect_removed.rq"
- "detect_renamed.rq"
- "detect_old_namespace_subject.rq"
- "detect_old_namespace_predicate.rq"
- "detect_old_namespace_object.rq"
- "detect_old_namespace_graph.rq"
# ngraphs
- action: "verify"
message: "Check for other items that should be reviewed."
type: "construct"
inference: "none"
stopOnFail: false
target: "{report}"
endpoint:
query_uri: "{endpoint}"
user: "{user}"
password: "{password}"
queries:
source: "{reporting_queries_path_ngraphs}/"
includes:
- "detect_removed.rq"
- "detect_renamed.rq"
- "detect_old_namespace_subject.rq"
- "detect_old_namespace_predicate.rq"
- "detect_old_namespace_object.rq"
- "detect_old_namespace_graph.rq"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have been unable to test the validation against an endpoint. I am getting an error back that appears to be from the endpoint, I may have the wrong URL. I have tries several databases with no luck. @Jamie-SA, could you provide me with the endpoint URL for AGraph or GraphDB please.

Copy link
Contributor

@Jamie-SA Jamie-SA left a comment

Choose a reason for hiding this comment

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

I noticed a few items and/or questions.

@Jamie-SA
Copy link
Contributor

Jamie-SA commented Jun 8, 2023

Colton is out for a couple of weeks so I'm going to work on addressing some of the issues I found during my review.

@Jamie-SA Jamie-SA self-requested a review June 8, 2023 19:36
Copy link
Contributor

@Jamie-SA Jamie-SA left a comment

Choose a reason for hiding this comment

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

I fixed the issues I saw.

@Jamie-SA Jamie-SA merged commit bcba46d into develop Jun 8, 2023
@Jamie-SA Jamie-SA deleted the feature/816-migration-scripts branch June 8, 2023 19:37
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.

Add migration scripts for version 12
2 participants