Python library for constructing GO-CAM model RDF
Project description
# gocamgen
Base repo for constructing GO-CAM model RDF
## Installation
```
pip install gocamgen
```
## Usage
```
from gocamgen.gocamgen import GoCamModel
model = GoCamModel("model title")
model.declare_class("PomBase:SPBC12C2.02c")
uri_a = model.declare_individual("GO:0016757")
uri_b = model.declare_individual("PomBase:SPBC12C2.02c")
axiom = model.add_axiom(uri_a, URIRef(expand_uri("RO:0002333")), uri_b)
model.add_evidence(axiom, "EXP", "PMID:1234567")
model.write("output_file.ttl")
```
Base repo for constructing GO-CAM model RDF
## Installation
```
pip install gocamgen
```
## Usage
```
from gocamgen.gocamgen import GoCamModel
model = GoCamModel("model title")
model.declare_class("PomBase:SPBC12C2.02c")
uri_a = model.declare_individual("GO:0016757")
uri_b = model.declare_individual("PomBase:SPBC12C2.02c")
axiom = model.add_axiom(uri_a, URIRef(expand_uri("RO:0002333")), uri_b)
model.add_evidence(axiom, "EXP", "PMID:1234567")
model.write("output_file.ttl")
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gocamgen-0.0.4.tar.gz
(5.8 kB
view details)
File details
Details for the file gocamgen-0.0.4.tar.gz
.
File metadata
- Download URL: gocamgen-0.0.4.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7c8016013bcdd38e2ccfe0fab7ce017923f3a89f16ce2b311471a7576c46e0e |
|
MD5 | 2d2c30393e692ee6c3cff42b49942e0b |
|
BLAKE2b-256 | 0ce187e19c22006baa90ed7aab35428c67d448fd2fd1f7a4840fd2a73db9dda8 |