Пример #1
0
        /// <inheritdoc/>
        public override string FormatUri(Uri u)
        {
            if (!u.IsAbsoluteUri)
            {
                throw new ArgumentException("IRIs to be formatted by the NTriplesFormatter must be absolute IRIs");
            }

            //if (u.IsWellFormedOriginalString())
            //{
            //    return FormatUri(u.ToString());
            //}

            return(FormatUri(Rfc3987Formatter.EscapeUriString(u.ToString())));
        }
Пример #2
0
 /// <summary>
 /// Formats a URI as a String for full Output.
 /// </summary>
 /// <param name="u">URI.</param>
 /// <returns></returns>
 public virtual String FormatUri(String u)
 {
     return(Rfc3987Formatter.EscapeUriString(u));
 }