Class RDFDatasetConnectionVirtuoso

java.lang.Object
org.aksw.jena_sparql_api.ext.virtuoso.RDFDatasetAccessConnectionBase
org.aksw.jena_sparql_api.ext.virtuoso.RDFDatasetConnectionVirtuoso
All Implemented Interfaces:
AutoCloseable, TransactionalWrapper, org.apache.jena.rdfconnection.RDFDatasetAccessConnection, org.apache.jena.rdfconnection.RDFDatasetConnection, org.apache.jena.sparql.core.Transactional

public class RDFDatasetConnectionVirtuoso extends RDFDatasetAccessConnectionBase implements org.apache.jena.rdfconnection.RDFDatasetConnection
  • Field Details

    • sqlConnection

      protected Connection sqlConnection
    • queryConn

      protected org.apache.jena.rdfconnection.SparqlQueryConnection queryConn
  • Constructor Details

    • RDFDatasetConnectionVirtuoso

      public RDFDatasetConnectionVirtuoso(org.apache.jena.rdfconnection.SparqlQueryConnection queryConn, Connection sqlConnection)
  • Method Details

    • resolveToFile

      public static File resolveToFile(String filename)
    • load

      public void load(String graphName, String filename)
      Specified by:
      load in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • load

      public void load(String file)
      Specified by:
      load in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • load

      public void load(String graphName, org.apache.jena.rdf.model.Model model)
      Specified by:
      load in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • load

      public void load(org.apache.jena.rdf.model.Model model)
      Specified by:
      load in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • put

      public void put(String graphName, String file)
      Specified by:
      put in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • put

      public void put(String file)
      Specified by:
      put in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • put

      public void put(String graphName, org.apache.jena.rdf.model.Model model)
      Specified by:
      put in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • put

      public void put(org.apache.jena.rdf.model.Model model)
      Specified by:
      put in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • delete

      public void delete(String graphName)
      Specified by:
      delete in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • delete

      public void delete()
      Specified by:
      delete in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • loadDataset

      public void loadDataset(String file)
      Specified by:
      loadDataset in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • loadDataset

      public void loadDataset(org.apache.jena.query.Dataset dataset)
      Specified by:
      loadDataset in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • putDataset

      public void putDataset(String file)
      Specified by:
      putDataset in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • putDataset

      public void putDataset(org.apache.jena.query.Dataset dataset)
      Specified by:
      putDataset in interface org.apache.jena.rdfconnection.RDFDatasetConnection
    • getQueryConnection

      protected org.apache.jena.rdfconnection.SparqlQueryConnection getQueryConnection()
      Specified by:
      getQueryConnection in class RDFDatasetAccessConnectionBase
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.apache.jena.rdfconnection.RDFDatasetAccessConnection
      Specified by:
      close in interface org.apache.jena.rdfconnection.RDFDatasetConnection
      Overrides:
      close in class RDFDatasetAccessConnectionBase
    • begin

      public void begin(org.apache.jena.query.TxnType type)
      Specified by:
      begin in interface org.apache.jena.sparql.core.Transactional
      Specified by:
      begin in interface TransactionalWrapper
    • promote

      public boolean promote(org.apache.jena.sparql.core.Transactional.Promote mode)
      Specified by:
      promote in interface org.apache.jena.sparql.core.Transactional
      Specified by:
      promote in interface TransactionalWrapper
    • transactionMode

      public org.apache.jena.query.ReadWrite transactionMode()
      Specified by:
      transactionMode in interface org.apache.jena.sparql.core.Transactional
      Specified by:
      transactionMode in interface TransactionalWrapper
    • transactionType

      public org.apache.jena.query.TxnType transactionType()
      Specified by:
      transactionType in interface org.apache.jena.sparql.core.Transactional
      Specified by:
      transactionType in interface TransactionalWrapper
    • getDelegate

      public org.apache.jena.sparql.core.Transactional getDelegate()
      Specified by:
      getDelegate in interface TransactionalWrapper