bindingMakers() {
38 | return Collections.singleton(relation.getBindingMaker());
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-r2rml/src/main/java/org/d2rq/tmp/JoinOptimizer.java:
--------------------------------------------------------------------------------
1 | package org.d2rq.tmp;
2 |
3 | import org.d2rq.algebra.NodeRelation;
4 |
5 | public class JoinOptimizer {
6 | public static NodeRelation optimize(NodeRelation r) { return r; }
7 | }
8 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-r2rml/src/main/java/org/d2rq/tmp/QueryEngineD2RQ.java:
--------------------------------------------------------------------------------
1 | package org.d2rq.tmp;
2 |
3 | import com.hp.hpl.jena.sparql.engine.QueryEngineFactory;
4 | import com.hp.hpl.jena.sparql.engine.main.QueryEngineMain;
5 |
6 | public class QueryEngineD2RQ {
7 | public static void register() {}
8 | public static QueryEngineFactory getFactory() {
9 | return QueryEngineMain.getFactory();
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-r2rml/src/main/java/org/d2rq/validation/ValidatingRDFParser.java:
--------------------------------------------------------------------------------
1 | package org.d2rq.validation;
2 |
3 | import org.d2rq.validation.Message.Problem;
4 | import org.openjena.riot.RiotException;
5 |
6 | import com.hp.hpl.jena.rdf.model.Model;
7 | import com.hp.hpl.jena.shared.JenaException;
8 | import com.hp.hpl.jena.util.FileManager;
9 |
10 |
11 | public class ValidatingRDFParser {
12 | private final String file;
13 | private final Report report;
14 |
15 | public ValidatingRDFParser(String file, Report report) {
16 | this.file = file;
17 | this.report = report;
18 | }
19 |
20 | public Model parse() {
21 | try {
22 | return FileManager.get().loadModel(file);
23 | } catch (JenaException ex) {
24 | Throwable cause = ex.getCause();
25 | if (cause instanceof RiotException) {
26 | report.report(Problem.SYNTAX_ERROR, cause.getMessage());
27 | } else {
28 | report.report(Problem.IO_ERROR, ex.getMessage());
29 | }
30 | return null;
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-r2rml/src/main/java/org/d2rq/values/ColumnValueTransformationMaker.java:
--------------------------------------------------------------------------------
1 | package org.d2rq.values;
2 |
3 | import org.d2rq.db.schema.ColumnName;
4 |
5 |
6 | /**
7 | * A {@link ValueMaker} that takes its values from a transformation of a single
8 | * column.
9 | *
10 | * @author Dimitrianos Savva (dimis@di.uoa.gr)
11 | *
12 | * WE DO NOT NEED THIS ANYMORE
13 | */
14 | public class ColumnValueTransformationMaker extends ColumnValueMaker {
15 |
16 | public ColumnValueTransformationMaker(ColumnName column) {
17 | super(column);
18 | // TODO Auto-generated constructor stub
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-r2rml/src/main/java/org/d2rq/vocab/JDBC.java:
--------------------------------------------------------------------------------
1 | package org.d2rq.vocab;
2 | import com.hp.hpl.jena.rdf.model.Model;
3 | import com.hp.hpl.jena.rdf.model.ModelFactory;
4 | import com.hp.hpl.jena.rdf.model.Property;
5 | import com.hp.hpl.jena.rdf.model.Resource;
6 |
7 | /**
8 | * Open namespace for JDBC connection properties. A JDBC connection
9 | * property named foo is modelled as an RDF property with
10 | * URI http://d2rq.org/terms/jdbc/foo. Values are plain string
11 | * literals.
12 | *
13 | * @author Richard Cyganiak
14 | */
15 | public class JDBC {
16 |
17 | /**
18 | * The RDF model that holds the vocabulary terms.
19 | */
20 | private static Model model = ModelFactory.createDefaultModel();
21 |
22 | /**
23 | * The namespace of the vocabulary as a string.
24 | */
25 | public static final String NS = "http://d2rq.org/terms/jdbc/";
26 |
27 | /**
28 | * The namespace of the vocabulary as a string.
29 | * @see #NS
30 | */
31 | public static String getURI() {
32 | return NS;
33 | }
34 |
35 | /**
36 | * The namespace of the vocabulary as a resource.
37 | */
38 | public static final Resource NAMESPACE = model.createResource(NS);
39 |
40 | public static Property getProperty(String key) {
41 | return model.createProperty(NS, key);
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-r2rml/src/main/java/org/d2rq/vocab/META.java:
--------------------------------------------------------------------------------
1 | package org.d2rq.vocab;
2 | /**
3 | * Specifies the template variable prefix URI for the metadata extension
4 | *
5 | * @author Hannes Muehleisen (hannes@muehleisen.org)
6 | */
7 |
8 | public class META {
9 |
10 | public static final String NS = "http://www4.wiwiss.fu-berlin.de/bizer/d2r-server/metadata#";
11 | }
12 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-r2rml/src/main/java/org/d2rq/vocab/RRExtra.java:
--------------------------------------------------------------------------------
1 | package org.d2rq.vocab;
2 |
3 | import com.hp.hpl.jena.rdf.model.Resource;
4 |
5 |
6 | /**
7 | * Extra terms that should be in the R2RML vocabulary but aren't.
8 | *
9 | * @author Richard Cyganiak (richard@cyganiak.de)
10 | */
11 | public class RRExtra {
12 |
13 | public static Resource Mapping =
14 | RR.SubjectMap.getModel().createResource(RR.getURI() + "Mapping");
15 | public static Resource TermMap =
16 | RR.SubjectMap.getModel().createResource(RR.getURI() + "TermMap");
17 | public static Resource ConstantValuedTermMap =
18 | RR.SubjectMap.getModel().createResource(RR.getURI() + "ConstantValuedTermMap");
19 | public static Resource ColumnValuedTermMap =
20 | RR.SubjectMap.getModel().createResource(RR.getURI() + "ColumnValuedTermMap");
21 | public static Resource TemplateValuedTermMap =
22 | RR.SubjectMap.getModel().createResource(RR.getURI() + "TemplateValuedTermMap");
23 | public static Resource TransformationValuedTermMap =
24 | RR.SubjectMap.getModel().createResource(RR.getURI() + "TransformationValuedTermMap");
25 |
26 | public static Resource SQL2008 =
27 | RR.SubjectMap.getModel().createResource(RR.getURI() + "SQL2008");
28 | }
29 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-r2rml/src/main/java/org/d2rq/vocab/RRX.java:
--------------------------------------------------------------------------------
1 | package org.d2rq.vocab;
2 |
3 | import com.hp.hpl.jena.rdf.model.Model;
4 | import com.hp.hpl.jena.rdf.model.ModelFactory;
5 | import com.hp.hpl.jena.rdf.model.Property;
6 | import com.hp.hpl.jena.rdf.model.Resource;
7 |
8 | /** SEE WP2 deliverable 1*/
9 | public class RRX {
10 | /** The RDF model that holds the vocabulary terms
*/
11 | private static Model m_model = ModelFactory.createDefaultModel();
12 |
13 | /** The namespace of the vocabulary as a string
*/
14 | private static final String NSXfunctions = "http://www.w3.org/ns/r2rml-ext/functions/def/";
15 | private static final String NSX = "http://www.w3.org/ns/r2rml-ext#";
16 |
17 | public static String getURI() { return NSX; }
18 | public static String getFunctionsURI() { return NSXfunctions; }
19 | /** Represents a logical geometry table.
*/
20 |
21 | public static final Resource LogicalGeometryTable = m_model.createResource( "http://www.w3.org/ns/r2rml#LogicalGeometryTable" );
22 |
23 | public static final Resource TransformationMap = m_model.createResource( "http://www.w3.org/ns/r2rml-ext#TransformationMap" );
24 |
25 | public static final Resource ArgumentMap = m_model.createResource( "http://www.w3.org/ns/r2rml-ext#ArgumentMap" );
26 |
27 | public static final Resource Function = m_model.createResource( "http://www.w3.org/ns/r2rml-ext#Function" );
28 |
29 | public static final Property function = m_model.createProperty( "http://www.w3.org/ns/r2rml-ext#function");
30 |
31 | public static final Property argumentMap = m_model.createProperty( "http://www.w3.org/ns/r2rml-ext#argumentMap");
32 |
33 | public static final Property transformation = m_model.createProperty( "http://www.w3.org/ns/r2rml-ext#transformation");
34 | }
35 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-r2rml/src/main/java/org/d2rq/vocab/SD.java:
--------------------------------------------------------------------------------
1 | package org.d2rq.vocab;
2 |
3 | import com.hp.hpl.jena.rdf.model.Model;
4 | import com.hp.hpl.jena.rdf.model.ModelFactory;
5 | import com.hp.hpl.jena.rdf.model.Property;
6 | import com.hp.hpl.jena.rdf.model.Resource;
7 |
8 | public class SD {
9 | private static Model vocabModel = ModelFactory.createDefaultModel();
10 |
11 | public static final String NS = "http://www.w3.org/ns/sparql-service-description#";
12 |
13 | public static final Resource NAMESPACE = vocabModel.createResource(NS);
14 |
15 | public static final Resource Service = vocabModel.createResource(NS
16 | + "Service");
17 |
18 | public static final Resource Dataset = vocabModel.createResource(NS
19 | + "Dataset");
20 |
21 | public static final Resource Graph = vocabModel.createResource(NS
22 | + "Graph");
23 |
24 | public static final Property url = vocabModel
25 | .createProperty(NS + "url");
26 |
27 | public static final Property defaultDatasetDescription = vocabModel
28 | .createProperty(NS + "defaultDatasetDescription");
29 |
30 | public static final Property defaultGraph = vocabModel
31 | .createProperty(NS + "defaultGraph");
32 |
33 | public static final Property resultFormat = vocabModel
34 | .createProperty(NS + "resultFormat");
35 |
36 |
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-r2rml/src/main/java/org/d2rq/vocab/STRING_FUNCTIONS.java:
--------------------------------------------------------------------------------
1 | package org.d2rq.vocab;
2 |
3 | import java.sql.Types;
4 |
5 | import org.d2rq.db.types.DataType;
6 | import org.d2rq.db.types.SQLBoolean;
7 | import org.d2rq.db.types.SQLExactNumeric;
8 | import org.d2rq.r2rml.ConstantIRI;
9 |
10 | import com.hp.hpl.jena.rdf.model.Model;
11 | import com.hp.hpl.jena.rdf.model.ModelFactory;
12 |
13 | import eu.linkedeodata.geotriples.GMLLiteral;
14 | import eu.linkedeodata.geotriples.WKTLiteral;
15 |
16 | /** SEE WP2 deliverable 1 */
17 | public class STRING_FUNCTIONS {
18 |
19 |
20 | /**
21 | *
22 | * The RDF model that holds the vocabulary terms
23 | *
24 | */
25 | @SuppressWarnings("unused")
26 | private static Model m_model = ModelFactory.createDefaultModel();
27 |
28 | /**
29 | *
30 | * Represents the geometry function dimension.
31 | *
32 | */
33 | public static final ConstantIRI asCAPITAL = ConstantIRI.create(RRX
34 | .getFunctionsURI() + "asCAPITAL");
35 | public static final ConstantIRI asLOWER = ConstantIRI.create(RRX
36 | .getFunctionsURI() + "asLOWER");
37 | public static final ConstantIRI SubString = ConstantIRI.create(RRX
38 | .getFunctionsURI() + "SubString");
39 |
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-r2rml/src/main/java/org/d2rq/vocab/VoID.java:
--------------------------------------------------------------------------------
1 | package org.d2rq.vocab;
2 |
3 | import com.hp.hpl.jena.rdf.model.Model;
4 | import com.hp.hpl.jena.rdf.model.ModelFactory;
5 | import com.hp.hpl.jena.rdf.model.Property;
6 | import com.hp.hpl.jena.rdf.model.Resource;
7 |
8 | public class VoID {
9 | private static Model vocabModel = ModelFactory.createDefaultModel();
10 |
11 | public static final String NS = "http://rdfs.org/ns/void#";
12 |
13 | public static final Resource NAMESPACE = vocabModel.createResource(NS);
14 |
15 | public static final Resource Dataset = vocabModel.createResource(NS
16 | + "Dataset");
17 |
18 | public static final Property homepage = vocabModel
19 | .createProperty("http://xmlns.com/foaf/0.1/homepage");
20 |
21 | public static final Property feature = vocabModel
22 | .createProperty(NS + "feature");
23 |
24 | public static final Property rootResource = vocabModel
25 | .createProperty(NS + "rootResource");
26 |
27 | public static final Property uriSpace = vocabModel
28 | .createProperty(NS + "uriSpace");
29 |
30 | public static final Property class_ = vocabModel
31 | .createProperty(NS + "class");
32 |
33 | public static final Property property = vocabModel
34 | .createProperty(NS + "property");
35 |
36 | public static final Property vocabulary = vocabModel
37 | .createProperty(NS + "vocabulary");
38 |
39 | public static final Property classPartition = vocabModel
40 | .createProperty(NS + "classPartition");
41 |
42 | public static final Property propertyPartition = vocabModel
43 | .createProperty(NS + "propertyPartition");
44 |
45 | public static final Property sparqlEndpoint = vocabModel
46 | .createProperty(NS + "sparqlEndpoint");
47 |
48 | public static final Property inDataset = vocabModel
49 | .createProperty(NS + "inDataset");
50 | }
51 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-r2rml/src/main/java/org/d2rq/writer/MappingWriter.java:
--------------------------------------------------------------------------------
1 | package org.d2rq.writer;
2 |
3 | import java.io.OutputStream;
4 | import java.io.Writer;
5 | import java.util.List;
6 |
7 | import org.d2rq.r2rml.TermMap;
8 |
9 | import com.hp.hpl.jena.rdf.model.Property;
10 |
11 | public interface MappingWriter {
12 |
13 | void write(OutputStream outStream);
14 |
15 | void write(Writer outWriter);
16 |
17 | void visitTermProperty(Property property, List termMaps);
18 |
19 | }
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-rml/src/main/java/be/ugent/mmlab/rml/core/ArgumentPosition.java:
--------------------------------------------------------------------------------
1 | package be.ugent.mmlab.rml.core;
2 |
3 | public class ArgumentPosition {
4 | public ArgumentPosition(int argumentList, int actualPosition) {
5 | super();
6 | this.argumentList = argumentList;
7 | this.actualPosition = actualPosition;
8 | }
9 | public int getArgumentList() {
10 | return argumentList;
11 | }
12 | public void setArgumentList(int argumentList) {
13 | this.argumentList = argumentList;
14 | }
15 | public int getActualPosition() {
16 | return actualPosition;
17 | }
18 | public void setActualPosition(int actualPosition) {
19 | this.actualPosition = actualPosition;
20 | }
21 | private int argumentList;
22 | private int actualPosition;
23 | }
24 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-rml/src/main/java/be/ugent/mmlab/rml/core/Config.java:
--------------------------------------------------------------------------------
1 | package be.ugent.mmlab.rml.core;
2 |
3 | import java.util.HashMap;
4 |
5 | /**
6 | * here lie the default parameters of the application. For instance, which epsg code should be used if non is specified explicitly?
7 | */
8 | public class Config {
9 | public static final String GEOTRIPLES_AUTO_ID = "GeoTriplesID";
10 | public static int EPSG_CODE = 4326;
11 | public static boolean GEOMETRY = false;
12 | public static String VOCABULARY = "GeoSPARQL";
13 |
14 |
15 | public static HashMap variables=new HashMap<>();
16 | }
17 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-rml/src/main/java/be/ugent/mmlab/rml/core/KeyGenerator.java:
--------------------------------------------------------------------------------
1 | package be.ugent.mmlab.rml.core;
2 |
3 | import java.util.HashMap;
4 | /**
5 | * Generates a key to be used as private key for shape file table.
6 | * Generates either on the fly(Generate), or using a hash map of strings(GenerateFromMap)
7 | * @author Dimitrianos Savva (dimis@di.uoa.gr)
8 | */
9 | public class KeyGenerator {
10 | public enum Use{
11 | USE_PREV,
12 | NEW_ONE,
13 | }
14 | private int key=0;
15 | private HashMap memory;
16 | public KeyGenerator()
17 | {
18 | memory=new HashMap();
19 | }
20 |
21 | public int GenerateFromMap(String somekey)
22 | {
23 | if(memory.containsKey(somekey))
24 | {
25 | return memory.get(somekey);
26 | }
27 | else
28 | {
29 | memory.put(somekey, ++key);
30 | return key;
31 | }
32 | }
33 |
34 | public int Generate(Use purpose) throws Exception
35 | {
36 | if(purpose.equals(Use.USE_PREV))
37 | {
38 | return key;
39 | }
40 | else if(purpose.equals(Use.NEW_ONE))
41 | {
42 | return ++key;
43 | }
44 | else
45 | {
46 | throw new Exception("Use purpose unsupported");
47 | }
48 | }
49 |
50 | public int Generate() throws Exception
51 | {
52 | return Generate(Use.NEW_ONE);
53 | }
54 |
55 | public String Generate(String prefix,Use purpose) throws Exception
56 | {
57 | if(purpose.equals(Use.USE_PREV))
58 | {
59 | return String.format("%s%d",prefix,key);
60 | }
61 | else if(purpose.equals(Use.NEW_ONE))
62 | {
63 | return String.format("%s%d",prefix,++key);
64 | }
65 | else
66 | {
67 | throw new Exception("Use purpose unsupported");
68 | }
69 | }
70 | public String Generate(String prefix) throws Exception
71 | {
72 | return Generate(prefix,Use.NEW_ONE);
73 | }
74 |
75 | public void reset() {
76 | key=0;
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-rml/src/main/java/be/ugent/mmlab/rml/core/MalformedGeometryException.java:
--------------------------------------------------------------------------------
1 | package be.ugent.mmlab.rml.core;
2 |
3 | public class MalformedGeometryException extends Exception {
4 |
5 |
6 | public MalformedGeometryException(String message) {
7 | super(message);
8 | }
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-rml/src/main/java/be/ugent/mmlab/rml/core/RMLPerformer.java:
--------------------------------------------------------------------------------
1 | package be.ugent.mmlab.rml.core;
2 |
3 | import net.antidot.semantic.rdf.model.impl.sesame.SesameDataSet;
4 |
5 | import java.util.Collection;
6 |
7 | import org.openrdf.model.Resource;
8 | import org.openrdf.model.Statement;
9 |
10 | import be.ugent.mmlab.rml.model.TriplesMap;
11 |
12 | /**
13 | *
14 | * Interface for executing context-dependent operations like a regular object map, or a join
15 | *
16 | * @author mielvandersande
17 | */
18 | public interface RMLPerformer {
19 | /**
20 | * Perform the action
21 | *
22 | * @param node current object in the iteration
23 | * @param dataset dataset for endresult
24 | * @param map current triple map that is being processed
25 | */
26 | public Collection perform(Object node, SesameDataSet dataset, TriplesMap map);
27 |
28 | public Collection perform(Object node, SesameDataSet dataset, TriplesMap map, Resource subject);
29 |
30 | public Object getCurrentNode();
31 | }
32 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-rml/src/main/java/be/ugent/mmlab/rml/dataset/StatementCounter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this template, choose Tools | Templates
3 | * and open the template in the editor.
4 | */
5 | package be.ugent.mmlab.rml.dataset;
6 |
7 | import org.openrdf.model.Statement;
8 | import org.openrdf.rio.helpers.RDFHandlerBase;
9 |
10 | /**
11 | *
12 | * @author mielvandersande
13 | */
14 | class StatementCounter extends RDFHandlerBase {
15 |
16 | private int countedStatements = 0;
17 |
18 | @Override
19 | public void handleStatement(Statement st) {
20 | countedStatements++;
21 | }
22 |
23 | public int getCountedStatements() {
24 | return countedStatements;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-rml/src/main/java/be/ugent/mmlab/rml/dataset/TupleMatcher.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this template, choose Tools | Templates
3 | * and open the template in the editor.
4 | */
5 | package be.ugent.mmlab.rml.dataset;
6 |
7 | import java.util.ArrayList;
8 | import java.util.Collection;
9 | import java.util.Iterator;
10 | import java.util.List;
11 | import java.util.ListIterator;
12 | import org.openrdf.model.Resource;
13 | import org.openrdf.model.Statement;
14 | import org.openrdf.model.URI;
15 | import org.openrdf.model.Value;
16 | import org.openrdf.rio.helpers.RDFHandlerBase;
17 |
18 | /**
19 | *
20 | * @author mielvandersande
21 | */
22 | class TupleMatcher extends RDFHandlerBase {
23 |
24 | private List statements = new ArrayList<>();
25 | private Resource s;
26 | private URI p;
27 | private Value o;
28 |
29 | public TupleMatcher(Resource s, URI p, Value o, Resource... contexts) {
30 | this.s = s;
31 | this.p = p;
32 | this.o = o;
33 | }
34 |
35 | public List getStatements() {
36 | return statements;
37 | }
38 |
39 | @Override
40 | public void handleStatement(Statement st) {
41 | if ((this.s == null || this.s.equals(st.getSubject())) && (this.p == null || this.p.equals(st.getPredicate())) && (this.o == null || this.o.equals(st.getObject()))) {
42 | statements.add(st);
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-rml/src/main/java/be/ugent/mmlab/rml/function/Config.java:
--------------------------------------------------------------------------------
1 | package be.ugent.mmlab.rml.function;
2 |
3 | import java.util.HashMap;
4 |
5 | /***************************************************************************
6 | *
7 | * @author: dimis (dimis@di.uoa.gr)
8 | *
9 | ****************************************************************************/
10 | public class Config {
11 | public static String EPSG_CODE = "4326";
12 | public static boolean useGML3=true;
13 | public static boolean useGML2=false;
14 | public static boolean useKML_22=false;
15 | public static boolean useDGALLibrary=false;
16 | public static boolean useOldDBProcessor=false;
17 | public static final HashMap user_namespaces=new HashMap();
18 | public static final String GEOTRIPLES_AUTO_ID = "GeoTriplesID";
19 | public static void setGML3() {
20 | useGML3=true;
21 | useGML2=false;
22 | useKML_22=false;
23 | }
24 | public static void setGML2() {
25 | useGML3=false;
26 | useGML2=true;
27 | useKML_22=false;
28 | }
29 | public static void setKML() {
30 | useGML3=false;
31 | useGML2=false;
32 | useKML_22=true;
33 | }
34 | public static void setGDAL() {
35 | useDGALLibrary=true;
36 | }
37 | public static void setOldDBProcessor() {
38 | useOldDBProcessor=true;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-rml/src/main/java/be/ugent/mmlab/rml/function/Function.java:
--------------------------------------------------------------------------------
1 | package be.ugent.mmlab.rml.function;
2 |
3 | import java.util.List;
4 |
5 | import be.ugent.mmlab.rml.vocabulary.Vocab.QLTerm;
6 |
7 | public interface Function {
8 |
9 | public List extends Object> execute(List extends Object> list,List extends QLTerm> qlterms) throws Exception;
10 |
11 | public Object execute(Object obj, QLTerm qlterm) throws Exception;
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/geotriples-processors/geotriples-rml/src/main/java/be/ugent/mmlab/rml/function/FunctionAdd.java:
--------------------------------------------------------------------------------
1 | package be.ugent.mmlab.rml.function;
2 |
3 | import java.io.IOException;
4 | import java.util.ArrayList;
5 | import java.util.List;
6 |
7 | import javax.xml.parsers.ParserConfigurationException;
8 |
9 | import org.opengis.referencing.FactoryException;
10 | import org.xml.sax.SAXException;
11 |
12 | import be.ugent.mmlab.rml.core.MalformedGeometryException;
13 | import be.ugent.mmlab.rml.vocabulary.Vocab.QLTerm;
14 |
15 |
16 | public class FunctionAdd extends AbstractFunction implements Function {
17 | @Override
18 | public List extends Object> execute(
19 | List extends Object> arguments,List extends QLTerm> qlterms) throws SAXException, IOException, ParserConfigurationException, FactoryException, MalformedGeometryException {
20 | List