Optional
identifier: 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.
Optional
overrides: MetadataRecordKey/value map of extra values that need to be added to the metadata.
Optional
metadata: RepresentationMetadataStarts as a copy of the input metadata.
Optional
overrides: MetadataRecordKey/value map of extra values that need to be added to the metadata. Will override values that were set by the input metadata.
Optional
identifier: MetadataIdentifierIdentifier of the resource relevant to this metadata.
Optional
contentType: string | ContentTypeOverride for the content type of the representation.
Optional
metadata: RepresentationMetadataStarts as a copy of the input metadata.
Optional
contentType: string | ContentTypeOverride for the content type of the representation.
Optional
contentType: string | ContentTypeThe content type of the representation.
Optional
metadata: 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.
Optional
graph: MetadataGraphOptional graph of where to add the values to.
Subject of quad to add.
Predicate of quad to add.
Object of quad to add.
Optional
graph: MetadataGraphOptional graph of quad to add.
Predicate to get the value for.
Optional
graph: 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.
Optional
graph: 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.
Optional
graph: MetadataGraphOptional graph of where to remove the values from.
Removes all values linked through the given predicate.
Predicate to remove.
Optional
graph: MetadataGraphOptional graph where to remove from.
Subject of quad to remove.
Predicate of quad to remove.
Object of quad to remove.
Optional
graph: 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.
Optional
object: MetadataValueValue(s) to set.
Optional
graph: 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.