From 1abb809e8ed013ee070dd63289295cbab708980b Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Tue, 5 Jan 2016 10:11:28 -0500 Subject: [PATCH] Show how to specify URDNA2015 algorithm. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 589b93f..5853c94 100644 --- a/README.md +++ b/README.md @@ -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