Skip to content

Commit

Permalink
from_uniprot is now easier to work with
Browse files Browse the repository at this point in the history
  • Loading branch information
angelip2303 committed Jun 27, 2023
1 parent 6ab39bf commit aa74086
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ Cargo.lock
*.json
*.duckdb
*.nt
*.rdf
*.parquet
11 changes: 11 additions & 0 deletions examples/from_uniprot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Usage

```{shell}
cd examples/from_uniprot/
sh run.sh
```

## Requirements

Have the `xz` tool installed, as well as [Apache Jena's](https://jena.apache.org/documentation/tools/) `riot` command line utility
installed.
2 changes: 1 addition & 1 deletion examples/from_uniprot/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn main() -> Result<(), String> {
.into();

// Load Wikidata entities
let edges = NTriples::import("./examples/from_uniprot/uniprotkb_reviewed_viruses_10239.nt")?;
let edges = NTriples::import("uniprotkb_reviewed_viruses_10239_0.nt")?;

// Perform schema validation
let start = Instant::now();
Expand Down
3 changes: 3 additions & 0 deletions examples/from_uniprot/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
xz -v -d -k uniprotkb_reviewed_viruses_10239_0.rdf.xz
riot --output=ntriples uniprotkb_reviewed_viruses_10239_0.rdf > uniprotkb_reviewed_viruses_10239_0.nt
cargo run -r --example from_uniprot

0 comments on commit aa74086

Please sign in to comment.