public class RdbToRdf
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static Classification |
classification |
private static org.opengis.referencing.crs.CRSAuthorityFactory |
crsFactory |
(package private) static Configuration |
currentConfig |
(package private) DbConnector |
databaseConnector |
(package private) Assistant |
myAssistant |
(package private) Converter |
myConverter |
(package private) static java.lang.String |
outputFile |
private org.opengis.referencing.operation.MathTransform |
reproject |
(package private) int |
sourceSRID |
(package private) int |
targetSRID |
Constructor and Description |
---|
RdbToRdf(Configuration config,
Classification classific,
java.lang.String outFile,
int sourceSRID,
int targetSRID)
Constructor for the transformation process from a spatially-enabled DBMS to RDF.
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Applies transformation according to the configuration settings.
|
private java.sql.ResultSet |
collectData(DbConnector dbConn)
Connects to a database and retrieves records from a table (including geometric and non-spatial attributes) according to an SQL query.
|
Converter myConverter
Assistant myAssistant
private org.opengis.referencing.operation.MathTransform reproject
int sourceSRID
int targetSRID
DbConnector databaseConnector
static Configuration currentConfig
static Classification classification
static java.lang.String outputFile
private static final org.opengis.referencing.crs.CRSAuthorityFactory crsFactory
public RdbToRdf(Configuration config, Classification classific, java.lang.String outFile, int sourceSRID, int targetSRID)
config
- Parameters to configure the transformation.classific
- Instantiation of the classification scheme that assigns categories to input features.outFile
- Path to the output file that collects RDF triples.sourceSRID
- Spatial reference system (EPSG code) of the input geometries.targetSRID
- Spatial reference system (EPSG code) of geometries in the output RDF triples.public void apply()
private java.sql.ResultSet collectData(DbConnector dbConn) throws java.lang.Exception
dbConn
- Database connector object to a DBMS.java.lang.Exception