Function horned_owl::resolve::path_to_file_iri
source · pub fn path_to_file_iri<A: ForIRI>(b: &Build<A>, pb: &Path) -> IRI<A>
Expand description
Return an IRI
for the given PathBuf
§Examples
let b = Build::new_rc();
let target_iri = b.iri("file://base_dir/and.owl");
let path = Path::new("base_dir/and.owl");
let source_iri = path_to_file_iri(&b, &path);
assert_eq!(source_iri.as_ref(), "file://base_dir/and.owl");