Import or export your ontology

Submitted by rnsrk on Tue, 08/24/2021 - 11:33

Since WissKI needs an ontology to build the semantic relations, you have to import it into your triple store. Ensure, that you have ontology suitable to your needs, as described in chapter Develop the ontology.

If you want to reimport or replace an existing ontology, you have to delete it first.

Import

GraphDB

Open GraphDB and be sure you are connected with your repository-id ... is the machine name of the repository, i. e. default-adapter, backend-data or just wisski. , then navigate to Import RDF, click on Upload RDF files and choose your ontology file. Click Import.

Specify your base-iri ... the namespace, to which relative paths should be resolved, should be your default-graph-uri ... is the leading IRI of your entities, which is used to identify and refer to objects of your knowledge domain, i. e. https://wisski.com/. Everytime you create a entity related to a adapter with the namespace, WissKI place this iri before the entity id. , i.e. https://wisski.com/. and ontology-graph ... the name of the graph your ontology should stored in, i.e. https://wisski.com/ontology. .

The base-iri ... the namespace, to which relative paths should be resolved, should be your default-graph-uri ... is the leading IRI of your entities, which is used to identify and refer to objects of your knowledge domain, i. e. https://wisski.com/. Everytime you create a entity related to a adapter with the namespace, WissKI place this iri before the entity id. , i.e. https://wisski.com/. and ontology-graph ... the name of the graph your ontology should stored in, i.e. https://wisski.com/ontology. must NOT be the same as your default-graph-uri ... is the leading IRI of your entities, which is used to identify and refer to objects of your knowledge domain, i. e. https://wisski.com/. Everytime you create a entity related to a adapter with the namespace, WissKI place this iri before the entity id. you entered at your salz adapter. If you delete it, because you want to update your ontology all data would be lost!

Delete existing ontology

GraphDB

Open GraphDB and click on Explore Graphs overview. In the row of your ontology-graph ... the name of the graph your ontology should stored in, i.e. https://wisski.com/ontology. click on the garbage can to remove the graph. Confirm to clear the graph by clicking Yes.

Update salz adapter

Navigate to Configuration WissKI Salz Adapters (WissKI Salz section),  select the repository-id ... is the machine name of the repository, i. e. default-adapter, backend-data or just wisski. of the adapter you reimported the ontology and click on Compute Type and Property Hierarchy and Domains and Ranges, check Re-Compute results and start reasoning. You may see some errors of missing domains and ranges of some properties if you use Erlangen CRM / OWL. Check reasoning results if ontology is imported.

Example screencast

 Export

GraphDB

For an Export open GraphDB and navigate to Explore Graphs overview and unfold the the tab Export repository. Choose N-Quads from the list an save it.

Example Screencast

Was this reply helpful?
2
2
5 votes with an average rating of 0.

Need help?