Optionalidentifier: MetadataIdentifierIdentifier of the resource relevant to this metadata. A blank node will be generated if none is provided. Strings will be converted to named nodes.
Optionaloverrides: MetadataRecordKey/value map of extra values that need to be added to the metadata.
Optionalmetadata: RepresentationMetadataStarts as a copy of the input metadata.
Optionaloverrides: MetadataRecordKey/value map of extra values that need to be added to the metadata. Will override values that were set by the input metadata.
Optionalidentifier: MetadataIdentifierIdentifier of the resource relevant to this metadata.
OptionalcontentType: string | ContentTypeOverride for the content type of the representation.
Optionalmetadata: RepresentationMetadataStarts as a copy of the input metadata.
OptionalcontentType: string | ContentTypeOverride for the content type of the representation.
OptionalcontentType: string | ContentTypeThe content type of the representation.
Optionalmetadata: string | MetadataRecord | RepresentationMetadataMetadata values (defaulting to content type if a string)
Shorthand for the CONTENT_LENGTH predicate.
Shorthand for the CONTENT_TYPE predicate.
Shorthand for the ContentType as an object (with parameters)
Identifier of the resource this metadata is relevant to. Will update all relevant triples if this value gets changed.
Adds a value linked to the identifier. Strings get converted to literals.
Predicate linking identifier to value.
Value(s) to add.
Optionalgraph: MetadataGraphOptional graph of where to add the values to.
Subject of quad to add.
Predicate of quad to add.
Object of quad to add.
Optionalgraph: MetadataGraphOptional graph of quad to add.
Predicate to get the value for.
Optionalgraph: MetadataGraphOptional graph where the triple should be found.
The corresponding value. Undefined if there is no match
Finds all object values matching the given predicate and/or graph.
Optional predicate to get the values for.
Optionalgraph: MetadataGraphOptional graph where to get from.
An array with all matches.
Verifies if a specific triple can be found in the metadata. Undefined parameters are interpreted as wildcards.
All matching metadata quads.
Removes the given value from the metadata. Strings get converted to literals.
Predicate linking identifier to value.
Value(s) to remove.
Optionalgraph: MetadataGraphOptional graph of where to remove the values from.
Removes all values linked through the given predicate.
Predicate to remove.
Optionalgraph: MetadataGraphOptional graph where to remove from.
Subject of quad to remove.
Predicate of quad to remove.
Object of quad to remove.
Optionalgraph: MetadataGraphOptional graph of quad to remove.
Sets the value for the given predicate, removing all other instances.
In case the object is undefined this is identical to removeAll(predicate).
Predicate linking to the value.
Optionalobject: MetadataValueValue(s) to set.
Optionalgraph: MetadataGraphOptional graph where the triple should be stored.
Helper function to import all entries from the given metadata. If the new metadata has a different identifier the internal one will be updated.
Metadata to import.
Stores the metadata triples and provides methods for easy access. Most functions return the metadata object to allow for chaining.