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.
Metadata values (defaulting to content type if a string)
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.
Optional 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 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.
Optional 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 where to get from.
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.
Optional graph of where to remove the values from.
Removes all values linked through the given predicate.
Predicate to remove.
Optional graph where to remove from.
Subject of quad to remove.
Predicate of quad to remove.
Object of quad to remove.
Optional graph 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.
Optional 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.