It is common when dealing with groups of Agents to want to create a URI to denote those agents. This simple spec gives a way to systematically create a group uri given the URIs of the participants.
This document in an informal draft discussed in the W3C Read Write Web Community Group.
[] a vcard:Group ; vcard:hasMember <http://example.org/alice#me> ; vcard:hasMember <http://example.org/bob#me> .
It is useful to canonicalize the group before taking a hash so that the same participants independently hashed will yield the same URI.
The canonicalization follows typical RDF patterns and consists of creating ntriples, one per line, which are sorted alphabetically.
_: <https://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2006/vcard/ns#Group> . _: <http://www.w3.org/2006/vcard/ns#hasMember> <http://example.org/alice#me> . _: <http://www.w3.org/2006/vcard/ns#hasMember> <http://example.org/bob#me> .
For convenience is it often useful to hash the normalized RDF into a short hash. Suggested is sha256 for this to create an ni:/// hash as per [[!RFC6920]].
ni:///sha256;5meXUPQdxaERrrM10YKQYIsUrAm15VQ46sUHsdnYebI
A reference implementation is available in npm and nodejs.