You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 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.
74
71
75
-
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.
72
+
1. Starting in this directory, either place source data files in the `./input/` directory or point the script at the location of your data via `-v input` flag (see example below). See the onto_tool documentation for which file formats are supported.
76
73
77
-
> 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.
74
+
> * 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.
75
+
> * The script will only transform RDF data files at the top level of the input directory, and will not recursively descend into sub-directories. Invoke the script multiple times with different directories specified via the `-v input` flag as needed.
78
76
79
-
2. Execute the following command:
77
+
2. Execute the following command for the default `./input` director:
80
78
81
79
```shell
82
80
onto_tool bundle migrate_local.yaml
83
81
```
84
82
85
-
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):
83
+
or with a custom input directory:
86
84
85
+
```shell
86
+
onto_tool bundle -v input <directory of RDF data> migrate_local.yaml
87
87
```
88
-
INFO:root:Rename properties in named graphs.
89
-
INFO:root:Replace address classes in named graphs.
90
-
INFO:root:Replace properties with inverses in named graphs.
91
-
INFO:root:Use new gist:offers property in named graphs (script 1).
92
-
INFO:root:Use new gist:offers property in named graphs (script 2).
93
-
INFO:root:Rename properties in named graphs.
94
-
INFO:root:Replace address classes in named graphs.
95
-
INFO:root:Replace properties with inverses in named graphs.
96
-
INFO:root:Use new gist:offers property in named graphs (script 1).
97
-
INFO:root:Use new gist:offers property in named graphs (script 2).
98
-
INFO:root:Check the named graphs for other items that should be reviewed.
99
-
INFO:root:Check named graphs for other items that should be reviewed.
100
-
```
101
88
102
-
- Output files will be created in the `./output/` directory.
89
+
3.`onto_tool` will output to STDOUT, you should see something like the following:
90
+
91
+
INFO:root:Rename properties in named graphs.
92
+
INFO:root:Replace address classes in named graphs.
93
+
INFO:root:Replace properties with inverses in named graphs.
94
+
INFO:root:Use new gist:offers property in named graphs (script 1).
95
+
INFO:root:Use new gist:offers property in named graphs (script 2).
96
+
INFO:root:Rename properties in named graphs.
97
+
INFO:root:Replace address classes in named graphs.
98
+
INFO:root:Replace properties with inverses in named graphs.
99
+
INFO:root:Use new gist:offers property in named graphs (script 1).
100
+
INFO:root:Use new gist:offers property in named graphs (script 2).
101
+
INFO:root:Check the named graphs for other items that should be reviewed.
102
+
INFO:root:Check named graphs for other items that should be reviewed.
103
+
104
+
- Output files will be created in the `./output/` directory. The location can be overriden by specifying `-v output <existing directory for output>`.
103
105
104
-
- Report files will be created in the `./reports/` directory.
106
+
- Report files will be created in the `./reports/` directory. The location can be overriden by specifying `-v report <existing directory for report>`.
- replaceAddressClasses replaces `gist:EmailAddress` with `gist:ElectronicAddress`
125
127
- replaceAddressClasses replaces `gist:StreetAddress` with `gist:PhysicalAddress`
126
128
127
-
The different types and uses of addresses can be modeled as categories; see [the address migration documentation(AddressMigration.md) as well as the [full documentation of the new address model](/docs/model_documentation/AddressGuidance.md).
129
+
The different types and uses of addresses can be modeled as categories; see [the address migration documentation](./AddressMigration.md) as well as the [full documentation of the new address model](../../docs/models/AddressGuidance.md).
128
130
129
131
- replacePropertiesWithInverses replaces `gist:hasPart` with `gist:isPartOf`
130
132
- useOffersProperty (scripts 1 and 2) replaces `gist:hasPart` with `gist:offers` in the context of an offer
0 commit comments