Get the RDF.js DataFactory used by the store.
Get the number of triples in all graphs of the store.
Add a quad to the store. Existing quads with the same subject, predicate, object, and graph will be ignored.
The quad to be added.
The store instance.
Indicate if there are triples matching the given pattern in the store.
Optional graph URI or array of graph URIs to query.
A subject URI or null to match any subject.
A predicate URI or null to match any predicate.
An object URI or null to match any object.
OptionalincludeInferred: booleantrue if there are triples matching the pattern, false otherwise.
Returns the exact cardinality of the quads matching the pattern.
Optionalsubject: Term | nullThe optional subject.
Optionalpredicate: Term | nullThe optional predicate.
Optionalobject: Term | nullThe optional object.
Optionalgraph: Term | nullThe optional graph.
Delete a quad from the store.
The quad to be deleted.
The store instance.
Delete named graphs from the store.
URIs of the graphs to be deleted.
Apply inference to the given graph and store the triples in the associated inference graph.
A graph URI.
Get the first triple matching the given pattern in the store.
Optional graph URI or array of graph URIs to query.
A subject URI or null to match any subject.
A predicate URI or null to match any predicate.
An object URI or null to match any object.
OptionalincludeInferred: booleanThe first triple that matches the pattern.
Get the URIs of the graphs in the triple store.
An array of graph URIs in no particular order.
Get the URIs of ordered list members in the store.
Optional graph URI or array of graph URIs to query.
URI of the list to get the items from.
An array of URIs of the items in the list.
Indicates if the store contains a specific quad.
The quad to be checked.
true if the quad is found in the store, false otherwise.
Indicates if the store contains triples in a given graph.
A graph URI.
true if the store contains triples in the graph URI, false otherwise.
Loads a set of W3C Standard ontologies into the store (RDF, RDFA, RDFS, OWL, SKOS, SHACL, XSD).
Create an RDF store from N3, Turtle or N-Triples data.
Input data or stream in to be parsed.
URI of the graph to in which the triples will be created.
Indicates if inference should be executed after loading the triples.
Indicates if the graph should be cleared before loading.
OptionalonQuad: (quad: Quad) => voidCallback function that will be called for each parsed triple.
A promise that resolves to an RDF store.
Create an RDF store from RDF/XML data.
Input data or stream format to be parsed.
URI of the graph to in which the triples will be created.
Indicates if inference should be executed after loading the triples.
Indicates if the graph should be cleared before loading.
OptionalonQuad: (quad: Quad) => voidCallback function that will be called for each parsed triple.
A promise that resolves to an RDF store.
Returns a stream of quads matching the given pattern.
Optionalsubject: Term | nullThe optional subject.
Optionalpredicate: Term | nullThe optional predicate.
Optionalobject: Term | nullThe optional object.
Optionalgraph: Term | nullThe optional graph.
A stream of matching quads.
Query the store for triples matching the given pattern supporting multiple graphs.
Optional graph URI or array of graph URIs to query.
A subject URI or null to match any subject.
A predicate URI or null to match any predicate.
An object URI or null to match any object.
OptionalincludeInferred: booleanWrite the triples in the store into a string in Turtle format.
A graph URI.
Optional mime type of the serialization format (e.g., 'text/turtle').
OptionaltargetGraphUri: stringOptional target graph URI. If not provided, the source graph URI will be used for serialization formats that support quads.
Optionalprefixes: Record<string, string>Optional prefixes to be used in the serialization.
A string serialization of the triples in the graph in the specified format.
Create a new RDF triple store.