public interface Adder
Interface for adding RDF to a Stardog database via a
// some stuff from a file c.add().io().format(RDFFormat.TURTLE).file(new File("data.ttl")); // also add something from some input stream c.add().io().format(RDFFormat.RDFXML).stream(input); // or add a specific statement c.add().statement(s,p,o);
The changes done through this class might not be sent immediately to the server. The client connection may batch the changes locally and delay sending those changes to the server to minimize the number of network calls. This is an implementation detail and will not change the execution order of read and write operations performed within the transaction.
|Modifier and Type||Method and Description|
Add the graph to the database.
Add statements to the database from IO operations.
Add a single statement to the database.
Add a single statement to the database
Adder statement(Resource theSubj, IRI thePred, Value theObj, Resource... theContext) throws StardogException
theSubj- the subject
thePred- the predicate
theObj- the object
theContext- the (optional) named graph to add the data to
StardogException- if there is an error while adding the statement
Adder statement(Statement theStmt) throws StardogException
theStmt- the statement to add
StardogException- if there was an error while adding the statement
Adder graph(Collection<Statement> theGraph, Resource... theContext) throws StardogException
theGraph- the graph to add
theContext- the named graph to add the information to
StardogException- if there is an error adding the data
Copyright © 2010-2016 Stardog Union. All Rights Reserved.