lib/rdf/n3/patches/uri_hacks.rb in rdf-n3-0.2.1 vs lib/rdf/n3/patches/uri_hacks.rb in rdf-n3-0.2.2
- old
+ new
@@ -13,7 +13,17 @@
# result.path += '/' unless result.path.match(/[\#\/]$/) || uri.to_s[0..0] == "#"
result = result.join(uri)
end
self.class.new(result)
end
+
+ # From http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#section-Graph-URIref
+ #
+ # A URI Reference within an RDF graph is a Unicode string that:
+ # * does not contain any control characters ( #x00 - #x1F, #x7F-#x9F)
+ # * and would produce a valid URI character sequence (per RFC2396 [URI], sections 2.1) representing an absolute URI with optional fragment identifier when subjected to the encoding described below.
+ #
+ # The encoding consists of:
+ # 1. encoding the Unicode string as UTF-8 [RFC-2279], giving a sequence of octet values.
+ # 2. %-escaping octets that do not correspond to permitted US-ASCII characters.
end
end
\ No newline at end of file