This example addresses the topic of OWL interoperability through a migration of a family tree OWL ontology. The code for this example can be found in our github repository.
The sole prerequisite of this example is having the Grakn environment installed and the Engine running. If you need help starting Grakn Engine, please see the setup guide.
Running the example
You can run this example by running the
Main class. Check out the
OWLResourceMigrator class for the bulk of the migration code.
We run a few queries in the example to prove that the data has been migrated. After running the example, you should be able to answer the following questions (see the bottom of the page for answers - but please don’t peek until you’ve tried it!):
- What are the Types in the Family Tree graph in Grakn?
- How many people are in the family tree?
- How many descendants does Eleanor Pringle have?
- Who are the great uncles of Ethel Archer?
Test Yourself Answers
What are the Types in the Family Tree graph?
tThing tPerson tMan tWoman
How many people are in the family tree?
How many descendants does Eleanor Pringle have?
Who are the great uncles of Ethel Archer?
William Whitfield Harry Whitfield George Whitfield Walter Whitfield James Whitfield
Want to leave a comment? Visit the issues on Github for this page (you’ll need a GitHub account). You are also welcome to contribute to our documentation directly via the “Edit me” button at the top of the page.