-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
3,219 additions
and
1,560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,69 @@ | ||
# linkml-datalog | ||
|
||
Validation and inference over LinkML instance data using souffle | ||
Validation and inference over LinkML instance data using Soufflé | ||
|
||
|
||
![souffle logo](https://souffle-lang.github.io/img/logo-2x.png) | ||
![linkml logo](https://avatars.githubusercontent.com/u/79337873?s=200&v=4) | ||
|
||
## Caveats | ||
=== "schema" | ||
|
||
```yaml | ||
Person: | ||
attributes: | ||
name: | ||
identifier: true | ||
friend_of: | ||
multivalued: true | ||
range: Person | ||
symmetric: true | ||
in_network_of: | ||
range: Person | ||
multivalued: true | ||
annotations: | ||
transitive_closure_of: friend_of | ||
``` | ||
|
||
=== "data" | ||
|
||
```yaml | ||
persons: | ||
- name: p:akira | ||
friend_of: [p:bill] | ||
- name: p:bill | ||
friend_of: [p:carrie] | ||
- name: p:carrie | ||
friend_of: | ||
``` | ||
|
||
=== "output" | ||
|
||
```yaml | ||
persons: | ||
- name: p:akira | ||
friend_of: | ||
- p:bill | ||
in_network_of: | ||
- p:akira | ||
- p:bill | ||
- p:carrie | ||
- name: p:bill | ||
friend_of: | ||
- p:carrie | ||
- p:akira | ||
in_network_of: | ||
- p:akira | ||
- p:bill | ||
- p:carrie | ||
- name: p:carrie | ||
friend_of: | ||
- p:bill | ||
in_network_of: | ||
- p:akira | ||
- p:bill | ||
- p:carrie | ||
``` | ||
|
||
__Caveats__ | ||
|
||
This is currently experimental/alpha software! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
# Installation | ||
|
||
This project requires [souffle](https://souffle-lang.github.io/) | ||
## Install Soufflé | ||
|
||
After installing souffle: | ||
This project requires [Soufflé](https://souffle-lang.github.io/), a fast engine | ||
for executing [datalog](https://en.wikipedia.org/wiki/Datalog) programs | ||
|
||
* [Install Souffle](https://souffle-lang.github.io/install) | ||
|
||
Make sure the souffle executable is on your command line: | ||
|
||
```bash | ||
souffle --help | ||
``` | ||
|
||
## Install LinkML-Datalog | ||
|
||
Python 3.9 is required. | ||
|
||
Install in the standard way from PyPi: | ||
|
||
```bash | ||
pip install linkml-datalog | ||
``` | ||
|
||
## Docker | ||
|
||
Docker containers will be provided in future |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.