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 knowledge base 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 knowledge base?
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