whole dataset nuri

refactor
Niko PLP 2 days ago
parent dbb4e3d7ce
commit 86935837cd
  1. 5
      engine/verifier/src/orm/utils.rs

@ -53,6 +53,9 @@ pub fn group_by_subject_for_shape<'a>(
pub fn nuri_to_string(nuri: &NuriV0) -> String {
// Get repo_id and overlay_id from the nuri
match nuri.target {
NuriTargetV0::UserSite => "did:ng:i".to_string(),
_ => {
let repo_id = nuri.target.repo_id();
let overlay_id = if let Some(overlay_link) = &nuri.overlay {
overlay_link.clone().try_into().unwrap()
@ -62,6 +65,8 @@ pub fn nuri_to_string(nuri: &NuriV0) -> String {
};
let graph_name = NuriV0::repo_graph_name(repo_id, &overlay_id);
graph_name
}
}
}
pub fn escape_json_pointer(path_segment: &String) -> String {

Loading…
Cancel
Save