Class RDFConnectionAdapter

java.lang.Object
org.apache.jena.rdflink.RDFConnectionAdapter
All Implemented Interfaces:
AutoCloseable, RDFConnection, RDFDatasetAccessConnection, RDFDatasetConnection, SparqlQueryConnection, SparqlUpdateConnection, org.apache.jena.sparql.core.Transactional
Direct Known Subclasses:
RDFConnectionFuseki.RDFConnectionFusekiImpl

public class RDFConnectionAdapter extends Object implements RDFConnection
Provide RDFConnection using a RDFLink
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional

    org.apache.jena.sparql.core.Transactional.Promote
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    adapt(RDFLink link)
     
    void
    begin(org.apache.jena.query.ReadWrite readWrite)
     
    void
    begin(org.apache.jena.query.TxnType type)
     
    void
    Close this connection.
    void
     
    void
    Remove all data from the default graph.
    void
    delete(String graphName)
    Delete a graph from the dataset.
    void
    end()
     
    org.apache.jena.rdf.model.Model
    Fetch the default graph.
    org.apache.jena.rdf.model.Model
    fetch(String graphName)
    Fetch a named graph.
    org.apache.jena.query.Dataset
    Fetch the contents of the dataset
    Return the RDFLink for this connection.
    boolean
    Test whether this connection is closed or not
    boolean
     
    void
    load(String file)
    Load (add, append) RDF into the default graph of a dataset.
    void
    load(String graphName, String file)
    Load (add, append) RDF into a named graph in a dataset.
    void
    load(String graphName, org.apache.jena.rdf.model.Model model)
    Load (add, append) RDF into a named graph in a dataset.
    void
    load(org.apache.jena.rdf.model.Model model)
    Load (add, append) RDF into the default graph of a dataset.
    void
     
    void
    loadDataset(org.apache.jena.query.Dataset dataset)
     
    org.apache.jena.query.QueryExecutionBuilder
    Return a execution builder initialized with the RDFConnection setup.
    org.apache.jena.update.UpdateExecutionBuilder
    Return a UpdateExecutionBuilder that is initially configured for this link setup and type.
    boolean
    promote(org.apache.jena.sparql.core.Transactional.Promote mode)
     
    void
    put(String file)
    Set the contents of the default graph of a dataset.
    void
    put(String graphName, String file)
    Set the contents of a named graph of a dataset.
    void
    put(String graphName, org.apache.jena.rdf.model.Model model)
    Set the contents of a named graph of a dataset.
    void
    put(org.apache.jena.rdf.model.Model model)
    Set the contents of the default graph of a dataset.
    void
     
    void
    putDataset(org.apache.jena.query.Dataset dataset)
     
    org.apache.jena.query.QueryExecution
    query(String queryString)
    Setup a SPARQL query execution.
    org.apache.jena.query.QueryExecution
    query(org.apache.jena.query.Query query)
    Setup a SPARQL query execution.
    boolean
    queryAsk(String queryString)
    Execute a ASK query and return a boolean
    boolean
    queryAsk(org.apache.jena.query.Query query)
    Execute a ASK query and return a boolean
    org.apache.jena.rdf.model.Model
    queryConstruct(String queryString)
    Execute a CONSTRUCT query and return as a Model
    org.apache.jena.rdf.model.Model
    queryConstruct(org.apache.jena.query.Query query)
    Execute a CONSTRUCT query and return as a Model
    org.apache.jena.rdf.model.Model
    queryDescribe(String queryString)
    Execute a DESCRIBE query and return as a Model
    org.apache.jena.rdf.model.Model
    queryDescribe(org.apache.jena.query.Query query)
    Execute a DESCRIBE query and return as a Model
    void
    queryResultSet(String queryString, Consumer<org.apache.jena.query.ResultSet> resultSetAction)
    Execute a SELECT query and process the ResultSet with the handler code.
    void
    queryResultSet(org.apache.jena.query.Query query, Consumer<org.apache.jena.query.ResultSet> resultSetAction)
    Execute a SELECT query and process the ResultSet with the handler code.
    org.apache.jena.query.ReadWrite
     
    org.apache.jena.query.TxnType
     
    void
    update(String update)
    Execute a SPARQL Update.
    void
    update(org.apache.jena.update.UpdateRequest update)
    Execute a SPARQL Update.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.jena.rdfconnection.RDFConnection

    querySelect, querySelect, update

    Methods inherited from interface org.apache.jena.sparql.core.Transactional

    begin, calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite, promote