w3c / rdf-canon

RDF Dataset Canonicalization (deliverable of the RCH working group)

Home Page:https://w3c.github.io/rdf-canon/spec/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hash Related Blank Node incorrectly uses _: when related comes from Hash First Degree Quads

gkellogg opened this issue · comments

As reported in #53 (comment) by @marcelotto, the algorithm incorrectly prepends _: to the rest of Hash First Degree Quads, which it should not do.

Fix is to move step 1 to step four, and divide that into multiple steps:

  1. If related has a canonical identifier, or an identifier issued by issuer, append the string _: followed by that identifier, to input
  2. Otherwise, append the result of the Hash First Degree Quads algorithm passing related to input.