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.
Key/value map of extra values that need to be added to the metadata.
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 to add.
Quads to add to the metadata.
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 metadata quads.
Removes the given value from the metadata. Strings get converted to literals.
Predicate linking identifier to value.
Value to remove.
Removes all values linked through the given predicate.
Predicate 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 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.