Skip to content

Commit

Permalink
fix prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsatoh committed Jun 27, 2024
1 parent 63d43b9 commit 2a09e32
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mgend-rdf"
version = "1.0.2"
version = "1.0.3"
edition = "2021"

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/models/name_space.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ macro_rules! ns {
ns!(FALDO, "faldo", "http://biohackathon.org/resource/faldo#");
ns!(FOAF, "foaf", "http://xmlns.com/foaf/0.1/");
ns!(GVO, "gvo", "http://genome-variation.org/");
ns!(HCO, "hco", "http://identifiers.org/hco/");
ns!(HGNC, "hgnc", "http://identifiers.org/hgnc/");
ns!(HCO, "hco", "http://identifiers.org/hco:");
ns!(HGNC, "hgnc", "http://identifiers.org/hgnc:");
ns!(OBO, "obo", "http://purl.obolibrary.org/obo/");
ns!(OLO, "olo", "http://purl.org/ontology/olo/core#");
ns!(ORG, "org", "https://www.w3.org/ns/org#");
Expand Down
4 changes: 1 addition & 3 deletions src/models/output/gene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ impl Gene {
id: symbol.as_ref().to_string(),
typ: format!("{}:Gene", MED2RDF.prefix),
label: symbol.as_ref().to_string(),
xref: Gene::hgnc(hgnc)
.find(symbol)
.map(|x| format!("{}:{}", HGNC.prefix, x)),
xref: Gene::hgnc(hgnc).find(symbol).map(|x| x.to_owned()),
}
}
}
Expand Down

0 comments on commit 2a09e32

Please sign in to comment.