https://github.com/althonos/obofoundry.rs
Structures to deserialize OBO Foundry listings into.
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 3 committers (33.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.1%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Structures to deserialize OBO Foundry listings into.
Basic Info
- Host: GitHub
- Owner: althonos
- License: mit
- Language: Rust
- Default Branch: master
- Size: 64.5 KB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
- Releases: 16
Topics
Metadata Files
README.md
obofoundry.rs 
Structures to deserialize OBO Foundry listings into.
Usage
Add the obofoundry crate to the Cargo.toml manifest, as well as either
serde_yaml or serde_json:
toml
[dependencies]
obofoundry = "0.8"
serde_yaml = "0.8"
Then use the serde framework to load the listings:
```rust,ignore extern crate obofoundry; extern crate serde_yaml;
let yamldata = includestr!("..."); let foundry: obofoundry::Foundry = serdeyaml::fromstr(&yml).unwrap(); ```
It's also possible to use an HTTP library to load the listings from the OBO Foundry
website directly, for instance using ureq:
```rust extern crate obofoundry; extern crate ureq; extern crate serde_yaml;
let url = "http://www.obofoundry.org/registry/ontologies.yml";
let res = ureq::get(url).call(); let reader = res.unwrap().intoreader(); let foundry: obofoundry::Foundry = serdeyaml::from_reader(reader).unwrap(); ```
Example
Download the ontologies.yml table from the OBO Foundry and use it to
extract all PURLs to ontologies in the OBO format:
```rust extern crate obofoundry; extern crate ureq; extern crate serde_yaml; use std::io::Read;
const URL: &'static str = "http://www.obofoundry.org/registry/ontologies.yml";
fn main() { let res = ureq::get(URL).call(); let reader = res.unwrap().into_reader();
let foundry: obofoundry::Foundry = serde_yaml::from_reader(reader).unwrap();
for ontology in &foundry.ontologies {
for product in &ontology.products {
if product.id.ends_with(".obo") {
println!("{} - {}", product.id, product.ontology_purl)
}
}
}
} ```
See the online documentation at docs.rs for more examples.
Changelog
This project adheres to Semantic Versioning and provides a changelog in the Keep a Changelog format.
License
This library is provided under the open-source MIT license.
Owner
- Name: Martin Larralde
- Login: althonos
- Kind: user
- Location: Heidelberg, Germany
- Company: EMBL / LUMC, @zellerlab
- Twitter: althonos
- Repositories: 91
- Profile: https://github.com/althonos
PhD candidate in Bioinformatics, passionate about programming, SIMD-enthusiast, Pythonista, Rustacean. I write poems, and sometimes they are executable.
GitHub Events
Total
- Pull request event: 1
- Create event: 1
Last Year
- Pull request event: 1
- Create event: 1
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Martin Larralde | m****e@e****e | 47 |
| Martin Larralde | m****e@e****r | 30 |
| dependabot-preview[bot] | 2****] | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 8
- Average time to close issues: N/A
- Average time to close pull requests: about 2 months
- Total issue authors: 0
- Total pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 0.75
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 8
Past Year
- Issues: 0
- Pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 2
Top Authors
Issue Authors
Pull Request Authors
- dependabot-preview[bot] (5)
- dependabot[bot] (3)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cargo 25,492 total
- Total dependent packages: 2
- Total dependent repositories: 2
- Total versions: 16
- Total maintainers: 1
crates.io: obofoundry
Structures to deserialize OBO Foundry listings into.
- Documentation: https://docs.rs/obofoundry/
- License: MIT
-
Latest release: 0.11.0
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- serde_json 1.0 development
- serde_yaml 0.8 development
- ureq 2.0 development
- serde 1.0
- url 2.1
- actions-rs/cargo v1 composite
- actions-rs/tarpaulin v0.1 composite
- actions-rs/toolchain v1 composite
- actions/cache v2 composite
- actions/checkout v1 composite
- codecov/codecov-action v1 composite
- rasmus-saks/release-a-changelog-action v1.0.1 composite