Repository: marmotta
Updated Branches:
refs/heads/MARMOTTA-584 [created] 47702ed75
Add geosparql vocabulary
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/e074cb16
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/e074cb16
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/e074cb16
Branch: refs/heads/MARMOTTA-584
Commit: e074cb161e61a48975cd2d889597589071d2d940
Parents: d0810b4
Author: cuent <cuent@172.28.247.158>
Authored: Thu Jun 18 16:46:03 2015 -0500
Committer: cuent <cuent@172.28.247.158>
Committed: Thu Jun 18 16:46:03 2015 -0500
----------------------------------------------------------------------
.../marmotta/kiwi/vocabulary/FN_GEOSPARQL.java | 86 ++++++++++++++++++++
1 file changed, 86 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/marmotta/blob/e074cb16/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/vocabulary/FN_GEOSPARQL.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/vocabulary/FN_GEOSPARQL.java
b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/vocabulary/FN_GEOSPARQL.java
new file mode 100644
index 0000000..07068ca
--- /dev/null
+++ b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/vocabulary/FN_GEOSPARQL.java
@@ -0,0 +1,86 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.marmotta.kiwi.vocabulary;
+
+import org.openrdf.model.URI;
+import org.openrdf.model.Namespace;
+import org.openrdf.model.ValueFactory;
+import org.openrdf.model.impl.NamespaceImpl;
+import org.openrdf.model.impl.ValueFactoryImpl;
+
+/**
+ * Implement geof Function from GeoSPARQL standard
+ *
+ *
+ * @author Xavier Sumba (xavier.sumba93@ucuenca.ec))
+ */
+public class FN_GEOSPARQL {
+
+ public static final String NAMESPACE = "http://www.opengis.net/def/function/geosparql/";
+
+ /**
+ * Recommended prefix for the XPath Functions namespace:
+ */
+ public static final String PREFIX = "geof";
+
+ // Geometry Type's
+ public static final String POINT;
+ public static final String MULTIPOLYGON;
+ public static final String MULTILINESTRING;
+
+ /**
+ * An immutable {@link org.openrdf.model.Namespace} constant that represents
+ * the XPath Functions namespace.
+ */
+ public static final Namespace NS = new NamespaceImpl(PREFIX, NAMESPACE);
+
+ //BOOLEAN FUNCTIONS
+ public static final URI SF_INTERSECTS;
+ public static final URI SF_WITHIN;
+ public static final URI SF_TOUCHES;
+ public static final URI SF_CONTAINS;
+ public static final URI SF_OVERLAPS;
+ public static final URI SF_CROSSES;
+ public static final URI SF_DISJOINT;
+ public static final URI SF_EQUALS;
+
+ //Non-Topological FUNCTION
+ public static final URI BUFFER;
+ public static final URI CONVEX_HULL;
+
+ static {
+ ValueFactory f = new ValueFactoryImpl();
+
+ SF_INTERSECTS = f.createURI(NAMESPACE, "sfIntersects");
+ SF_WITHIN = f.createURI(NAMESPACE, "sfWithin");
+ SF_TOUCHES = f.createURI(NAMESPACE, "sfTouches");
+ SF_CONTAINS = f.createURI(NAMESPACE, "sfContains");
+ SF_OVERLAPS = f.createURI(NAMESPACE, "sfOverlaps");
+ SF_CROSSES = f.createURI(NAMESPACE, "sfCrosses");
+ SF_DISJOINT = f.createURI(NAMESPACE, "sfDisjoint");
+ SF_EQUALS = f.createURI(NAMESPACE, "sfEquals");
+
+ BUFFER = f.createURI(NAMESPACE,"buffer");
+ CONVEX_HULL = f.createURI(NAMESPACE,"convexHull");
+
+
+ POINT = "POINT";
+ MULTIPOLYGON = "MULTIPOLYGON";
+ MULTILINESTRING = "MULTILINESTRING";
+
+ }
+}
|