Interface D2rqDatabase

All Superinterfaces:
org.apache.jena.graph.FrontsNode, org.apache.jena.rdf.model.RDFNode, org.apache.jena.rdf.model.Resource

public interface D2rqDatabase extends org.apache.jena.rdf.model.Resource
Descriptions are taken from the specification at: http://d2rq.org/d2rq-language.
  • Method Summary

    Modifier and Type
    Method
    Description
    The JDBC driver class name for the database.
    The JDBC database URL.
    A password if required by the database.
    A username if required by the database.
    default boolean
    Convenience method to check whether a DSN is specified.
    default boolean
    Returns true iff a resource viewed as this class is a d2rq database.
    setJdbcDriver(String jdbcDriver)
     
    setJdbcDSN(String jdbcDSN)
     
    setPassword(String password)
     
    setUsername(String username)
     

    Methods inherited from interface org.apache.jena.graph.FrontsNode

    asNode

    Methods inherited from interface org.apache.jena.rdf.model.RDFNode

    as, asLiteral, asResource, asStatementTerm, canAs, getModel, isAnon, isLiteral, isResource, isStatementTerm, isURIResource, visitWith

    Methods inherited from interface org.apache.jena.rdf.model.Resource

    abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toString
  • Method Details

    • getJdbcDSN

      String getJdbcDSN()
      The JDBC database URL. This is a string of the form jdbc:subprotocol:subname. For a MySQL database, this is something like jdbc:mysql://hostname:port/dbname.
    • setJdbcDSN

      D2rqDatabase setJdbcDSN(String jdbcDSN)
    • getJdbcDriver

      String getJdbcDriver()
      The JDBC driver class name for the database. Used together with d2rq:jdbcDSN. Example: com.mysql.jdbc.Driver for MySQL.
    • setJdbcDriver

      D2rqDatabase setJdbcDriver(String jdbcDriver)
    • getUsername

      String getUsername()
      A username if required by the database.
    • setUsername

      D2rqDatabase setUsername(String username)
    • getPassword

      String getPassword()
      A password if required by the database.
    • setPassword

      D2rqDatabase setPassword(String password)
    • qualifiesAsD2rqDatabase

      default boolean qualifiesAsD2rqDatabase()
      Returns true iff a resource viewed as this class is a d2rq database. Effectively is only checks for the presence of of a jdbcDSN.
    • hasJdbcDSN

      default boolean hasJdbcDSN()
      Convenience method to check whether a DSN is specified. When checking for whether a resource represents a D2QR database use the semantically accurate qualifiesAsD2rqDatabase() method.