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:56 UTC

[15/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/editor/sparql/images/Undo_24x24.png
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/images/Undo_24x24.png b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/images/Undo_24x24.png
deleted file mode 100644
index 141f1ca..0000000
Binary files a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/images/Undo_24x24.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/editor/sparql/images/ajax-loader-red.gif
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/images/ajax-loader-red.gif b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/images/ajax-loader-red.gif
deleted file mode 100644
index c2b1859..0000000
Binary files a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/images/ajax-loader-red.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5fd590b4/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-local.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-local.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-local.js
deleted file mode 100644
index 60e2f35..0000000
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-local.js
+++ /dev/null
@@ -1,69 +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.
- */
-$(document).ready(function() {
-	var sampleQuery1 = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n\nSELECT ?title ?uri WHERE {\n\t?uri rdf:type <http://www.w3.org/ns/ma-ont#MediaResource>.\n\t?uri <http://www.w3.org/ns/ma-ont#title> ?title\n}\nLIMIT 10";
-
-	var flintConfig = {
-		"interface": {
-			"toolbar": true,
-			"menu": true
-		},
-		"namespaces": [
-			{"name": "Friend of a friend", "prefix": "foaf", "uri": "http://xmlns.com/foaf/0.1/"},
-			{"name": "XML schema", "prefix": "xsd", "uri": "http://www.w3.org/2001/XMLSchema#"},
-			{"name": "SIOC", "prefix": "sioc", "uri": "http://rdfs.org/sioc/ns#"},
-			{"name": "Resource Description Framework", "prefix": "rdf", "uri": "http://www.w3.org/1999/02/22-rdf-syntax-ns#"},
-			{"name": "Resource Description Framework schema", "prefix": "rdfs", "uri": "http://www.w3.org/2000/01/rdf-schema#"},
-			{"name": "Dublin Core", "prefix": "dc", "uri": "http://purl.org/dc/elements/1.1/"},
-			{"name": "Dublin Core terms", "prefix": "dct", "uri": "http://purl.org/dc/terms/"},
-			{"name": "Creative Commons", "prefix": "cc", "uri": "http://www.creativecommons.org/ns#"},
-			{"name": "Web Ontology Language", "prefix": "owl", "uri": "http://www.w3.org/2002/07/owl#"},
-			{"name": "Simple Knowledge Organisation System", "prefix": "skos", "uri": "http://www.w3.org/2004/02/skos/core#"},
-			{"name": "Geography", "prefix": "geo", "uri": "http://www.w3.org/2003/01/geo/wgs84_pos#"},
-			{"name": "Geonames", "prefix": "geonames", "uri": "http://www.geonames.org/ontology#"},
-		        {"name": "DBPedia property", "prefix": "dbp", "uri": "http://dbpedia.org/property/"},
-		        {"name": "Open Provenance Model Vocabulary", "prefix": "opmv", "uri": "http://purl.org./net/opmv/ns#"},
-        	        {"name": "Functional Requirements for Bibliographic Records", "prefix": "frbr", "uri": "http://purl.org/vocab/frbr/core#"}
-
-		],
-		"defaultEndpointParameters": {
-			"queryParameters": {
-				"format": "output",
-				"query": "query"
-			},
-			"selectFormats": [
-				//{"name": "Plain text", "format": "text", "type": "text/plain"},
-				{"name": "SPARQL-XML", "format": "sparql", "type": "application/sparql-results+xml"},
-				{"name": "JSON", "format": "json", "type": "application/sparql-results+json"},
-                {"name": "HTML", "format": "html", "type": "text/html"}
-			],
-			"constructFormats": [
-				//{"name": "Plain text", "format": "text", "type": "text/plain"},
-				{"name": "RDF/XML", "format": "rdfxml", "type": "application/rdf+xml"},
-				{"name": "Turtle", "format": "turtle", "type": "application/turtle"}
-			]
-		},
-		"endpoints": [	
-			{"name": "Local LMF", "uri": _SERVER_URL+"sparql/select"},
-			{"name": "LMF Showcase", "uri": "http://labs.newmedialab.at/RedBull/sparql/select", queries: [
-				{"name": "Sample Query 1", "description": "Return all media resources.", "query": sampleQuery1}
-			]}
-        ]
-	}
-	var flintEd = new FlintEditor("flint-test", "sparql/images", flintConfig);
-});
\ 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/editor/sparql/init-openuplabs.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-openuplabs.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-openuplabs.js
deleted file mode 100644
index 4c771e8..0000000
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-openuplabs.js
+++ /dev/null
@@ -1,84 +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.
- */
-$(document).ready(function() {
-	var sampleQuery1 = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\nPREFIX frbr: <http://purl.org/vocab/frbr/core#>\nPREFIX dct: <http://purl.org/dc/terms/>\n\nSELECT ?work ?date ?title WHERE {\n\t?work a frbr:Work .\n\t?work dct:title ?title .\n\t?work dct:created ?date .\n\tFILTER (?date >= '2010-10-15'^^xsd:date)\n}\nORDER BY desc(?date)\nLIMIT 100";
-	
-	var sampleQuery2 = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n\nCONSTRUCT {?s ?p ?o}\nWHERE {\n\tGRAPH <http://www.legislation.gov.uk/id/uksi/2010/2581>\n\t{?s ?p ?o}\n}";
-	
-	var sampleQuery3 = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\nPREFIX gzt: <http://www.gazettes-online.co.uk/ontology#>\n\nSELECT ?n WHERE {\n\t?n a gzt:Notice .\n\t?n gzt:hasPublicationDate ?d .\n\tFILTER (?d >= '2010-09-01'^^xsd:date)\n}\nORDER BY ?d\nLIMIT 100";
-	
-	var flintConfig = {
-		"interface": {
-			"toolbar": true,
-			"menu": true
-		},
-		"namespaces": [
-			{"name": "Friend of a friend", "prefix": "foaf", "uri": "http://xmlns.com/foaf/0.1/"},
-			{"name": "XML schema", "prefix": "xsd", "uri": "http://www.w3.org/2001/XMLSchema#"},
-			{"name": "SIOC", "prefix": "sioc", "uri": "http://rdfs.org/sioc/ns#"},
-			{"name": "Resource Description Framework", "prefix": "rdf", "uri": "http://www.w3.org/1999/02/22-rdf-syntax-ns#"},
-			{"name": "Resource Description Framework schema", "prefix": "rdfs", "uri": "http://www.w3.org/2000/01/rdf-schema#"},
-			{"name": "Dublin Core", "prefix": "dc", "uri": "http://purl.org/dc/elements/1.1/"},
-			{"name": "Dublin Core terms", "prefix": "dct", "uri": "http://purl.org/dc/terms/"},
-			{"name": "Creative Commons", "prefix": "cc", "uri": "http://www.creativecommons.org/ns#"},
-			{"name": "Web Ontology Language", "prefix": "owl", "uri": "http://www.w3.org/2002/07/owl#"},
-			{"name": "Simple Knowledge Organisation System", "prefix": "skos", "uri": "http://www.w3.org/2004/02/skos/core#"},
-			{"name": "Geography", "prefix": "geo", "uri": "http://www.w3.org/2003/01/geo/wgs84_pos#"},
-			{"name": "Geonames", "prefix": "geonames", "uri": "http://www.geonames.org/ontology#"},
-   		        {"name": "DBPedia property", "prefix": "dbp", "uri": "http://dbpedia.org/property/"},
-		        {"name": "Open Provenance Model Vocabulary", "prefix": "opmv", "uri": "http://purl.org./net/opmv/ns#"},
-        	    {"name": "Functional Requirements for Bibliographic Records", "prefix": "frbr", "uri": "http://purl.org/vocab/frbr/core#"}
-
-		],
-		"defaultEndpointParameters": {
-			"queryParameters": {
-				"format": "output",
-				"query": "query"
-			},
-			"selectFormats": [
-				//{"name": "Plain text", "format": "text", "type": "text/plain"},
-				{"name": "SPARQL-XML", "format": "sparql", "type": "application/sparql-results+xml"},
-				{"name": "JSON", "format": "json", "type": "application/sparql-results+json"}
-			],
-			"constructFormats": [
-				//{"name": "Plain text", "format": "text", "type": "text/plain"},
-				{"name": "RDF/XML", "format": "rdfxml", "type": "application/rdf+xml"},
-				{"name": "Turtle", "format": "turtle", "type": "application/turtle"}
-			]
-		},
-		"endpoints": [	
-			{"name": "Local LMF", "uri": _SERVER_URL+"sparql/select"},
-            {"name": "Legislation",
-				"uri": "http://gov.tso.co.uk/legislation/sparql",
-				queries: [
-					{"name": "Sample Legislation Query 1", "description": "Select up to 100 pieces of legislation after a given date, with most recent first.", "query": sampleQuery1},
-					{"name": "Sample Legislation Query 2", "description": "The RDF description of each piece of legislation is stored in a separate named graph, so all of the RDF for the item can be retrieved with the following query.", "query": sampleQuery2}
-				]
-			},
-			{"name": "Gazettes", "uri": "http://gov.tso.co.uk/gazettes/sparql", queries: [
-				{"name": "Sample Gazettes Query 1", "description": "Select the first 100 notices after a given date.", "query": sampleQuery3}
-			]},
-			{"name": "Education", "uri": "http://gov.tso.co.uk/education/sparql"},
-			{"name": "Ordnance Survey", "uri": "http://os.services.tso.co.uk/geo/sparql"},
-			{"name": "Transport", "uri": "http://gov.tso.co.uk/transport/sparql"},
-			{"name": "COINS", "uri": "http://gov.tso.co.uk/coins/sparql"},
-			{"name": "Organograms", "uri": "http://reference.data.gov.uk/organograms/sparql"}
-		]
-	}
-	var flintEd = new FlintEditor("flint-test","/script/sparql/images", flintConfig);
-});
\ 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/editor/sparql/init-sparqlservice.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-sparqlservice.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-sparqlservice.js
deleted file mode 100644
index d31c413..0000000
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-sparqlservice.js
+++ /dev/null
@@ -1,101 +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.
- */
-$(document).ready(function(){
-		
-	var endpoint = document.URL;	
-	
-	addStylesheet("http://openuplabs.tso.co.uk/script/sparql/lib/codemirror.css");		
-	addStylesheet("http://openuplabs.tso.co.uk/script/sparql/css/sparqlcolors.css");
-	addStylesheet("http://openuplabs.tso.co.uk/script/sparql/css/docs.css");
-	jQuery.getScript("http://openuplabs.tso.co.uk/script/sparql/lib/codemirror.js", function() {
-		jQuery.getScript("http://openuplabs.tso.co.uk/script/sparql/sparqlmode_ll1.js", function () {
-			jQuery.getScript("http://openuplabs.tso.co.uk/script/sparql/flint-editor.js", function () {
-				init(endpoint);
-			});
-		});
-	});
-	
-});
-
-function init(endpoint) {
-	
-	var flintConfig = {
-		"interface": {
-			"toolbar": true,
-			"menu": true
-		},
-		"namespaces": [
-			{"name": "Friend of a friend", "prefix": "foaf", "uri": "http://xmlns.com/foaf/0.1/"},
-			{"name": "XML schema", "prefix": "xsd", "uri": "http://www.w3.org/2001/XMLSchema#"},
-			{"name": "SIOC", "prefix": "sioc", "uri": "http://rdfs.org/sioc/ns#"},
-			{"name": "Resource Description Framework", "prefix": "rdf", "uri": "http://www.w3.org/1999/02/22-rdf-syntax-ns#"},
-			{"name": "Resource Description Framework schema", "prefix": "rdfs", "uri": "http://www.w3.org/2000/01/rdf-schema#"},
-			{"name": "Dublin Core", "prefix": "dc", "uri": "http://purl.org/dc/elements/1.1/"},
-			{"name": "Dublin Core terms", "prefix": "dct", "uri": "http://purl.org/dc/terms/"},
-			{"name": "Creative Commons", "prefix": "cc", "uri": "http://www.creativecommons.org/ns#"},
-			{"name": "Web Ontology Language", "prefix": "owl", "uri": "http://www.w3.org/2002/07/owl#"},
-			{"name": "Simple Knowledge Organisation System", "prefix": "skos", "uri": "http://www.w3.org/2004/02/skos/core#"},
-			{"name": "Geography", "prefix": "geo", "uri": "http://www.w3.org/2003/01/geo/wgs84_pos#"},
-			{"name": "Geonames", "prefix": "geonames", "uri": "http://www.geonames.org/ontology#"},
-   		        {"name": "DBPedia property", "prefix": "dbp", "uri": "http://dbpedia.org/property/"},
-		        {"name": "Open Provenance Model Vocabulary", "prefix": "opmv", "uri": "http://purl.org./net/opmv/ns#"},
-        	    {"name": "Functional Requirements for Bibliographic Records", "prefix": "frbr", "uri": "http://purl.org/vocab/frbr/core#"}
-
-		],
-		"defaultEndpointParameters": {
-			"queryParameters": {
-				"format": "output",
-				"query": "query"
-			},
-			"selectFormats": [
-				{"name": "Plain text", "format": "text", "type": "text/plain"},
-				{"name": "SPARQL-XML", "format": "sparql", "type": "application/sparql-results+xml"},
-				{"name": "JSON", "format": "json", "type": "application/sparql-results+json"}
-			],
-			"constructFormats": [
-				{"name": "Plain text", "format": "text", "type": "text/plain"},
-				{"name": "RDF/XML", "format": "rdfxml", "type": "application/rdf+xml"},
-				{"name": "Turtle", "format": "turtle", "type": "application/turtle"}
-			],			
-		},
-		"endpoints": [	
-			{"name": document.title,
-				"uri": endpoint,				
-			}
-		]
-	}
-	
-	// add Flint button
-	$('#description').after('<a href="" id="flint-button">Query endpoint with Flint SPARQL Editor</a>');	
-	
-	$('#flint-button').click(function(e) {
-		e.preventDefault();
-		$('#flint-button').after('<div style="display:none; width: 950px" id="flint-test"></div>');
-		$('#flint-button').remove();
-		var flintEd = new FlintEditor("flint-test","http://openuplabs.tso.co.uk/script/sparql/images", flintConfig);
-		$('#flint-test').show();
-	});
-	
-}
-
-function addStylesheet(url) {
-	var css = document.createElement( 'link' );
-	css.href = url;
-	css.rel= "stylesheet";
-	$('head').append( css );
-}
\ No newline at end of file