Skip to content

Commit

Permalink
docs: update api in readme examples (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdoret authored Sep 25, 2024
1 parent 47c0f63 commit 9da12b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ Running fuzon without a query will start an interactive prompt to browse the inp
### rust library
```rust
use fuzon;
let r1 = BufReader::new(File::open("onto1.ttl"))
let r2 = BufReader::new(File::open("onto2.ttl"))
// all readers combined into a single graph
let matcher = TermMatcher::from_readers(vec![r1, r2])
let onto1 = "./onto1.ttl".to_string()
let onto2 = "https://example.org/onto2.xml".to_string()
// all ontologies combined into a single graph
let matcher = TermMatcher::from_files(vec![onto1, onto2])
matcher.rank_terms("some query")
```

Expand Down

0 comments on commit 9da12b5

Please sign in to comment.