This module defined the high-level public interface to a data store.
Provides transacted operations on the underlying data store.
Adds data to the store. If the id of any resource is already present in the datastore an exception is raised.
adds: A list of either statements or pjson conforming dicts
Removes data from the store.
removes: A list of a statements or list containing pjson-conforming dicts and strings.
If the item is a string it will be treated as an object reference and the entire resource will be removed. If the object is a dict, the specified property/value pairs will be removed from the store, unless the value is null. In that case, the property and all associated values will be deleted.
Replace the given objects in the store. Unlike update this method will remove properties in the store that aren’t specified. Also, if the data contains json object and an object has no properties (just an id property), the object will be removed.
See also update and updateAll.
replacements: A list of either statements or pjson conforming dicts
Update the store by either adding or replacing the property value pairs given in the update, depending on whether or not the pair currently appears in the store.
See also replace.
updates: A list of either statements or pjson conforming dicts
Add, remove, update, or replace resources in the store.
update: A list of either statements or pjson conforming dicts that will be processed with the same semantics as the update method.
replace: A list of either statements or pjson conforming dicts that will be processed with the same semantics as the replace method.
removedResources: A list of ids of resources that will be removed from the store.
Abstract interface for DataStores