Quite surprised that I couldn’t find a similar question around here.
I’m looking for a way to create relationships (father / sister / wife etc.) between people, preferably within the vCard. I could quite easily create a db that holds the relationships, but then the app will not adhere to a standard or recommendation.
Does anybody know a relevant standard or recommendation?
The
RELATEDproperty does exactly that (see RFC 6350 p.43). Quoting the specs, the purpose of this property is:Its value can be either a URI or free-form text. Examples of useful URIs include website addresses, URLs pointing to a vCard, or URNs that reference the
UIDproperty of another vCard.It also has a
TYPEparameter, which can optionally be used to define the type of relationship. The list of acceptable values for this parameter can be found in the vCard specs.RELATEDis supported in vCard version 4.0.