Identifier of the resource relevant to this metadata. A blank node will be generated if none is provided. Strings will be converted to named nodes. @ignored
Key/value map of extra values that need to be added to the metadata. @ignored
@ignored
tag is necessary for Components-Generator.js
Starts as a copy of the input metadata.
Key/value map of extra values that need to be added to the metadata. Will override values that were set by the input metadata.
Identifier of the resource relevant to this metadata.
Override for the content type of the representation.
Starts as a copy of the input metadata.
Override for the content type of the representation.
The content type of the representation.
Shorthand for the CONTENT_TYPE predicate.
Shorthand for the CONTENT_TYPE predicate.
Identifier of the resource this metadata is relevant to. Will update all relevant triples if this value gets changed.
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.
Subject of quad to add.
Predicate of quad to add.
Object of quad to add.
Quads to add to the metadata.
Helper function to simplify add/remove Runs the given function on all predicate/object pairs, but only converts the predicate to a named node once.
Predicate to get the value for.
The corresponding value. Undefined if there is no match
Finds all object values matching the given predicate.
Predicate to get the values for.
An array with all matches.
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.
Removes all values linked through the given predicate.
Predicate to remove.
Subject of quad to remove.
Predicate of quad to remove.
Object of quad to remove.
Quads to remove from the metadata.
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.
Value(s) to set.
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.