|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Adder
Interface for adding RDF to a Stardog database via a connection.
Usage:
// 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);
| Method Summary | |
|---|---|
Adder |
graph(Graph theGraph,
Resource... theContext)
Add the graph to the database. |
IO |
io()
Add statements to the database from IO operations. |
Adder |
statement(Resource theSubj,
URI thePred,
Value theObj,
Resource... theContext)
Add a single statement to the database. |
Adder |
statement(Statement theStmt)
Add a single statement to the database |
| Method Detail |
|---|
Adder statement(Resource theSubj,
URI thePred,
Value theObj,
Resource... theContext)
throws StardogException
theSubj - the subjectthePred - the predicatetheObj - the objecttheContext - 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(Graph theGraph,
Resource... theContext)
throws StardogException
theGraph - the graph to addtheContext - the named graph to add the information to
StardogException - if there is an error adding the data
IO io()
throws StardogException
StardogException - if there is an error creating an IO adderIO
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||