Skip to content

Commit

Permalink
Docker docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Aug 10, 2022
1 parent 36a3d83 commit 4f87c9a
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,43 @@ Or simply download using URL of the form:

## Creating a SQLite database from an OWL file

Requirements; EITHER:
There are two protocols for doing this:

1. install build dependencies
2. use Docker

In either case:

- The input MUST be in RDF/XML serialization and have the suffix `.owl`:
- use robot to convert if format is different

### 1. Build a SQLite database directly

Requirements:

- [rdftab.rs](https://github.com/ontodev/rdftab.rs)
- [relation-graph](https://github.com/balhoff/relation-graph)

OR use the ODK docker image

The input MUST be in RDF/XML serialization and have the suffix `.owl`:
After installing these and putting both in your path:

```bash
semsql make foo.db
```

foo.db must be in the same directory
This assumes `foo.owl` is in the same folder

### 2. Use Docker

There are two docker images that can be used:

- ODK
- [semantic-sql](https://hub.docker.com/repository/docker/linkml/semantic-sql)

The ODK image may lag behind

```bash
docker run -v $PWD:/work -w /work -ti linkml/semantic-sql semsql make foo.db
```

## Schema

Expand Down

0 comments on commit 4f87c9a

Please # to comment.