public interface Converter
| Modifier and Type | Method and Description |
|---|---|
org.apache.jena.rdf.model.Model |
getModel()
Provides access to the disk-based model consisting of transformed triples.
|
java.lang.String |
getTDBDir()
Returns the local directory that holds the disk-based RDF graph for this transformation thread.
|
java.util.List<org.apache.jena.graph.Triple> |
getTriples()
Provides triples resulted after applying transformation in STREAM mode.
|
java.lang.String |
getURItemplate4Classification()
Provides the URI template used for all subjects in RDF triples concerning the classification hierarchy.
|
void |
parse(org.geotools.feature.FeatureIterator<?> iterator,
Classification classific,
org.opengis.referencing.operation.MathTransform reproject,
int targetSRID,
java.lang.String outputFile)
Parses each record from a FeatureIterator and creates the resulting triples (including geometric and non-spatial attributes).
|
void |
parse(java.util.Iterator<org.apache.commons.csv.CSVRecord> records,
Classification classific,
org.opengis.referencing.operation.MathTransform reproject,
int targetSRID,
java.lang.String outputFile)
Parses each record from a collection of CSV records and creates the resulting triples (including geometric and non-spatial attributes).
|
void |
parse(OSMRecord rs,
Classification classific,
org.opengis.referencing.operation.MathTransform reproject,
int targetSRID)
Parses a single OSM record and creates the resulting triples (including geometric and non-spatial attributes)
|
void |
parse(java.sql.ResultSet rs,
Classification classific,
org.opengis.referencing.operation.MathTransform reproject,
int targetSRID,
java.lang.String outputFile)
Parses each record from a ResultSet and creates the resulting triples (including geometric and non-spatial attributes).
|
void |
parse(java.lang.String wkt,
java.util.Map<java.lang.String,java.lang.String> attrValues,
Classification classific,
int targetSRID,
org.opengis.referencing.operation.MathTransform reproject,
java.lang.String geomType,
int partition_index,
java.lang.String outputFile)
Parses a Map structure of (key, value) pairs and streamlines the resulting triples (including geometric and non-spatial attributes).
|
void |
parse(java.lang.String wkt,
java.util.Map<java.lang.String,java.lang.String> attrValues,
Classification classific,
int targetSRID,
java.lang.String geomType)
Parses a single GPX waypoint or track and streamlines the resulting triples (including geometric and non-spatial attributes).
|
void |
parseWithRML(java.util.HashMap<java.lang.String,java.lang.String> row,
be.ugent.mmlab.rml.model.dataset.RMLDataset dataset)
Converts a row (with several attribute values, including geometry) into suitable triples according to the specified RML mappings.
|
void |
setHeader(java.lang.String[] header)
Retains the header (column names) of an input CSV file.
|
void |
store(java.lang.String outputFile)
Stores resulting tuples into a file.
|
void |
store(java.lang.String outputFile,
int partition_index)
Finalizes storage of resulting tuples into a file.
|
int |
writeTriples(be.ugent.mmlab.rml.model.dataset.RMLDataset dataset,
java.io.BufferedWriter writer,
org.openrdf.rio.RDFFormat rdfFormat,
java.lang.String encoding)
Serializes the given RML dataset as triples written into a file.
|
int |
writeTriples(be.ugent.mmlab.rml.model.dataset.RMLDataset dataset,
java.io.OutputStream writer,
org.openrdf.rio.RDFFormat rdfFormat)
Serializes the given RML dataset as triples written into a file.
|
void parse(org.geotools.feature.FeatureIterator<?> iterator,
Classification classific,
org.opengis.referencing.operation.MathTransform reproject,
int targetSRID,
java.lang.String outputFile)
iterator - FeatureIterator over spatial features collected from an ESRI shapefile of a GeoJSON file.classific - Instantiation of the classification scheme that assigns categories to input features.reproject - CRS transformation parameters to be used in reprojecting a geometry to a target SRID (EPSG code).targetSRID - Spatial reference system (EPSG code) of geometries in the output RDF triples.outputFile - Path to the output file that collects RDF triples.void parse(java.sql.ResultSet rs,
Classification classific,
org.opengis.referencing.operation.MathTransform reproject,
int targetSRID,
java.lang.String outputFile)
rs - ResultSet containing spatial features retrieved from a DBMS.classific - Instantiation of the classification scheme that assigns categories to input features.reproject - CRS transformation parameters to be used in reprojecting a geometry to a target SRID (EPSG code).targetSRID - Spatial reference system (EPSG code) of geometries in the output RDF triples.outputFile - Path to the output file that collects RDF triples.void parse(java.util.Iterator<org.apache.commons.csv.CSVRecord> records,
Classification classific,
org.opengis.referencing.operation.MathTransform reproject,
int targetSRID,
java.lang.String outputFile)
records - Iterator over CSV records collected from a CSV file.classific - Instantiation of the classification scheme that assigns categories to input features.reproject - CRS transformation parameters to be used in reprojecting a geometry to a target SRID (EPSG code).targetSRID - Spatial reference system (EPSG code) of geometries in the output RDF triples.outputFile - Path to the output file that collects RDF triples.void parse(OSMRecord rs, Classification classific, org.opengis.referencing.operation.MathTransform reproject, int targetSRID)
rs - Representation of an OSM record with attributes extracted from an OSM element (node, way, or relation).classific - Instantiation of the classification scheme that assigns categories to input features.reproject - CRS transformation parameters to be used in reprojecting a geometry to a target SRID (EPSG code).targetSRID - Spatial reference system (EPSG code) of geometries in the output RDF triples.void parse(java.lang.String wkt,
java.util.Map<java.lang.String,java.lang.String> attrValues,
Classification classific,
int targetSRID,
java.lang.String geomType)
wkt - Well-Known Text representation of the geometryattrValues - Attribute values for each thematic (non-spatial) attributeclassific - Instantiation of the classification scheme that assigns categories to input features.targetSRID - Spatial reference system (EPSG code) of geometries in the output RDF triples.geomType - The type of the geometry (e.g., POINT, POLYGON, etc.)void parse(java.lang.String wkt,
java.util.Map<java.lang.String,java.lang.String> attrValues,
Classification classific,
int targetSRID,
org.opengis.referencing.operation.MathTransform reproject,
java.lang.String geomType,
int partition_index,
java.lang.String outputFile)
wkt - Well-Known Text representation of the geometryattrValues - Attribute values for each thematic (non-spatial) attributeclassific - Instantiation of the classification scheme that assigns categories to input features.targetSRID - Spatial reference system (EPSG code) of geometries in the output RDF triples.reproject - CRS transformation parameters to be used in reprojecting a geometry to a target SRID (EPSG code).geomType - The type of the geometry (e.g., POINT, POLYGON, etc.)partition_index - The index of the partition.outputFile - Path to the output file that collects RDF triples.void store(java.lang.String outputFile)
outputFile - Path to the output file that collects RDF triples.void store(java.lang.String outputFile,
int partition_index)
outputFile - Path to the output file that collects RDF triples.partition_index - The index of the partition.void setHeader(java.lang.String[] header)
header - A array of attribute (column) names.void parseWithRML(java.util.HashMap<java.lang.String,java.lang.String> row,
be.ugent.mmlab.rml.model.dataset.RMLDataset dataset)
row - Record with attribute names and their respective values.dataset - RMLDataset to collect the resulting triples.java.util.List<org.apache.jena.graph.Triple> getTriples()
org.apache.jena.rdf.model.Model getModel()
java.lang.String getTDBDir()
int writeTriples(be.ugent.mmlab.rml.model.dataset.RMLDataset dataset,
java.io.BufferedWriter writer,
org.openrdf.rio.RDFFormat rdfFormat,
java.lang.String encoding)
throws java.io.IOException
dataset - RMLDataset that has collected the resulting triples.writer - BufferedWriter to write triples in the output stream.rdfFormat - Serialization format of triples to be written to the file.encoding - Encoding for string literals.java.io.IOExceptionint writeTriples(be.ugent.mmlab.rml.model.dataset.RMLDataset dataset,
java.io.OutputStream writer,
org.openrdf.rio.RDFFormat rdfFormat)
throws java.io.IOException
dataset - RMLDataset that has collected the resulting triples.writer - BufferedWriter to write triples in the output stream.rdfFormat - Serialization format of triples to be written to the file.java.io.IOExceptionjava.lang.String getURItemplate4Classification()