Link Attestations
Last updated
Last updated
Linking two Attestations together is relatively straightforward. It involves creating another Attestation based on a specific Schema called the Relationship
Schema.
The Relationship
Schema looks like the following:
(bytes subject, string predicate, bytes32 object)
This Relationship
Schema exists as a first-class citizen of the registry, and Attestations that are based on this Schema are used for linking other Attestations together. The subject
field is the Attestation that is being linked to another Attestation, the predicate
field is a name that describes the type of relationship, and the subject
is the Attestation being linked to.
Examples of relationship Attestations are:
0x46582...
"isFollowerOf" 0x10345...
0x31235...
"hasVotedFor" 0x52991...
0x74851...
"isAlumniOf" 0x31122...
Anyone can create any type of relationship between any Attestation and any other Attestations, allowing for the emergence of an organic . However, it also makes canonical relationships important to define in the Schema. Otherwise, ambiguity may arise between the relationship Attestations intended by the Attestation issuer, and those arbitrarily added later by third parties.
You can create as many Relationship
Attestations as you want, so that one Attestation can be related to many other Attestations, and vice versa.
Certain use cases may require relationships to be grouped together into a "named graph". This allows for ring-fencing a certain group of links, to single them out, or label / identify them among the many other relationships that may exist between two or more Attestations. In this case, a special namedGraphRelationship
Schema that can be utilized, which looks like:
(string namedGraph, bytes32 subject, string predicate, bytes32 object)
Many readers will have recognised that the Relationship Schema is actually just an . RDF triples are used to link Attestations to each other, which means that the on-chain Attestation data can easily be indexed into a graph DB and can be serialized using RDFS, OWL, Turtle etc.
It can be found on the .