Add GeoSparql Namespace

Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/d8710c93
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/d8710c93
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/d8710c93

Branch: refs/heads/MARMOTTA-584
Commit: d8710c93c9642b143aa5d7b7f5d60cc9e8da9429
Parents: 1831400
Author: cuent <[email protected]>
Authored: Tue Aug 11 22:44:44 2015 -0500
Committer: cuent <[email protected]>
Committed: Tue Aug 11 22:44:44 2015 -0500

----------------------------------------------------------------------
 .../commons/sesame/model/Namespaces.java        | 146 ++++++++++---------
 1 file changed, 76 insertions(+), 70 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/d8710c93/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/model/Namespaces.java
----------------------------------------------------------------------
diff --git 
a/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/model/Namespaces.java
 
b/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/model/Namespaces.java
index fbbddd7..b63b050 100644
--- 
a/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/model/Namespaces.java
+++ 
b/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/model/Namespaces.java
@@ -1,4 +1,4 @@
-/*
+/**
  * 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
@@ -19,72 +19,78 @@ package org.apache.marmotta.commons.sesame.model;
 
 /**
  * Namespaces static constants
- * 
+ *
  * @author Sebastian Schaffert
  * @todo see how it fits with the PrefixService
  */
 public class Namespaces {
-
+    
     // the KiWi namespace used in XHTML documents for kiwi: attributes and 
elements
-    public static final String NS_KIWI_HTML                = 
"http://www.kiwi-project.eu/kiwi/html/";;
-    public static final String NS_KIWI_EXPORT              = 
"http://www.kiwi-project.eu/kiwi/export/";;
-
-    public static final String NS_KIWI_CORE                = 
"http://www.kiwi-project.eu/kiwi/core/";;
-    public static final String NS_KIWI_REASONING           = 
"http://www.kiwi-project.eu/kiwi/reasoning/";;
+    public static final String NS_KIWI_HTML = 
"http://www.kiwi-project.eu/kiwi/html/";;
+    public static final String NS_KIWI_EXPORT = 
"http://www.kiwi-project.eu/kiwi/export/";;
+    
+    public static final String NS_KIWI_CORE = 
"http://www.kiwi-project.eu/kiwi/core/";;
+    public static final String NS_KIWI_REASONING = 
"http://www.kiwi-project.eu/kiwi/reasoning/";;
     public static final String NS_KIWI_CORE_KNOWLEDGESPACE = 
"http://www.kiwi-project.eu/kiwi/core/knowledgespace#";;
-    public static final String NS_KIWI_SPECIAL             = 
"http://www.kiwi-project.eu/kiwi/special/";;
-    public static final String NS_KIWI_TRIPLE              = 
"http://www.kiwi-project.eu/kiwi/triple/";;
-    public static final String NS_TAGIT                    = 
"http://www.kiwi-project.eu/tagit/";;
-    public static final String NS_EVENTIM                  = 
"http://www.eventim.de/";;
-
-    public static final String NS_FCP_CORE                 = 
"http://www.newmedialab.at/fcp/";;
-
-    public static final String NS_DEMO                     = 
"http://www.lmf-demo.at/";;
-
+    public static final String NS_KIWI_SPECIAL = 
"http://www.kiwi-project.eu/kiwi/special/";;
+    public static final String NS_KIWI_TRIPLE = 
"http://www.kiwi-project.eu/kiwi/triple/";;
+    public static final String NS_TAGIT = "http://www.kiwi-project.eu/tagit/";;
+    public static final String NS_EVENTIM = "http://www.eventim.de/";;
+    
+    public static final String NS_FCP_CORE = "http://www.newmedialab.at/fcp/";;
+    
+    public static final String NS_DEMO = "http://www.lmf-demo.at/";;
+    
     // LMF Namespaces
-    public static final String NS_LMF_TYPES                = 
"http://www.newmedialab.at/lmf/types/1.0/";;
-    public static final String NS_LMF_FUNCS                = 
"http://www.newmedialab.at/lmf/functions/1.0/";;
-
+    public static final String NS_LMF_TYPES = 
"http://www.newmedialab.at/lmf/types/1.0/";;
+    public static final String NS_LMF_FUNCS = 
"http://www.newmedialab.at/lmf/functions/1.0/";;
+    
     // XML Namespaces
-    public static final String NS_XSD                      = 
"http://www.w3.org/2001/XMLSchema#";;
-    public static final String NS_XML                      = 
"http://www.w3.org/TR/2006/REC-xml11-20060816/#";;
-    public static final String NS_XHTML                    = 
"http://www.w3.org/1999/xhtml";;
-
+    public static final String NS_XSD = "http://www.w3.org/2001/XMLSchema#";;
+    public static final String NS_XML = 
"http://www.w3.org/TR/2006/REC-xml11-20060816/#";;
+    public static final String NS_XHTML = "http://www.w3.org/1999/xhtml";;
+    
     // RDF Namespaces
-    public static final String NS_RDF                      = 
"http://www.w3.org/1999/02/22-rdf-syntax-ns#";;
-    public static final String NS_RDFS                     = 
"http://www.w3.org/2000/01/rdf-schema#";;
-    public static final String NS_OWL                      = 
"http://www.w3.org/2002/07/owl#";;
-
-    public static final String NS_ATOM                     = 
"http://www.w3.org/2005/Atom";;
-
-    // namespaces of some frequently used ontologies
-    public static final String NS_FOAF                     = 
"http://xmlns.com/foaf/0.1/";;
-    public static final String NS_LASTFM                   = 
"http://foaf.qdos.com/lastfm/schema/";;
-    public static final String NS_BIO                      = 
"http://purl.org/vocab/bio/0.1/";;
-    public static final String NS_CONT                     = 
"http://www.w3.org/2000/10/swap/pim/contact#";;
-    public static final String NS_GEO                      = 
"http://www.w3.org/2003/01/geo/wgs84_pos#";;
-    public static final String NS_GEONAMES                 = 
"http://www.geonames.org/ontology#";;
-    public static final String NS_SIOC                     = 
"http://rdfs.org/sioc/ns#";;
-    public static final String NS_SIOC_TYPES               = 
"http://rdfs.org/sioc/types#";;
-    public static final String NS_MOAT                     = 
"http://moat-project.org/ns#";;
-    public static final String NS_HGTAGS                   = 
"http://www.holygoat.co.uk/owl/redwood/0.1/tags/";;
-    public static final String NS_DC                       = 
"http://purl.org/dc/elements/1.1/";;
-    public static final String NS_DC_TERMS                 = 
"http://purl.org/dc/terms/";;
-    public static final String NS_SKOS                     = 
"http://www.w3.org/2004/02/skos/core#";;
-    public static final String NS_SCOT                     = 
"http://scot-project.org/scot/ns#";;
-    public static final String NS_EXIF                     = 
"http://www.kanzaki.com/ns/exif#";;
-    public static final String NS_MEDIA                    = 
"http://www.w3.org/ns/ma-ont#";;
-    public static final String NS_TEMPLATING                      = 
"http://newmedialab.at/onthology/templating/";;
-
-    public static final String NS_MEDIA_ANALYSIS                  = 
"http://linkedmultimedia.org/ontology/";;
-
-    public static final String NS_RSS                      = 
"http://purl.org/rss/1.0/";;
-    public static final String NS_RSS_CONTENT              = 
"http://purl.org/rss/1.0/modules/content/";;
+    public static final String NS_RDF = 
"http://www.w3.org/1999/02/22-rdf-syntax-ns#";;
+    public static final String NS_RDFS = 
"http://www.w3.org/2000/01/rdf-schema#";;
+    public static final String NS_OWL = "http://www.w3.org/2002/07/owl#";;
+    
+    public static final String NS_ATOM = "http://www.w3.org/2005/Atom";;
+    
+// namespaces of some frequently used ontologies
+    public static final String NS_FOAF = "http://xmlns.com/foaf/0.1/";;
+    public static final String NS_LASTFM = 
"http://foaf.qdos.com/lastfm/schema/";;
+    public static final String NS_BIO = "http://purl.org/vocab/bio/0.1/";;
+    public static final String NS_CONT = 
"http://www.w3.org/2000/10/swap/pim/contact#";;
+    /* modify in MARMOTTA 584 deprecated NSGEO    
+     public static final String NS_GEO                      = 
"http://www.w3.org/2003/01/geo/wgs84_pos#";;
+     new NS_GEO and NS_GEOF for GeoSparql Standar Support
+     */
+    public static final String NS_GEO = 
"http://www.opengis.net/ont/geosparql#";;
+    public static final String NS_GEOF = 
"http://www.opengis.net/def/function/geosparql/";;
+    public static final String NS_GEONAMES = 
"http://www.geonames.org/ontology#";;
+    public static final String NS_SIOC = "http://rdfs.org/sioc/ns#";;
+    public static final String NS_SIOC_TYPES = "http://rdfs.org/sioc/types#";;
+    public static final String NS_MOAT = "http://moat-project.org/ns#";;
+    public static final String NS_HGTAGS = 
"http://www.holygoat.co.uk/owl/redwood/0.1/tags/";;
+    public static final String NS_DC = "http://purl.org/dc/elements/1.1/";;
+    public static final String NS_DC_TERMS = "http://purl.org/dc/terms/";;
+    public static final String NS_SKOS = 
"http://www.w3.org/2004/02/skos/core#";;
+    public static final String NS_SCOT = "http://scot-project.org/scot/ns#";;
+    public static final String NS_EXIF = "http://www.kanzaki.com/ns/exif#";;
+    public static final String NS_MEDIA = "http://www.w3.org/ns/ma-ont#";;
+    public static final String NS_TEMPLATING = 
"http://newmedialab.at/onthology/templating/";;
+    
+    public static final String NS_MEDIA_ANALYSIS = 
"http://linkedmultimedia.org/ontology/";;
+    
+    public static final String NS_RSS = "http://purl.org/rss/1.0/";;
+    public static final String NS_RSS_CONTENT = 
"http://purl.org/rss/1.0/modules/content/";;
 
     /**
      * Some language related namespaces from LoC (Library of Congress, USA)
      */
     public static final class NSS_LANGUAGE {
+
         private NSS_LANGUAGE() {};
         /**
          * Use the two-letter identifier, such as "en", "de", "fr"
@@ -99,26 +105,26 @@ public class Namespaces {
          */
         public static final String NS_ISO639_5 = 
"http://id.loc.gov/vocabulary/iso639-5/";;
         /**
-         * MARC List for Languages.
-         * MARC List for Languages provides three-character lowercase 
alphabetic strings that serve
-         * as the identifiers of languages and language groups.
-         * 
+         * MARC List for Languages. MARC List for Languages provides
+         * three-character lowercase alphabetic strings that serve as the
+         * identifiers of languages and language groups.
+         *
          * @see {@link http://id.loc.gov/vocabulary/languages.html}
          */
-        public static final String NS_MARC     = 
"http://id.loc.gov/vocabulary/languages/";;
+        public static final String NS_MARC = 
"http://id.loc.gov/vocabulary/languages/";;
     };
-
-    public static final String MIME_TYPE_ALL               = "*/*";
-    public static final String MIME_TYPE_HTML              = "text/html";
-    public static final String MIME_TYPE_PLAIN             = "text/plain";
-    public static final String MIME_TYPE_TEXT_XML          = "text/xml";
-    public static final String MIME_TYPE_JSON              = 
"application/json";
-    public static final String MIME_TYPE_XHTML             = 
"application/xhtml+xml";
-    public static final String MIME_TYPE_RDFXML            = 
"application/rdf+xml";
-    public static final String MIME_TYPE_XML               = "application/xml";
-    public static final String MIME_TYPE_FORM_URLENC       = 
"application/x-www-form-urlencoded";
-    public static final String MIME_TYPE_TEMPLATE                 = 
"text/html";
-
+    
+    public static final String MIME_TYPE_ALL = "*/*";
+    public static final String MIME_TYPE_HTML = "text/html";
+    public static final String MIME_TYPE_PLAIN = "text/plain";
+    public static final String MIME_TYPE_TEXT_XML = "text/xml";
+    public static final String MIME_TYPE_JSON = "application/json";
+    public static final String MIME_TYPE_XHTML = "application/xhtml+xml";
+    public static final String MIME_TYPE_RDFXML = "application/rdf+xml";
+    public static final String MIME_TYPE_XML = "application/xml";
+    public static final String MIME_TYPE_FORM_URLENC = 
"application/x-www-form-urlencoded";
+    public static final String MIME_TYPE_TEMPLATE = "text/html";
+    
     /**
      * The login for the admin user
      */

Reply via email to