ReadonlyPIDThe globally unique and registered identifier of this record. Undefined only if this record has not been published yet.
Add an attribute to the record. This method does not override existing data.
PID of the attribute
New value of the attribute. Can be an array to add multiple values, if allowed by the attribute.
Add a non-data attribute to the record. This method does not override existing values.
Attribute instance of the attribute
New value of the attribute. Can be an array to add multiple values, if allowed by the attribute.
Add a data attribute to the record. This method does not override existing values.
Attribute instance of the attribute
Optionalvalue: Attr extends DefaultAttributeDefNew value of the attribute. Can be an array to add multiple values, if allowed by the attribute. Can be left empty if the attribute is already present.
Add a unidirectional reference from this record to another record. The target record must either be known locally or be resolvable via its PID
The attribute of this record where the reference will be placed
FDORecord.addReferenceBidi for bidirectional references
Add a bidirectional reference from this record to another record and back. The target record must be in the current local or remote graph in order to create the back-reference
The attribute of this record where the reference will be placed
The attribute of the target record where the back-reference will be placed
FDORecord.addReference for unidirectional references
Add a type attribute to the record. This method does not override existing values.
Attribute instance of the attribute
Optionalvalue: AttrTypeWithCardinality<Attr>
New value of the attribute. Can be an array to add multiple values, if allowed by the attribute. Can be left empty if the attribute is already present.
Retrieve the values(s) of an attribute in this record.
the value of the attribute, or undefined if the attribute is not present on this record
Get a map of all attributes present on this record
a map of attribute PIDs to attribute values
This attribute is the entry point to find the data associated with an FDO. If the identified resource is physical or conceptual, the string "self" is used. If the resource it digital, this attribute points to the Attribute that references the digital resource.
Get the PIDs of profiles this record conforms to. Can be used for validation.
Get a list of outgoing references from this record to other records. Locally used to realize bidirectional references when the FDO Graph is published.
Only contains references that were added to this record using FDORecord.addReference or FDORecord.addReferenceBidi or similar
The FDO type gives a hint to a machine how the identified resource may be processed. It points to the attribute that further specifies the FDO type.
Check whether a specific attribute is present on this record
Remove the attribute and all its values from the record
Set the value of the specified attribute. Will add the attribute to the record if it does not exist yet. Will replace (all) existing value(s) of this attribute with the specified value.
PID of the attribute or AttributeDef attribute definition.
New value of the attribute. Can be an array to add multiple values, if allowed by the attribute.
Returns the contents of this record in a plain format, to be used with JSON.stringify
Returns the content of this record as a string, mainly useful for logging and debugging.
Represents a single FDO record that is optionally associated with a registered PID.
A record consists of attributes, each with one or more values. Each attribute is uniquely identified by its PID.