A short example to illustrate migration of OWL to Grakn
Edit me

For a comprehensive guide to migration, please see both our Migration Tutorial and our additional documentation specific to OWL Migration.

Introduction

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?
Answer:

tThing
tPerson
tMan
tWoman

How many people are in the family tree?

Answer: 411

How many descendants does Eleanor Pringle have?

Answer: 55

Who are the great uncles of Ethel Archer?
Answer:

William Whitfield
Harry Whitfield
George Whitfield
Walter Whitfield
James Whitfield

Where next?

After running this OWL migration, check out the Graql documentation and the Graph API documentation for more instructions on how you can explore the family tree.

Comments

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.