File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,12 @@ $flattened = jsonld_flatten($doc);
94
94
$framed = jsonld_frame($doc, $frame);
95
95
// document transformed into a particular tree structure per the given frame
96
96
97
- // normalize a document
98
- $normalized = jsonld_normalize($doc, array('format' => 'application/nquads'));
97
+ // normalize a document using the RDF Dataset Normalization Algorithm
98
+ // (URDNA2015), see: http://json-ld.github.io/normalization/spec/
99
+ $normalized = jsonld_normalize(
100
+ $doc, array('algorithm' => 'URDNA2015', 'format' => 'application/nquads'));
99
101
// normalized is a string that is a canonical representation of the document
100
- // that can be used for hashing
102
+ // that can be used for hashing, comparison, etc.
101
103
102
104
// force HTTPS-only context loading:
103
105
// use built-in secure document loader
You can’t perform that action at this time.
0 commit comments