Return-Path: X-Original-To: apmail-marmotta-commits-archive@minotaur.apache.org Delivered-To: apmail-marmotta-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A189D186F6 for ; Mon, 24 Aug 2015 08:13:56 +0000 (UTC) Received: (qmail 50256 invoked by uid 500); 24 Aug 2015 08:13:56 -0000 Delivered-To: apmail-marmotta-commits-archive@marmotta.apache.org Received: (qmail 50124 invoked by uid 500); 24 Aug 2015 08:13:56 -0000 Mailing-List: contact commits-help@marmotta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@marmotta.apache.org Delivered-To: mailing list commits@marmotta.apache.org Received: (qmail 49961 invoked by uid 99); 24 Aug 2015 08:13:56 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2015 08:13:56 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1CEABDFE1D; Mon, 24 Aug 2015 08:13:56 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wikier@apache.org To: commits@marmotta.apache.org Date: Mon, 24 Aug 2015 08:13:56 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [01/40] marmotta git commit: Add geosparql vocabulary 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 Authored: Thu Jun 18 16:46:03 2015 -0500 Committer: cuent 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"; + + } +}