Permalink
Browse files

Show how to specify URDNA2015 algorithm.

  • Loading branch information...
1 parent b16d43a commit 1abb809e8ed013ee070dd63289295cbab708980b @dlongley dlongley committed Jan 5, 2016
Showing with 5 additions and 3 deletions.
  1. +5 −3 README.md
View
@@ -94,10 +94,12 @@ $flattened = jsonld_flatten($doc);
$framed = jsonld_frame($doc, $frame);
// document transformed into a particular tree structure per the given frame
-// normalize a document
-$normalized = jsonld_normalize($doc, array('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, array('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.
// force HTTPS-only context loading:
// use built-in secure document loader

0 comments on commit 1abb809

Please sign in to comment.