public final class Configuration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
attrCategory
Name of the attribute specifying the category of a feature according to a classification scheme.
|
java.lang.String |
attrGeometry
Name of the attribute containing the geometry of a feature.
|
java.lang.String |
attrKey
Name of the input attribute containing a unique identifier of each feature.
|
java.lang.String |
attrName
Name of the attribute specifying the main name of a feature.
|
java.lang.String |
attrX
Name of the attribute containing the X-ordinate (or longitude) of a feature.
|
java.lang.String |
attrY
Name of the attribute containing the Y-ordinate (or latitude) of a feature.
|
int |
batch_size
Default number of entities (i.e., records) to handle in each batch (applicable to STREAM and RML modes).
|
java.lang.String |
classificationSpec
Path to a file specifying a classification hierarchy with categories assigned to features in the dataset.
|
boolean |
classifyByName
Specifies whether the join attribute with the classification scheme is based on the category identifier (false) or the actual name of the category (true).
|
java.lang.String |
dbHost
JDBC parameter for the host name (or IP address) of the computer hosting the database.
|
java.lang.String |
dbName
JDBC parameter for the name of the database to connect to.
|
java.lang.String |
dbPassword
JDBC parameter for the password in the database connection.
|
int |
dbPort
JDBC parameter for the port number on which the database in the host computer accepts user requests.
|
java.lang.String |
dbType
Type of database connection.
|
java.lang.String |
dbUserName
JDBC parameter for the username in the database connection.
|
java.lang.String |
defaultLang
Default language specification tag for string literals.
|
char |
delimiter
Delimiter character for CSV file data sources.
|
java.lang.String |
encoding
Encoding used for strings.
|
java.lang.String |
featureClassificationNS
Namespace for the classification scheme employed for the features.
|
java.lang.String |
featureClassNS
Namespace for the URIs of the category assigned to each feature.
|
java.lang.String |
featureNS
Namespace for feature URIs.
|
java.lang.String |
featureSource
String specifying the data source (provider) of the input dataset(s).
|
java.lang.String |
featureSourceNS
Namespace for the data source URI assigned to each feature.
|
java.lang.String |
filterSQLCondition
SQL filter to be applied on the database table; also, thematic filter (in SQL syntax) over geographical files.
|
java.lang.String |
geometryNS
Geometry namespace for WKT literals and spatial properties.
|
java.lang.String |
inputFiles
Path to file(s) containing input dataset(s).
|
java.lang.String |
inputFormat
Format of input data.
|
java.lang.String |
mappingSpec
Path to a file containing mappings of attributes from input schema to RDF properties.
|
java.lang.String |
mode
Transformation mode: (disk-based) GRAPH, (in-memory) STREAM, (in-memory) XSLT, or RML.
|
(package private) Assistant |
myAssistant |
java.lang.String[] |
namespaces
List of namespaces corresponding to the prefixes.
|
java.lang.String |
ontologyNS
Ontology namespace of each transformed feature.
|
java.lang.String |
outputDir
Path to the directory where output files will be written.
|
int |
partitions
Spark parameter for the number of partitions.
|
private java.lang.String |
path
Path to a properties file containing all parameters used in the transformation.
|
java.lang.String[] |
prefixes
List of prefixes for namespaces employed in the transformation.
|
char |
quote
Quote character for strings in CSV file data sources.
|
boolean |
registerFeatures
Indicates whether to export a CSV file with records for the SLIPO Registry.
|
java.lang.String |
runtime
Execution platform at runtime: either JVM (default) or SPARK.
|
java.lang.String |
serialization
Output RDF serialization.
|
java.lang.String |
sourceCRS
Spatial reference system (EPSG code) of the input dataset.
|
java.lang.String |
spark_logger_level
Spark parameter specifying the logging level.
|
java.lang.String |
spatialExtent
Spatial filter to be applied on the input dataset.
|
java.lang.String |
tableName
Name of the database table (or view) where the features will be retrieved from.
|
java.lang.String |
targetCRS
Spatial reference system (EPSG code) of geometries in the output RDF triples.
|
java.lang.String |
targetGeoOntology
Specifies the spatial ontology for geometries in the exported RDF data.
|
java.lang.String |
tmpDir
Path to a directory where intermediate files may be temporarily written during transformation.
|
Constructor and Description |
---|
Configuration(java.lang.String path)
Constructor of a Configuration object.
|
Modifier and Type | Method and Description |
---|---|
private void |
buildConfiguration()
Loads the configuration from a properties file.
|
private void |
initializeParameters(java.util.Properties properties)
Initializes all the parameters for the transformation from the configuration file.
|
Assistant myAssistant
public java.lang.String runtime
public java.lang.String mode
public java.lang.String inputFormat
private java.lang.String path
public java.lang.String inputFiles
public java.lang.String tmpDir
public java.lang.String outputDir
public int batch_size
public java.lang.String mappingSpec
public java.lang.String classificationSpec
public boolean classifyByName
public java.lang.String serialization
public java.lang.String targetGeoOntology
public java.lang.String[] prefixes
public java.lang.String[] namespaces
public java.lang.String ontologyNS
public java.lang.String geometryNS
public java.lang.String featureNS
public java.lang.String featureClassNS
public java.lang.String featureClassificationNS
public java.lang.String featureSourceNS
public java.lang.String defaultLang
public java.lang.String featureSource
public java.lang.String tableName
public java.lang.String filterSQLCondition
public java.lang.String spatialExtent
public java.lang.String attrKey
public java.lang.String attrGeometry
public java.lang.String attrName
public java.lang.String attrCategory
public java.lang.String attrX
public java.lang.String attrY
public boolean registerFeatures
public char delimiter
public char quote
public java.lang.String encoding
public java.lang.String sourceCRS
public java.lang.String targetCRS
public java.lang.String dbType
public java.lang.String dbName
public java.lang.String dbUserName
public java.lang.String dbPassword
public java.lang.String dbHost
public int dbPort
public int partitions
public java.lang.String spark_logger_level
public Configuration(java.lang.String path)
path
- Path to a properties file containing all parameters to be used in the transformation.private void buildConfiguration()
private void initializeParameters(java.util.Properties properties)
properties
- All properties as specified in the configuration file.