You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,33 @@ sqlite> SELECT * FROM rdfs_label_statement WHERE value LIKE 'Abnormality of %';
20
20
|HP:0000032|HP:0000032|rdfs:label||Abnormality of male external genitalia|xsd:string||
21
21
22
22
23
-
Ready-made ontologies can also be downloaded for any ontology in [OBO](http://obofoundry.org), using URLs such as https://s3.amazonaws.com/bbop-sqlite/hp.db
23
+
Ready-made SQLite3 builds can also be downloaded for any ontology in [OBO](http://obofoundry.org), using URLs such as https://s3.amazonaws.com/bbop-sqlite/hp.db
24
24
25
25
[relation-graph](https://github.com/balhoff/relation-graph/) is used to pre-generate tables of [entailed edges](https://incatools.github.io/semantic-sql/EntailedEdge/). For example,
26
26
all is-a and part-of ancestors of [finger](http://purl.obolibrary.org/obo/UBERON_0002389) in Uberon:
27
27
28
+
```sql
29
+
$ sqlite db/uberon.db
28
30
sqlite>SELECT*FROM entailed_edge WHERE subject='UBERON:0002389'and predicate IN ('rdfs:subClassOf', 'BFO:0000050');
31
+
```
32
+
33
+
|subject, predicate, object|
34
+
|---|
35
+
|UBERON:0002389, BFO:0000050, UBERON:0015212|
36
+
|UBERON:0002389, BFO:0000050, UBERON:5002389|
37
+
|UBERON:0002389, BFO:0000050, UBERON:5002544|
38
+
|UBERON:0002389, rdfs:subClassOf, UBERON:0000061|
39
+
|UBERON:0002389, rdfs:subClassOf, UBERON:0000465|
40
+
|UBERON:0002389, rdfs:subClassOf, UBERON:0000475|
41
+
42
+
SQLite provides many advantages
43
+
44
+
- files can be downloaded and subsequently queried without network latency
45
+
- compared to querying a static rdf, owl, or obo file, there is no startup/parse delay
46
+
- robust and performant
47
+
- excellent support in many languages
29
48
49
+
Although the focus is on SQLite, this library can also be used for other DBMSs like PostgreSQL, MySQL, Oracle, etc
30
50
31
51
## Installation
32
52
@@ -101,6 +121,16 @@ See [Schema Documentation](https://incatools.github.io/semantic-sql/)
101
121
102
122
The [source schema](https://github.com/INCATools/semantic-sql/tree/main/src/semsql/linkml) is in [LinkML](https://linkml.io) - this is then compiled down to SQL Tables and Views
0 commit comments