public string Compact(Iri iri) { Contract.Requires(iri != null); var node = iri.Node; string prefix = null; while (node != null) { if (_nodeToPrefix.TryGetValue(node, out prefix)) { break; } node = node.Parent; } return(prefix + InternedStringNode.Substring(node, iri.Node)); }
internal Iri(InternedStringNode node) : base(node) { }