Migrating to gist v12.0 from v11.0

This file gives a quick overview of using the migration utilities provided by the gist team to help migrate from the previous version of gist.

See also additional documentation in the Major Version Migration.

Important Remarks

Migration Queries

All of our migration tools are SPARQL queries.

The following directory structure holds the migration scripts:

. └── queries/ ├── action/ │ ├── default/ │ │ └── *.rq │ └── ngraphs/ │ └── *.rq └── report/ ├── README ├── default/ │ ├── old_namespace/ │ │ └── *.rq │ └── new_namespace/ │ └── *.rq └── ngraphs/ ├── old_namespace/ │ └── *.rq └── new_namespace/ └── *.rq

The ./queries/ directory contains the following two directories:

Each of the above directories contains the following two directories:

In the default/ and ngraphs/ directory of ./queries/report/ is two directories:

See also additional documentation in the file ./queries/report/README.html.

Requirements

These migration scripts are meant to be run using the open source onto_tool program. Information about onto_tool and how to install it, is available at github.

Run on local files

Note: A known limitation of onto_tool is that it does not support named graphs when run against local files. It does support named graphs when run against a SPARQL endpoint.

  1. Starting in this directory, put source data files in the ./input/ directory (the sample data can be removed). See the onto_tool documentation for which file formats are supported.

    The migrate_local.yaml file currently looks in the ./input/ directory for *.owl and *.ttl files. If other formats are supported and you plan to use them, you will need to update the yaml.

  2. Execute the following command:

    shell onto_tool bundle migrate_local.yaml

  3. onto_tool will output to STDOUT, you should see something like the following (this is the output from the sample data included in the ./input/ directory):

    INFO:root:Replace inverse properties. INFO:root:Migrate renamed terms. INFO:root:Replace use of gist:Percentage. INFO:root:Check for issues that should be reviewed. WARNING:root:Verification query ./queries/report/default/new_namespace/detect_removed.rq produced non-empty results: Focus Path Value Severity Message gist:Percentage <urn:constraint:removed-entity> sh:Warning Removed entity gist:Percentage referenced in da... gist:Percentage <urn:constraint:removed-entity> sh:Warning Removed entity gist:Percentage referenced in da... gist:Percentage <urn:constraint:removed-entity> sh:Warning Removed entity gist:Percentage referenced in da... gist:TimeZone <urn:constraint:removed-entity> sh:Warning Removed entity gist:TimeZone referenced in data... gist:TimeZone <urn:constraint:removed-entity> sh:Warning Removed entity gist:TimeZone referenced in data... gist:TimeZone <urn:constraint:removed-entity> sh:Warning Removed entity gist:TimeZone referenced in data... gist:TimeZoneStandard <urn:constraint:removed-entity> sh:Warning Removed entity gist:TimeZoneStandard referenced... gist:TimeZoneStandard <urn:constraint:removed-entity> sh:Warning Removed entity gist:TimeZoneStandard referenced... gist:TimeZoneStandard <urn:constraint:removed-entity> sh:Warning Removed entity gist:TimeZoneStandard referenced... gist:TreatyOrganization <urn:constraint:removed-entity> sh:Warning Removed entity gist:TreatyOrganization referenc... gist:TreatyOrganization <urn:constraint:removed-entity> sh:Warning Removed entity gist:TreatyOrganization referenc... gist:TreatyOrganization <urn:constraint:removed-entity> sh:Warning Removed entity gist:TreatyOrganization referenc... gist:hasOffsetToUniversal <urn:constraint:removed-entity> sh:Warning Removed entity gist:hasOffsetToUniversal refere... gist:hasOffsetToUniversal <urn:constraint:removed-entity> sh:Warning Removed entity gist:hasOffsetToUniversal refere... gist:hasOffsetToUniversal <urn:constraint:removed-entity> sh:Warning Removed entity gist:hasOffsetToUniversal refere... gist:usesTimeZoneStandard <urn:constraint:removed-entity> sh:Warning Removed entity gist:usesTimeZoneStandard refere... gist:usesTimeZoneStandard <urn:constraint:removed-entity> sh:Warning Removed entity gist:usesTimeZoneStandard refere... gist:usesTimeZoneStandard <urn:constraint:removed-entity> sh:Warning Removed entity gist:usesTimeZoneStandard refere...

    • Output files will be created in the ./output/ directory.

    • Report files will be created in the ./reports/ directory.

Run Against SPARQL Endpoint

You will need to tell onto_tool the URL of your SPARQL endpoint. You can do that by editing the migration_endpoint.yaml file, or you can put it into the command line execution like this:

Note: Use your own values in place of <...>

shell onto_tool bundle -v user <USER> -v password <PWD> -v endpoint <ENDPOINT-URI> [ -v update_endpoint <UPDATE-URI> ] -v report <REPORT-DIR> migrate_endpoint.yaml