From 9da12b5f3477b1003c87feac87408e0302dc8585 Mon Sep 17 00:00:00 2001 From: Cyril Matthey-Doret Date: Wed, 25 Sep 2024 15:47:38 +0000 Subject: [PATCH] docs: update api in readme examples (#19) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ba50a12..50e524b 100644 --- a/README.md +++ b/README.md @@ -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") ```