Skip to content

Commit

Permalink
Merge pull request #49 from INCATools/docker-docs
Browse files Browse the repository at this point in the history
docker docs
  • Loading branch information
cmungall authored Aug 11, 2022
2 parents 36a3d83 + 0dd31f3 commit eecd371
Show file tree
Hide file tree
Showing 3 changed files with 38 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
5 changes: 5 additions & 0 deletions src/semsql/builder/prefixes/prefixes.csv
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ BAO,http://www.bioassayontology.org/bao#BAO_
biopax,http://www.biopax.org/release/biopax-level3.owl#
reactome.biopax,http://www.reactome.org/biopax/81/48887#
sweet,http://sweetontology.net/
qudt,http://qudt.org/schema/qudt#
allotrope.property,http://purl.allotrope.org/ontologies/property#
allotrope.role,http://purl.allotrope.org/ontologies/role#
allotrope.equipment,http://purl.allotrope.org/ontologies/equipment#
allotrope,http://purl.allotrope.org/ontologies/
PSO,http://purl.obolibrary.org/obo/PSO_
CHIRO,http://purl.obolibrary.org/obo/CHIRO_
PW,http://purl.obolibrary.org/obo/PW_
Expand Down
5 changes: 5 additions & 0 deletions src/semsql/builder/prefixes/prefixes_curated.csv
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ BAO,http://www.bioassayontology.org/bao#BAO_
biopax,http://www.biopax.org/release/biopax-level3.owl#
reactome.biopax,http://www.reactome.org/biopax/81/48887#
sweet,http://sweetontology.net/
qudt,http://qudt.org/schema/qudt#
allotrope.property,http://purl.allotrope.org/ontologies/property#
allotrope.role,http://purl.allotrope.org/ontologies/role#
allotrope.equipment,http://purl.allotrope.org/ontologies/equipment#
allotrope,http://purl.allotrope.org/ontologies/

0 comments on commit eecd371

Please # to comment.