Skip to content

Commit eecd371

Browse files
authored
Merge pull request #49 from INCATools/docker-docs
docker docs
2 parents 36a3d83 + 0dd31f3 commit eecd371

3 files changed

Lines changed: 38 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

src/semsql/builder/prefixes/prefixes.csv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ BAO,http://www.bioassayontology.org/bao#BAO_
3030
biopax,http://www.biopax.org/release/biopax-level3.owl#
3131
reactome.biopax,http://www.reactome.org/biopax/81/48887#
3232
sweet,http://sweetontology.net/
33+
qudt,http://qudt.org/schema/qudt#
34+
allotrope.property,http://purl.allotrope.org/ontologies/property#
35+
allotrope.role,http://purl.allotrope.org/ontologies/role#
36+
allotrope.equipment,http://purl.allotrope.org/ontologies/equipment#
37+
allotrope,http://purl.allotrope.org/ontologies/
3338
PSO,http://purl.obolibrary.org/obo/PSO_
3439
CHIRO,http://purl.obolibrary.org/obo/CHIRO_
3540
PW,http://purl.obolibrary.org/obo/PW_

src/semsql/builder/prefixes/prefixes_curated.csv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ BAO,http://www.bioassayontology.org/bao#BAO_
3030
biopax,http://www.biopax.org/release/biopax-level3.owl#
3131
reactome.biopax,http://www.reactome.org/biopax/81/48887#
3232
sweet,http://sweetontology.net/
33+
qudt,http://qudt.org/schema/qudt#
34+
allotrope.property,http://purl.allotrope.org/ontologies/property#
35+
allotrope.role,http://purl.allotrope.org/ontologies/role#
36+
allotrope.equipment,http://purl.allotrope.org/ontologies/equipment#
37+
allotrope,http://purl.allotrope.org/ontologies/

0 commit comments

Comments
 (0)