(iri: &str)
| 261 | } |
| 262 | |
| 263 | pub fn compact(iri: &str) -> String { |
| 264 | for (prefix, namespace) in PREFIXES { |
| 265 | if let Some(local) = iri.strip_prefix(namespace) { |
| 266 | return format!("{prefix}:{local}"); |
| 267 | } |
| 268 | } |
| 269 | iri.to_owned() |
| 270 | } |
nothing calls this directly
no outgoing calls
no test coverage detected