You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2013/07/09 11:50:49 UTC

[08/41] - moved SNORQL to WebJar - moved CodeMirror to WebJar - moved Sgvizler to WebJar - cleaned up uses of non-webjar jquery and jquery-ui - configured YUI compressor for the above packages in build

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5fd590b4/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler.html
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler.html b/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler.html
new file mode 100644
index 0000000..4d80b02
--- /dev/null
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler.html
@@ -0,0 +1,141 @@
+<!DOCTYPE HTML>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+    <!--###BEGIN_HEAD###-->
+    <title>Sgvizler</title>
+    <meta charset="UTF-8"/>
+    <link rel="stylesheet" type="text/css" href="../../../core/public/style/center.css"/>
+    <script type="text/javascript" src="../../webjars/jquery/1.8.2/jquery.min.js"></script>
+    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
+    <script type="text/javascript" src="../../webjars/sgvizler/0.5.1/sgvizler.js" id="sgvzlr_script" ></script>
+    <script type="text/javascript" src="../../webjars/codemirror/2.24/codemirror.js"></script>
+    <script type="text/javascript" src="../../webjars/codemirror/2.24/simple-hint.js"></script>
+    <script type="text/javascript" src="../../webjars/codemirror/2.24/sparql.js"></script>
+    <script type="text/javascript">
+        // CONFIGURATION Sgvizler 0.5: Set variables to fit your setup.
+        // NB! Do not let the last item in a list end with a comma.
+
+        //// Query settings. The defaults settings are listed.
+        sgvizler.option.query = {
+            // Default query.
+            'query':                "SELECT ?class (count(?instance) AS ?noOfInstances)\nWHERE{ ?instance a ?class }\nGROUP BY ?class\nORDER BY ?class",
+
+            // Endpoint URL.
+            'endpoint':             _BASIC_URL + 'sparql/select',
+
+            // Endpoint output format.
+            'endpoint_output':      'json'  // 'xml' or 'json'
+
+            // This string is appended the 'endpoint' variable and the query to it again to give a link to the "raw" query results.
+            //'endpoint_query_url':   "?output=text&amp;query=",
+
+            // URL to SPARQL validation service. The query is appended to it.
+            //'validator_query_url':  "http://www.sparql.org/query-validator?languageSyntax=SPARQL&amp;outputFormat=sparql&amp;linenumbers=true&amp;query=",
+
+            // Default chart type.
+            //'chart':                'gLineChart',
+
+            // Default log level. Must be either 0, 1, or 2.
+            //'loglevel':             2
+        };
+
+        //// Prefixes
+        // Add convenient prefixes for your dataset. rdf, rdfs, xsd, owl
+        // are already set.  Examples:
+        //sgvizler.option.namespace['wd'] = 'http://sws.ifi.uio.no/d2rq/resource/';
+        //sgvizler.option.namespace['w']  = 'http://sws.ifi.uio.no/ont/world.owl#';
+
+        //// Your chart drawing preferences. The defaults are listed.
+        // See the Google visualization API for available options for
+        // Google charts, and the Sgvizler homepage for other
+        // options. Options applicable to all charts are put in the
+        // "root" of sgvizler.chartOptions. Chart specific options are
+        // put in a "child" with the chart's id as name,
+        // e.g. 'gGeoMap'.
+        sgvizler.option.chart = {
+            //'width':           '800',
+            //'height':          '400',
+            //'chartArea':       { left: '5%', top: '5%', width: '75%', height: '80%' },
+            //     'gGeoMap': {
+            //	 'dataMode':           'markers'
+            //     },
+            //     'gMap': {
+            //	 'dataMode':           'markers',
+            //     },
+            //     'sMap': {
+            //	 'dataMode':           'markers',
+            //	 'showTip':            true,
+            //	 'useMapTypeControl':  true
+            //     }
+        };
+
+        var editor;
+        $(document).ready(function(){
+            jQuery("#sgvzlr_cQuery").addClass("editor_cm");
+
+        });
+
+        sgvizler.ui.setElementValue = function (elementID, value) {
+            if (sgvizler.ui.isElement(elementID)) {
+                $('#' + elementID).val(value);
+            }
+            if(elementID == "sgvzlr_cQuery") {
+                if(editor) editor.toTextArea();
+                editor = CodeMirror.fromTextArea(document.getElementById("sgvzlr_cQuery"),{
+                    lineNumbers : true,
+                    matchBrackets : true,
+                    extraKeys: {"Ctrl-Space": "sparqlAutocomplete"},
+                    mode: "application/x-sparql-query"
+                });
+            }
+        };
+
+        //// Leave this as is. Ready, steady, GO!
+        $(document).ready(sgvizler.go());
+
+    </script>
+    <link rel="stylesheet" href="../../../cm/codemirror.css" />
+    <link rel="stylesheet" href="../../../cm/simple-hint.css" />
+    <style type="text/css">
+        .CodeMirror {
+            background-color: #fff;
+        }
+    </style>
+    <!--###END_HEAD###-->
+</head>
+<body>
+<!--###BEGIN_CONTENT###-->
+<h2>Visualize SPARQL Query Results</h2>
+
+This page allows you to enter custom SPARQL queries and visualize their results in different kinds of charts.
+The implementation is based on <a href="http://code.google.com/p/sgvizler/">Sqvizler</a>, so you can evaluate query
+visualisations here and then build your own custom LMF+Sgvizler applications.
+
+<div id="queryarea">
+    <pre id="sgvzlr_cPrefix"></pre>
+    <textarea id="sgvzlr_cQuery" rows="10" cols="80"></textarea>
+    <form method="get" id="sgvzlr_formQuery">
+        <p>
+            <input type="hidden" value="" name="query" id="sgvzlr_strQuery"/>
+            Width:  <input name="width" id="sgvzlr_strWidth" type="text" size="3"/>
+            Height: <input name="height" id="sgvzlr_strHeight" type="text" size="3"/>
+            Chart Type: <select name="chart" id="sgvzlr_optChart"></select>
+            <input type="button" value="GO!" onclick="editor.save(); sgvizler.ui.submitQuery()"/>
+        </p>
+    </form>
+    <div id="sgvzlr_cMessage"></div>
+</div>
+<div id="sgvzlr_gchart" style="width:800px; height:400px;"></div>
+<div style="font-size: 80%; font-style: italic; margin-top: 10px;">
+    <!-- Please leave a link to the Sgvizler homepage -->
+    <p>
+        Sgvizler visualizes the result of SPARQL SELECT queries using
+        javascript and the Google Visualization API. For more
+        information, see
+        the <a href="http://code.google.com/p/sgvizler/">Sgvizler</a>
+        homepage. (c) 2011 Martin G. Skj&#230;veland.
+    </p>
+</div>
+<!--###END_CONTENT###-->
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5fd590b4/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/LICENSE
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/LICENSE b/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/LICENSE
deleted file mode 100644
index 0e50dba..0000000
--- a/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/LICENSE
+++ /dev/null
@@ -1,16 +0,0 @@
-Copyright (c) 2011 Martin G. Skjæveland
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5fd590b4/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/sgvizler.chart.css
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/sgvizler.chart.css b/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/sgvizler.chart.css
deleted file mode 100644
index 3f0026e..0000000
--- a/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/sgvizler.chart.css
+++ /dev/null
@@ -1,37 +0,0 @@
-
-/*** sMap ***/
-
-div.sgvizler-sMap{
-    padding: 0;
-    margin: 0;
-    font-family: sans-serif;
-}
-div.sgvizler-sMap h1, div.sgvizler-sMap p{
-    font-size: 11pt;
-    margin: 2px 0 1px 0;
-}
-div.sgvizler-sMap p.text{
-    font-family: serif;
-}
-div.sgvizler-sMap div.img{
-    float: right;
-    padding: 10px;
-}
-
-/*** pForce ***/
-
-circle.node {
-  stroke: #999;
-  stroke-width: 0.5px;
-}
-
-line.link {
-  stroke: #999;
-  stroke-opacity: .6;
-}
-
-.nodetext { 
-    pointer-events: none; 
-    font: 10px sans-serif; 
-    color: black;
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5fd590b4/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/sgvizler.html
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/sgvizler.html b/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/sgvizler.html
deleted file mode 100644
index f986a6a..0000000
--- a/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/sgvizler.html
+++ /dev/null
@@ -1,141 +0,0 @@
-<!DOCTYPE HTML>
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-      <!--###BEGIN_HEAD###-->
-      <title>Sgvizler</title>
-    <meta charset="UTF-8"/>
-    <link rel="stylesheet" type="text/css" href="../../../../core/public/style/center.css"/>
-    <script type="text/javascript" src="../../../../core/public/js/lib/jquery-1.6.4.js"></script>
-    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
-    <script type="text/javascript" id="sgvzlr_script" src="sgvizler.js"></script>
-      <script type="text/javascript" src="../../../cm/codemirror.js"></script>
-      <script type="text/javascript" src="../../../cm/simple-hint.js"></script>
-      <script type="text/javascript" src="../../../cm/sparql.js"></script>
-      <script type="text/javascript">
-      // CONFIGURATION Sgvizler 0.5: Set variables to fit your setup.
-      // NB! Do not let the last item in a list end with a comma.
-
-       //// Query settings. The defaults settings are listed.
-       sgvizler.option.query = {
-           // Default query. 
-           'query':                "SELECT ?class (count(?instance) AS ?noOfInstances)\nWHERE{ ?instance a ?class }\nGROUP BY ?class\nORDER BY ?class",
-    
-           // Endpoint URL. 
-           'endpoint':             _BASIC_URL + 'sparql/select',
-    
-           // Endpoint output format. 
-           'endpoint_output':      'json'  // 'xml' or 'json'
-    
-           // This string is appended the 'endpoint' variable and the query to it again to give a link to the "raw" query results.
-           //'endpoint_query_url':   "?output=text&amp;query=",
-    
-           // URL to SPARQL validation service. The query is appended to it. 
-           //'validator_query_url':  "http://www.sparql.org/query-validator?languageSyntax=SPARQL&amp;outputFormat=sparql&amp;linenumbers=true&amp;query=",
-    
-           // Default chart type. 
-           //'chart':                'gLineChart',
-    
-           // Default log level. Must be either 0, 1, or 2. 
-           //'loglevel':             2
-       };
-
-       //// Prefixes
-       // Add convenient prefixes for your dataset. rdf, rdfs, xsd, owl
-       // are already set.  Examples: 
-       //sgvizler.option.namespace['wd'] = 'http://sws.ifi.uio.no/d2rq/resource/';
-       //sgvizler.option.namespace['w']  = 'http://sws.ifi.uio.no/ont/world.owl#';
-
-       //// Your chart drawing preferences. The defaults are listed.
-       // See the Google visualization API for available options for
-       // Google charts, and the Sgvizler homepage for other
-       // options. Options applicable to all charts are put in the
-       // "root" of sgvizler.chartOptions. Chart specific options are
-       // put in a "child" with the chart's id as name,
-       // e.g. 'gGeoMap'. 
-       sgvizler.option.chart = { 
-           //'width':           '800',
-           //'height':          '400',
-           //'chartArea':       { left: '5%', top: '5%', width: '75%', height: '80%' },
-           //     'gGeoMap': {
-           //	 'dataMode':           'markers'
-           //     },
-           //     'gMap': {
-           //	 'dataMode':           'markers',
-           //     },
-           //     'sMap': {
-           //	 'dataMode':           'markers',
-           //	 'showTip':            true,
-           //	 'useMapTypeControl':  true
-           //     } 
-       };
-
-      var editor;
-      $(document).ready(function(){
-          jQuery("#sgvzlr_cQuery").addClass("editor_cm");
-
-      });
-
-      sgvizler.ui.setElementValue = function (elementID, value) {
-          if (sgvizler.ui.isElement(elementID)) {
-              $('#' + elementID).val(value);
-          }
-          if(elementID == "sgvzlr_cQuery") {
-              if(editor) editor.toTextArea();
-              editor = CodeMirror.fromTextArea(document.getElementById("sgvzlr_cQuery"),{
-                  lineNumbers : true,
-                  matchBrackets : true,
-                  extraKeys: {"Ctrl-Space": "sparqlAutocomplete"},
-                  mode: "application/x-sparql-query"
-              });
-          }
-      };
-
-       //// Leave this as is. Ready, steady, GO!
-      $(document).ready(sgvizler.go());
-
-      </script>
-      <link rel="stylesheet" href="../../../cm/codemirror.css" />
-      <link rel="stylesheet" href="../../../cm/simple-hint.css" />
-      <style type="text/css">
-          .CodeMirror {
-              background-color: #fff;
-          }
-      </style>
-      <!--###END_HEAD###-->
-  </head>
-  <body>
-  <!--###BEGIN_CONTENT###-->
-    <h2>Visualize SPARQL Query Results</h2>
-
-    This page allows you to enter custom SPARQL queries and visualize their results in different kinds of charts.
-    The implementation is based on <a href="http://code.google.com/p/sgvizler/">Sqvizler</a>, so you can evaluate query
-    visualisations here and then build your own custom LMF+Sgvizler applications.
-
-    <div id="queryarea">
-      <pre id="sgvzlr_cPrefix"></pre>
-      <textarea id="sgvzlr_cQuery" rows="10" cols="80"></textarea>
-      <form method="get" id="sgvzlr_formQuery">
-	<p>
-	  <input type="hidden" value="" name="query" id="sgvzlr_strQuery"/>
-	  Width:  <input name="width" id="sgvzlr_strWidth" type="text" size="3"/>
-	  Height: <input name="height" id="sgvzlr_strHeight" type="text" size="3"/>
-	  Chart Type: <select name="chart" id="sgvzlr_optChart"></select>
-	  <input type="button" value="GO!" onclick="editor.save(); sgvizler.ui.submitQuery()"/>
-	</p>
-      </form>
-      <div id="sgvzlr_cMessage"></div>
-    </div>
-    <div id="sgvzlr_gchart" style="width:800px; height:400px;"></div>
-    <div style="font-size: 80%; font-style: italic; margin-top: 10px;">
-      <!-- Please leave a link to the Sgvizler homepage --> 
-      <p>
-	Sgvizler visualizes the result of SPARQL SELECT queries using
-	javascript and the Google Visualization API. For more
-	information, see
-	the <a href="http://code.google.com/p/sgvizler/">Sgvizler</a>
-	homepage. (c) 2011 Martin G. Skj&#230;veland.
-      </p>
-    </div>
-  <!--###END_CONTENT###-->
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5fd590b4/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/sgvizler.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/sgvizler.js b/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/sgvizler.js
deleted file mode 100644
index f563ed7..0000000
--- a/platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/sgvizler.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/*  Sgvizler JavaScript SPARQL result set visualizer, version 0.5.0
- *  (c) 2011 Martin G. Skjæveland
- *
- *  Sgvizler is freely distributable under the terms of an MIT-style license.
- *  Sgvizler web site: https://code.google.com/p/sgvizler/
- *--------------------------------------------------------------------------*/var sgvizler={go:function(){this.loadLibs(),google.load("visualization","1.0",{packages:["annotatedtimeline","corechart","gauge","geomap","geochart","imagesparkline","map","orgchart","table","motionchart","treemap"]}),google.setOnLoadCallback(function(){sgvizler.charts.loadCharts(),sgvizler.drawFormQuery(),sgvizler.drawContainerQueries()})},loadLibs:function(){sgvizler.ui.isElement(sgvizler.ui.id.script)&&(this.option.homefolder=$("#"+sgvizler.ui.id.script).attr("src").replace(/sgvizler\.js$/,""),this.option.libfolder=this.option.homefolder+"/lib/"),$.ajax(this.option.libfolder+"d3.min.js",{dataType:"script",async:!1}),$.ajax(this.option.libfolder+"d3.layout.min.js",{dataType:"script",async:!1}),$.ajax(this.option.libfolder+"d3.geom.min.js",{dataType:"script",async:!1}),$("head").append('<link rel="stylesheet" href="'+this.option.homefolder+'sgvizler.chart.css" type="text/css" />')},drawFormQuery:function(
 ){var a=new sgvizler.query(sgvizler.ui.id.chartCon),b=sgvizler.ui.getUrlParams();$.extend(a,sgvizler.option.query,{query:b.query,chart:b.chart}),sgvizler.ui.displayUI(a),sgvizler.ui.isElement(a.container)&&a.query&&($.extend(a.chartOptions,{width:b.width,height:b.height}),a.draw())},drawContainerQueries:function(){$("["+this.ui.attr.prefix+"query]").each(function(){var a=new sgvizler.query;$.extend(a,sgvizler.option.query,sgvizler.ui.getQueryOptionAttr(this)),$.extend(a.chartOptions,sgvizler.ui.getChartOptionAttr(this)),a.draw()})},option:{},chart:{},charts:{},parser:{},ui:{}};jQuery.ajaxSetup({accepts:{xml:"application/sparql-results+xml",json:"application/sparql-results+json"}}),sgvizler.option={home:window.location.href.replace(window.location.search,""),homefolder:"",libfolder:this.homefolder+"/lib/",namespace:{rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",owl:"http://www.w3.org/2002/07/owl#",xsd:"http://www.w3.org/2001/XMLSchema#
 "},query:{},chart:{}},sgvizler.ui={id:{script:"sgvzlr_script",chartCon:"sgvzlr_gchart",queryForm:"sgvzlr_formQuery",queryTxt:"sgvzlr_cQuery",formQuery:"sgvzlr_strQuery",formWidth:"sgvzlr_strWidth",formHeight:"sgvzlr_strHeight",formChart:"sgvzlr_optChart",prefixCon:"sgvzlr_cPrefix",messageCon:"sgvzlr_cMessage"},attr:{prefix:"data-sgvizler-",prefixChart:"data-sgvizler-chart-options",valueAssign:"=",valueSplit:"|"},params:["query","chart","width","height"],displayUI:function(a){this.displayPrefixes(),this.displayChartTypesMenu(),this.displayUserInput(a)},displayPrefixes:function(){this.setElementText(this.id.prefixCon,sgvizler.query.prototype.getPrefixes())},displayUserInput:function(a){this.setElementValue(this.id.queryTxt,a.query),this.setElementValue(this.id.formChart,a.chart),this.setElementValue(this.id.formWidth,a.width),this.setElementValue(this.id.formHeight,a.height)},displayChartTypesMenu:function(){if(this.isElement(this.id.formChart)){var a=sgvizler.charts.all;for(var b=0;b
 <a.length;b++)$("#"+this.id.formChart).append($("<option/>").val(a[b].id).html(a[b].id))}},displayFeedback:function(a,b){var c="",d=a.container;a.container===this.id.chartCon&&this.isElement(this.id.messageCon)&&(d=this.id.messageCon);if(a.loglevel===0)return;if(a.loglevel===1){if(b==="LOADING")c="Loading...";else if(b==="ERROR_ENDPOINT"||b==="ERROR_UNKNOWN")c="Error."}else b==="LOADING"?c="Sending query...":b==="ERROR_ENDPOINT"?c="Error querying endpoint. Possible errors:"+this.html.ul(this.html.a(a.endpoint,"SPARQL endpoint")+" down? "+this.html.a(a.endpoint+a.endpoint_query_url+a.encodedQuery,"Check if query runs at the endpoint")+".","Malformed SPARQL query? "+this.html.a(a.validator_query_url+a.encodedQuery,"Check if it validates")+".","CORS supported and enabled? Read more about "+this.html.a("http://code.google.com/p/sgvizler/wiki/Compatibility","CORS and compatibility")+".","Is your "+this.html.a("http://code.google.com/p/sgvizler/wiki/Compatibility","browser support")+"ed?"
 ,"Hmm.. it might be a bug! Please file a report to "+this.html.a("http://code.google.com/p/sgvizler/issues/","the issues")+"."):b==="ERROR_UNKNOWN"?c="Unknown error.":b==="NO_RESULTS"?c="Query returned no results.":b==="DRAWING"&&(c="Received "+a.noRows+" rows. Drawing chart...<br/>"+this.html.a(a.endpoint+a.endpoint_query_url+a.encodedQuery,"View query results","target='_blank'")+" (in new window).");this.setElementHTML(d,this.html.tag("p",c))},setElementValue:function(a,b){this.isElement(a)&&$("#"+a).val(b)},setElementText:function(a,b){this.isElement(a)&&$("#"+a).text(b)},setElementHTML:function(a,b){this.isElement(a)&&$("#"+a).html(b)},isElement:function(a){return $("#"+a).length>0},getQueryOptionAttr:function(a){var b={container:$(a).attr("id")},c=a.attributes;for(var d=0;d<c.length;d++)c[d].name.lastIndexOf(this.attr.prefix,0)===0&&(b[c[d].name.substring(this.attr.prefix.length)]=c[d].value);return b},getChartOptionAttr:function(a){var b={},c=$(a).attr(sgvizler.ui.attr.prefixC
 hart);if(typeof c!="undefined"){options=c.split(this.attr.valueSplit);for(var d in options){var e=options[d].split(this.attr.valueAssign),f=e[0].split("."),g=b;for(var h=0;h<f.length-1;h++)typeof g[f[h]]=="undefined"&&(g[f[h]]={}),g=g[f[h]];g[f[h]]=e[1]}}return b.width=/(\d+)/.exec($(a).css("width"))[1],b.height=/(\d+)/.exec($(a).css("height"))[1],b},getUrlParams:function(){var a={},b,c=/([^&=]+)=?([^&]*)/g,d=function(a){return decodeURIComponent(a.replace(/\+/g," "))},e=window.location.search.substring(1);while(b=c.exec(e))b[2].length>0&&$.inArray(b[1],this.params!==-1)&&(a[d(b[1])]=d(b[2]));return a},resetPage:function(){document.location=sgvizler.home},submitQuery:function(){$("#"+this.id.formQuery).val($("#"+this.id.queryTxt).val()),$("#"+this.id.queryForm).submit()},html:{a:function(a,b,c){typeof c=="undefined"&&(c="");if(typeof a!="undefined"&&typeof b!="undefined")return"<a "+c+" href='"+a+"'>"+b+"</a>"},ul:function(){var a=this.ul.arguments;if(a.length){var b="<ul>";for(var 
 c=0;c<a.length;c++)b+="<li>"+a[c]+"</li>";return b+"</ul>"}},tag:function(a,b){return"<"+a+">"+b+"</"+a+">"}}},sgvizler.parser={defaultGDatatype:"string",countRowsSparqlXML:function(a){return $(a).find("sparql").find("results").find("result").length},countRowsSparqlJSON:function(a){if(typeof a.results.bindings!="undefined")return a.results.bindings.length},SparqlXML2GoogleJSON:function(a){var b=[],c=[],d=[],e=$(a).find("sparql").find("results").find("result"),f=0;$(a).find("sparql").find("head").find("variable").each(function(){var a=null,c=null,g=$(this).attr("name"),h=$(e).find('binding[name="'+g+'"]');if(h.length){var i=$(h).first().children().first()[0];a=i.nodeName,c=$(i).attr("datatype")}d[f]=sgvizler.parser.getGoogleJsonDatatype(a,c),b[f]={id:g,label:g,type:d[f]},f++});var g=0;return $(e).each(function(){var a=[];for(var e=0;e<b.length;e++){var f=null,h=$(this).find('binding[name="'+b[e].id+'"]');if(h.length&&typeof $(h).first().children().first()!="undefined"&&$(h).first().c
 hildren().first().firstChild!==null){var i=$(h).first().children().first()[0],j=i.nodeName,k=$(i).first().text();f=sgvizler.parser.getGoogleJsonValue(k,d[e],j)}a[e]={v:f}}c[g]={c:a},g++}),{cols:b,rows:c}},SparqlJSON2GoogleJSON:function(a){var b=[],c=[],d=[],e=a.head.vars,f=a.results.bindings;for(var g=0;g<e.length;g++){var h=0,i=null,j=null;while(typeof f[h][e[g]]=="undefined"&&h+1<f.length)h++;typeof f[h][e[g]]!="undefined"&&(i=f[h][e[g]].type,j=f[h][e[g]].datatype),d[g]=this.getGoogleJsonDatatype(i,j),b[g]={id:e[g],label:e[g],type:d[g]}}for(var h=0;h<f.length;h++){var k=f[h],l=[];for(var g=0;g<e.length;g++){var m=null;typeof k[e[g]]!="undefined"&&typeof k[e[g]].value!="undefined"&&(m=this.getGoogleJsonValue(k[e[g]].value,d[g],k[e[g]].type)),l[g]={v:m}}c[h]={c:l}}return{cols:b,rows:c}},getGoogleJsonValue:function(a,b,c){return b==="number"?Number(a):b==="date"?new Date(a.substr(0,4),a.substr(5,2),a.substr(8,2)):b==="datetime"?new Date(a.substr(0,4),a.substr(5,2),a.substr(8,2),a.sub
 str(11,2),a.substr(14,2),a.substr(17,2)):b==="timeofday"?[a.substr(0,2),a.substr(3,2),a.substr(6,2)]:c==="uri"?this.prefixify(a):a},getGoogleJsonDatatype:function(a,b){var c=sgvizler.option.namespace.xsd;if(typeof a!="undefined"&&(a==="typed-literal"||a==="literal")){if(b===c+"float"||b===c+"double"||b===c+"decimal"||b===c+"int"||b===c+"long"||b===c+"integer")return"number";if(b===c+"boolean")return"boolean";if(b===c+"date")return"date";if(b===c+"dateTime")return"datetime";if(b===c+"time")return"timeofday"}return this.defaultGDatatype},prefixify:function(a){for(var b in sgvizler.option.namespace)if(a.lastIndexOf(sgvizler.option.namespace[b],0)===0)return a.replace(sgvizler.option.namespace[b],b+":");return a},unprefixify:function(a){for(var b in sgvizler.option.namespace)if(a.lastIndexOf(b+":",0)===0)return a.replace(b+":",sgvizler.option.namespace[b]);return a}},sgvizler.query=function(a){this.container=a,this.query="SELECT ?class (count(?instance) AS ?noOfInstances)\nWHERE{ ?insta
 nce a ?class }\nGROUP BY ?class\nORDER BY ?class",this.endpoint="http://sws.ifi.uio.no/sparql/world",this.endpoint_output="json",this.endpoint_query_url="?output=text&amp;query=",this.validator_query_url="http://www.sparql.org/query-validator?languageSyntax=SPARQL&amp;outputFormat=sparql&amp;linenumbers=true&amp;query=",this.chart="gLineChart",this.loglevel=2,this.chartOptions={width:"800",height:"400",chartArea:{left:"5%",top:"5%",width:"75%",height:"80%"},gGeoMap:{dataMode:"markers"},gMap:{dataMode:"markers"},sMap:{dataMode:"markers",showTip:!0,useMapTypeControl:!0},gSparkline:{showAxisLines:!1}}},sgvizler.query.prototype.draw=function(){var a=this,b=sgvizler.charts.getChart(this.container,this.chart);this.setChartSpecificOptions(),this.insertFrom(),this.runQuery(function(c){b.draw(new google.visualization.DataTable(a.processQueryResults(c)),a.chartOptions)})},sgvizler.query.prototype.runQuery=function(a){var b=this.endpoint_output;sgvizler.ui.displayFeedback(this,"LOADING"),this.
 encodedQuery=encodeURIComponent(this.getPrefixes()+this.query);if(this.endpoint_output!=="jsonp"&&$.browser.msie&&window.XDomainRequest){var c=new XDomainRequest,d=this.endpoint+"?query="+this.encodedQuery+"&output="+this.endpoint_output;c.open("GET",d),c.onload=function(){var d;b==="xml"?d=$.parseXML(c.responseText):d=$.parseJSON(c.responseText),a(d)},c.send()}else $.get(this.endpoint,{query:this.getPrefixes()+this.query,output:this.endpoint_output==="jsonp"?"json":this.endpoint_output},function(b){a(b)},this.endpoint_output).error(function(){sgvizler.ui.displayFeedback(this,"ERROR_ENDPOINT")})},sgvizler.query.prototype.processQueryResults=function(a){this.setResultRowCount(a);if(this.noRows===null)sgvizler.ui.displayFeedback(this,"ERROR_UNKNOWN");else if(this.noRows===0)sgvizler.ui.displayFeedback(this,"NO_RESULTS");else return sgvizler.ui.displayFeedback(this,"DRAWING"),this.getGoogleJSON(a)},sgvizler.query.prototype.setResultRowCount=function(a){this.endpoint_output==="xml"?this
 .noRows=sgvizler.parser.countRowsSparqlXML(a):this.noRows=sgvizler.parser.countRowsSparqlJSON(a)},sgvizler.query.prototype.getGoogleJSON=function(a){return this.endpoint_output==="xml"?a=sgvizler.parser.SparqlXML2GoogleJSON(a):a=sgvizler.parser.SparqlJSON2GoogleJSON(a),a},sgvizler.query.prototype.insertFrom=function(){if(typeof this.rdf!="undefined"){var a=this.rdf.split(sgvizler.ui.attr.valueSplit),b="";for(var c in a)b+="FROM <"+a[c]+">\n";this.query=this.query.replace(/(WHERE)?(\s)*\{/,"\n"+b+"WHERE {")}},sgvizler.query.prototype.getPrefixes=function(){var a="";for(var b in sgvizler.option.namespace)a+="PREFIX "+b+": <"+sgvizler.option.namespace[b]+">\n";return a},sgvizler.query.prototype.setChartSpecificOptions=function(){for(var a in this.chartOptions)if(a===this.chart)for(var b in this.chartOptions[a])this.chartOptions[b]=this.chartOptions[a][b]},sgvizler.charts={all:[],loadCharts:function(){var a=[{id:"gLineChart",func:google.visualization.LineChart},{id:"gAreaChart",func:goo
 gle.visualization.AreaChart},{id:"gSteppedAreaChart",func:google.visualization.SteppedAreaChart},{id:"gPieChart",func:google.visualization.PieChart},{id:"gBubbleChart",func:google.visualization.BubbleChart},{id:"gColumnChart",func:google.visualization.ColumnChart},{id:"gBarChart",func:google.visualization.BarChart},{id:"gSparkline",func:google.visualization.ImageSparkLine},{id:"gScatterChart",func:google.visualization.ScatterChart},{id:"gCandlestickChart",func:google.visualization.CandlestickChart},{id:"gGauge",func:google.visualization.Gauge},{id:"gOrgChart",func:google.visualization.OrgChart},{id:"gTreeMap",func:google.visualization.TreeMap},{id:"gTimeline",func:google.visualization.AnnotatedTimeLine},{id:"gMotionChart",func:google.visualization.MotionChart},{id:"gGeoChart",func:google.visualization.GeoChart},{id:"gGeoMap",func:google.visualization.GeoMap},{id:"gMap",func:google.visualization.Map},{id:"gTable",func:google.visualization.Table}];$.merge(this.all,a);for(var b in sgvi
 zler.chart)this.register(sgvizler.chart[b].prototype.id,sgvizler.chart[b])},register:function(a,b){this.all.push({id:a,func:b})},getChart:function(a,b){var c=document.getElementById(a);for(var d=0;d<this.all.length;d++)if(b===this.all[d].id)return new this.all[d].func(c)}},sgvizler.chart.dForceGraph=function(a){this.container=a},sgvizler.chart.dForceGraph.prototype={id:"dForceGraph",draw:function(a,b){function t(){s.attr("transform","translate("+d3.event.translate+")"+" scale("+d3.event.scale+")")}var c=a.getNumberOfColumns(),d=a.getNumberOfRows(),e=$.extend({maxnodesize:15,minnodesize:2},b);colors=d3.scale.category20(),w=b.width,h=b.height,isNumber=function(a){return!isNaN(parseFloat(a))&&isFinite(a)};var f=[],g=[],i={},j={},k=0;for(var l=0;l<d;l++){var m=a.getValue(l,0),n=a.getValue(l,1);m!==null&&$.inArray(m,f)===-1&&(f.push(m),j[m]=c>2?Math.sqrt(a.getValue(l,2)):0,i[m]=c>3?a.getValue(l,3):0,j[m]>k&&(k=j[m])),n!==null&&$.inArray(n,f)===-1&&f.push(n),m!==null&&n!==null&&g.push({so
 urce:$.inArray(m,f),target:$.inArray(n,f)})}k===0&&(k=1);var o=e.maxnodesize/k;for(var p=0;p<f.length;p++){var q=typeof i[f[p]]!="undefined"?i[f[p]]:1,r=isNumber(j[f[p]])?e.minnodesize+j[f[p]]*o:e.minnodesize;f[p]={name:f[p],color:q,size:r}}$(this.container).empty();var s=d3.select(this.container).append("svg:svg").attr("width",w).attr("height",h).attr("pointer-events","all").append("svg:g").call(d3.behavior.zoom().on("zoom",t)).append("svg:g");s.append("svg:rect").attr("width",w).attr("height",h).attr("fill","white");var u=d3.layout.force().gravity(.05).distance(100).charge(-100).nodes(f).links(g).size([w,h]).start(),v=s.selectAll("line.link").data(g).enter().append("svg:line").attr("class","link").attr("x1",function(a){return a.source.x}).attr("y1",function(a){return a.source.y}).attr("x2",function(a){return a.target.x}).attr("y2",function(a){return a.target.y}),x=s.selectAll("g.node").data(f).enter().append("svg:g").attr("class","node").call(u.drag);x.append("svg:circle").style("
 fill",function(a){return colors(a.color)}).attr("class","node").attr("r",function(a){return a.size}),x.append("svg:title").text(function(a){return a.name}),x.append("svg:text").attr("class","nodetext").attr("dx",12).attr("dy",".35em").text(function(a){return a.name});var y=0;u.on("tick",function(){y++,y>250&&(u.stop(),u.charge(0).linkStrength(0).linkDistance(0).gravity(0).start()),v.attr("x1",function(a){return a.source.x}).attr("y1",function(a){return a.source.y}).attr("x2",function(a){return a.target.x}).attr("y2",function(a){return a.target.y}),x.attr("transform",function(a){return"translate("+a.x+","+a.y+")"})})}},sgvizler.chart.DefList=function(a){this.container=a},sgvizler.chart.DefList.prototype={id:"sDefList",draw:function(a,b){var c=a.getNumberOfColumns(),d=a.getNumberOfRows(),e=$.extend({cellSep:" ",termPrefix:"",termPostfix:":",definitionPrefix:"",definitionPostfix:""},b),f=$(document.createElement("dl"));for(var g=0;g<d;g++){var h=e.termPrefix+a.getValue(g,0)+e.termPostf
 ix;f.append($(document.createElement("dt")).html(h));var i=e.definitionPrefix;for(var j=1;j<c;j++)i+=a.getValue(g,j),j+1!==c&&(i+=e.cellSep);i+=e.definitionPostfix,f.append($(document.createElement("dd")).html(i))}$(this.container).empty(),$(this.container).append(f)}},sgvizler.chart.List=function(a){this.container=a},sgvizler.chart.List.prototype={id:"sList",draw:function(a,b){var c=a.getNumberOfColumns(),d=a.getNumberOfRows(),e=$.extend({list:"ul",cellSep:", ",rowPrefix:"",rowPostfix:""},b),f=$(document.createElement(e.list));for(var g=0;g<d;g++){var h=e.rowPrefix;for(var i=0;i<c;i++)h+=a.getValue(g,i),i+1!==c&&(h+=e.cellSep);h+=e.rowPostfix,f.append($(document.createElement("li")).html(h))}$(this.container).empty(),$(this.container).append(f)}},sgvizler.chart.sMap=function(a){this.container=a},sgvizler.chart.sMap.prototype={id:"sMap",draw:function(a,b){var c,d=a.getNumberOfColumns();if(d>3){c=a.clone();for(var e=d-1;e>2;e--)c.removeColumn(e);for(var f=0;f<a.getNumberOfRows();f++)
 {var g="<div class='sgvizler sgvizler-sMap'>";g+="<h1>"+a.getValue(f,2)+"</h1>",5<d&&a.getValue(f,5)!==null&&(g+="<div class='img'><img src='"+a.getValue(f,5)+"'/></div>"),3<d&&a.getValue(f,3)!==null&&(g+="<p class='text'>"+a.getValue(f,3)+"</p>"),4<d&&a.getValue(f,4)!==null&&(g+="<p class='link'><a href='"+sgvizler.parser.unprefixify(a.getValue(f,4))+"'>"+a.getValue(f,4)+"</a></p>"),g+="</div>",c.setCell(f,2,g)}}else c=dDataTable;chart=new google.visualization.Map(this.container),chart.draw(c,b)}},sgvizler.chart.Text=function(a){this.container=a},sgvizler.chart.Text.prototype={id:"sText",draw:function(a,b){var c=a.getNumberOfColumns(),d=a.getNumberOfRows(),e=$.extend({cellSep:", ",cellPrefix:"",cellPostfix:"",rowPrefix:"<p>",rowPostfix:"</p>",resultsPrefix:"<div>",resultsPostfix:"</div>"},b),f=e.resultsPrefix;for(var g=0;g<d;g++){var h=e.rowPrefix;for(var i=0;i<c;i++)h+=e.cellPrefix+a.getValue(g,i)+e.cellPostfix,i+1!==c&&(h+=e.cellSep);f+=h+e.rowPostfix}f+=e.resultsPostfix,$(this.c
 ontainer).empty(),$(this.container).html(f)}};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5fd590b4/platform/marmotta-sparql/src/main/resources/web/admin/snorql.html
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql.html b/platform/marmotta-sparql/src/main/resources/web/admin/snorql.html
new file mode 100755
index 0000000..ec22217
--- /dev/null
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql.html
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+    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.
+
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+    <!--###BEGIN_HEAD###-->
+    <title>Snorql: A SPARQL Explorer</title>
+    <link rel="stylesheet" type="text/css" href="../../webjars/snorql/1.0/snorql.css" />
+    <link rel="stylesheet" type="text/css" href="../../webjars/codemirror/2.24/codemirror.css" />
+    <style type="text/css">
+        .CodeMirror {
+            background-color: #fff;
+        }
+    </style>
+    <!--###END_HEAD###-->
+</head>
+
+<body>
+<!--###BEGIN_CONTENT###-->
+<h1>SPARQL Query Form</h1>
+
+<p id="title">Query</p>
+
+<div class="snorql">    
+
+    <div class="section" style="float: right; width: 8em">
+        <h2 style="color:#464646;font-size:18px">Browse:</h2>
+        <ul style="margin:10px 0 0;list-style:none;padding:0;font-size:12px; font-family: Courier;">
+            <li><a class="graph-link" href="?browse=classes">Classes</a></li>
+            <li><a class="graph-link" href="?browse=properties">Properties</a></li>
+            <li id="browse-named-graphs-link"><a href="?browse=graphs">Named Graphs</a></li>
+        </ul>
+    </div>
+
+    <div id="default-graph-section" class="section" style="margin-right: 12em">
+        <h2 style="display: inline;color:#464646;font-size:18px">GRAPH:</h2>
+        <p style="display: inline">
+            Default graph.
+            <a href="?browse=graphs">List named graphs</a>
+        </p>
+    </div>
+
+    <div id="named-graph-section" class="section" style="margin-right: 12em">
+        <h2 style="display: inline;font-size:18px;color:#464646;">GRAPH:</h2>
+        <p style="display: inline">
+            <span id="selected-named-graph">Named graph goes here</span>.
+            <a href="javascript:snorql.switchToDefaultGraph()">Switch back to default graph</a>
+        </p>
+    </div>
+
+    <div class="section">
+        <pre id="prefixestext"></pre>
+        <form id="queryform" action="#" method="get">
+          <div>
+            <input type="hidden" name="prefixes" value="" id="prefixes" />
+            <input type="hidden" name="query" value="" id="query" />
+            <input type="hidden" name="output" value="json" id="jsonoutput" disabled="disabled" />
+            <input type="hidden" name="stylesheet" value="" id="stylesheet" disabled="disabled" />
+            <input type="hidden" name="graph" value="" id="graph-uri" disabled="disabled" />
+          </div>
+        </form>
+        <div>
+            <textarea name="query" rows="9" cols="80" id="querytext"></textarea>
+            <span style="color:#464646;">Results:</span>
+            <select id="selectoutput" onchange="snorql.updateOutputMode()">
+                <option selected="selected" value="browse">Browse</option>
+                <option value="json">as JSON</option>
+                <option value="xml">as XML</option>
+                <option value="html">as HTML</option>
+                <option value="csv">as CSV</option>
+            </select>
+        <span id="xsltcontainer"><span id="xsltinput">
+          XSLT stylesheet URL:
+          <input id="xsltstylesheet" type="text" value="snorql/xml-to-html.xsl" size="30" />
+        </span></span>
+            <input type="button" value="Go!" onclick="editor.save(); snorql.submitQuery()" />
+        </div>
+    </div>
+
+    <div class="section">
+        <div id="result"><span></span></div>
+    </div>
+
+    <!-- <div id="footer_snorql">Powered by <a id="poweredby" href="#">Snorql</a></div>  -->
+
+    <script type="text/javascript" src="../../webjars/snorql/1.0/snorql.js"></script>
+    <script type="text/javascript" src="../../webjars/jquery/1.8.2/jquery.min.js"></script>
+    <script type="text/javascript" src="../../webjars/codemirror/2.24/codemirror.js"></script>
+    <script type="text/javascript">
+        jQuery.noConflict();
+    </script>
+
+    <script type="text/javascript">
+        var editor;
+        jQuery(document).ready(function(){
+            jQuery("#querytext").addClass("editor_cm");
+
+            snorql.start();
+
+            editor = CodeMirror.fromTextArea(document.getElementById("querytext"),{
+                lineNumbers : true,
+                matchBrackets : true,
+                tabMode: "indent",
+                extraKeys: {"Ctrl-Space": "sparqlAutocomplete"},
+                mode: "application/x-sparql-query",
+                firstLineNumber: Object.keys(D2R_namespacePrefixes).length + 1
+            });
+
+            jQuery.getJSON("../../../prefix", function(data) {
+                var ns = {};
+                jQuery.each(data, function(prefix, namespace) {
+                    ns[prefix] = namespace;
+                });
+                snorql.setNamespaces(ns);
+                editor.setOption("firstLineNumber", Object.keys(ns).length + 1);
+            });   
+            
+        });
+    </script>    
+    
+</div>
+<!--###END_CONTENT###-->
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5fd590b4/platform/marmotta-sparql/src/main/resources/web/admin/snorql/LICENSE
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/LICENSE b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/LICENSE
deleted file mode 100755
index d645695..0000000
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/LICENSE
+++ /dev/null
@@ -1,202 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed 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.

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5fd590b4/platform/marmotta-sparql/src/main/resources/web/admin/snorql/README
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/README b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/README
deleted file mode 100755
index 87a5827..0000000
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/README
+++ /dev/null
@@ -1,11 +0,0 @@
-SNORQL is an AJAXy front-end for exploring RDF SPARQL endpoints
-
-It was originally created by Richard Cyganaik ( http://richard.cyganiak.de/ )
-for the D2R server project ( http://www4.wiwiss.fu-berlin.de/bizer/d2r-server/ ).
-
-SNORQL can be used with just about any SPARQL endpoint that supports JSON. To
-use SNORQL simply put the ./snorql directory somwhere sensible in the Apache
-web directory and modify ./snorql/snorql.js to conform with your setup.  You
-can also modify the pre-defined namespaces in ./snorql/namespaces.js
-
-SNORQL is licensed under Apache-2 license (see ./LICENSE ).
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5fd590b4/platform/marmotta-sparql/src/main/resources/web/admin/snorql/link.png
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/link.png b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/link.png
deleted file mode 100755
index 419c06f..0000000
Binary files a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/link.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5fd590b4/platform/marmotta-sparql/src/main/resources/web/admin/snorql/namespaces.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/namespaces.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/namespaces.js
deleted file mode 100755
index 7db1f83..0000000
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/namespaces.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * 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.
- */
-var D2R_namespacePrefixes = {
-    rdf: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
-    rdfs: 'http://www.w3.org/2000/01/rdf-schema#',
-    owl: 'http://www.w3.org/2002/07/owl#',
-    skos: 'http://www.w3.org/2004/02/skos/core#',
-    dc: 'http://purl.org/dc/elements/1.1/',
-    foaf: 'http://xmlns.com/foaf/0.1/',
-    xsd: 'http://www.w3.org/2001/XMLSchema#'
-};