Skip to content

Commit 4f87c9a

Browse files
committed
Docker docs
1 parent 36a3d83 commit 4f87c9a

1 file changed

Lines changed: 28 additions & 5 deletions

File tree

README.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,43 @@ Or simply download using URL of the form:
3030

3131
## Creating a SQLite database from an OWL file
3232

33-
Requirements; EITHER:
33+
There are two protocols for doing this:
34+
35+
1. install build dependencies
36+
2. use Docker
37+
38+
In either case:
39+
40+
- The input MUST be in RDF/XML serialization and have the suffix `.owl`:
41+
- use robot to convert if format is different
42+
43+
### 1. Build a SQLite database directly
44+
45+
Requirements:
3446

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

38-
OR use the ODK docker image
39-
40-
The input MUST be in RDF/XML serialization and have the suffix `.owl`:
50+
After installing these and putting both in your path:
4151

4252
```bash
4353
semsql make foo.db
4454
```
4555

46-
foo.db must be in the same directory
56+
This assumes `foo.owl` is in the same folder
57+
58+
### 2. Use Docker
59+
60+
There are two docker images that can be used:
61+
62+
- ODK
63+
- [semantic-sql](https://hub.docker.com/repository/docker/linkml/semantic-sql)
64+
65+
The ODK image may lag behind
66+
67+
```bash
68+
docker run -v $PWD:/work -w /work -ti linkml/semantic-sql semsql make foo.db
69+
```
4770

4871
## Schema
4972

0 commit comments

Comments
 (0)