Use ohi with AWS Context Ontology Accelerator
Use ohi to load standard ontologies into AWS Context Ontology Accelerator (COA). It builds an ontology from your data, and based on loaded reference ontologies reuses existing terms instead of making up new ones.
ohi finds these ontologies, downloads them with their dependencies and pins their versions in a lock file. Everyone on your team then loads the same files. This guide uses W3C Organization and PROV-O.
To use other ontologies, search on ohi.dev or use ohi search.
How ohi and COA work together
Section titled “How ohi and COA work together”ohi adddownloads the ontologies you choose as OWL Turtle (.ttl) files. It records them inohi.yamland pins the exact files inohi.lock.json.- You upload the files to COA, which calls them reference ontologies.
- COA builds its ontology from your data in a step called induction. During induction, it links your classes to matching terms in the reference ontologies with
rdfs:subClassOfor SKOS match links. COA calls this grounding. Astafftable can then point to an existing class instead of becoming a newStaffclass. - Because the lock file pins the exact files, anyone can run
ohi syncto get the same ones and load them into another COA namespace or account.
Before you begin
Section titled “Before you begin”- ohi installed.
- COA deployment.
- A COA user with the
platform-adminrole, ornamespace-owneron an existing namespace. - At least one data source registered in that namespace.
Download the ontologies with ohi
Section titled “Download the ontologies with ohi”-
Create a project that downloads OWL Turtle files into an
ontologiesfolder:Terminal window ohi init coa-ontologies --default_format owl-turtle --to ontologiescd coa-ontologies -
Add your ontologies:
Terminal window ohi add w3c/org@2014ohi add w3c/prov-o@2013Each one lands in its own folder, such as
ontologies/w3c/org/2014/, along with any ontologies it depends on. -
Check that the files are there:
Terminal window find ontologies -name '*.ttl'In PowerShell, use
Get-ChildItem ontologies -Recurse -Filter *.ttl. You should see one file per ontology, plus one per dependency. -
Commit
ohi.yamlandohi.lock.json. Anyone who runsohi syncin this folder then gets the same files, checked against the same checksums. See Manage ontology projects for more.
Create a namespace in COA
Section titled “Create a namespace in COA”Skip this if you already have one.
- Log in to the COA console as a
platform-adminuser. - Go to Administration > Namespaces > Create namespace.
- Enter required data and choose a language.
- Click Create namespace, Confirm namespace language, then click Confirm and create.
Upload the reference ontologies to COA
Section titled “Upload the reference ontologies to COA”- In the COA console, open your namespace and go to Ontology > Induction.
- In the ontology upload area, upload each
.ttlfile fromontologies/. - Check that they all appear on the Reference ontologies tab.
Start induction with your ontologies
Section titled “Start induction with your ontologies”- On the Induction page, click Start induction.
- Leave Strategy as Table to Ontology.
- Under Data sources, select your data sources.
- Under Grounding ontologies (optional), select the reference ontologies you uploaded. If you have accepted an induction result in this namespace before, the console selects that one too. Leave it like that.
- Click Start induction.

Check that COA used your ontologies
Section titled “Check that COA used your ontologies”COA shows the ontology it suggests as a proposal. When induction finishes, open it. Classes that match your reference ontologies now link to their terms. In the example, those links point to IRIs starting with http://www.w3.org/ns/org# or http://www.w3.org/ns/prov#.
If nothing links:
- Check that you selected the reference ontologies before starting induction.
- Your tables may not match them. Try ontologies closer to your data.
Keep the ontologies up to date
Section titled “Keep the ontologies up to date”- Find the latest version with
ohi inspect <ontology_id>, for exampleohi inspect w3c/org. - Change the version in
ohi.yamland runohi sync. - Upload the new files, delete the old ones on Explorer > Ontologies, and run induction again.
Clean up
Section titled “Clean up”- To remove just the ontologies, delete them in Explorer > Ontologies.
- To remove a test deployment, run
make destroy-devin your COA clone. It may take some time to delete.
Get help
Section titled “Get help”NeverBlink, the team behind ohi, maintains this guide, not AWS. If something does not work, open an ohi issue or ask on Discord. For problems with COA itself, use the COA issue tracker.