Permalink
Browse files

Show how to specify URDNA2015 algorithm.

  • Loading branch information...
1 parent 62fd838 commit ad90d14e59e09b1126cf1a6e1ba5a8d509f21a40 @dlongley dlongley committed Jan 5, 2016
Showing with 5 additions and 3 deletions.
  1. +5 −3 README.rst
View
@@ -112,10 +112,12 @@ Quick Examples
framed = jsonld.frame(doc, frame)
# document transformed into a particular tree structure per the given frame
- # normalize a document
- normalized = jsonld.normalize(doc, {'format': 'application/nquads'})
+ # normalize a document using the RDF Dataset Normalization Algorithm
+ # (URDNA2015), see: http://json-ld.github.io/normalization/spec/
+ normalized = jsonld.normalize(
+ doc, {'algorithm': 'URDNA2015', 'format': 'application/nquads'})
# normalized is a string that is a canonical representation of the document
- # that can be used for hashing
+ # that can be used for hashing, comparison, etc.
Commercial Support
------------------

0 comments on commit ad90d14

Please sign in to comment.