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 TypeMethodDescriptionThe 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 booleanConvenience method to check whether a DSN is specified.default booleanReturns 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
asNodeMethods inherited from interface org.apache.jena.rdf.model.RDFNode
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWithMethods 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, getStmtTerm, 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
-
getJdbcDriver
String getJdbcDriver()The JDBC driver class name for the database. Used together with d2rq:jdbcDSN. Example: com.mysql.jdbc.Driver for MySQL. -
setJdbcDriver
-
getUsername
String getUsername()A username if required by the database. -
setUsername
-
getPassword
String getPassword()A password if required by the database. -
setPassword
-
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 accuratequalifiesAsD2rqDatabase()method.
-