Permalink
Browse files

update to solr 1.10.2 and remove test html

  • Loading branch information...
1 parent 5848d51 commit bad62cf07ff330141c005ece0f349e3054e0a3a1 @tkurz committed Oct 4, 2013
Showing with 15 additions and 137 deletions.
  1. +15 −13 index.html
  2. +0 −119 index_test.html
  3. +0 −5 lib/jquery-1.9.1.min.js
View
@@ -21,16 +21,16 @@
<title>SKOSjs Thesaurus Manager</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="UTF-8">
- <!-- TODO -->
- <script type="text/javascript" src="lib/jquery-1.9.1.min.js"></script>
- <!--
+
+ <script type="text/javascript" src="lib/jquery-1.10.2.min.js"></script>
+
<script type="text/javascript" src="js/md5.js"></script>
<script type="text/javascript" src="js/sparql-client.js"></script>
<script type="text/javascript" src="js/skos-client.js"></script>
<script type="text/javascript" src="js/templates.js"></script>
<script type="text/javascript" src="skos.js"></script>
- -->
- <script type="text/javascript" src="bin/skosjs-0.3.0-SNAPSHOT.min.js"></script>
+
+ <!--<script type="text/javascript" src="bin/skosjs-0.3.0-SNAPSHOT.min.js"></script>-->
<script type="text/javascript" src="extension/simple/SimpleExtension.js"></script>
<script type="text/javascript" src="extension/simple/SettingsExtension.js"></script>
@@ -42,14 +42,14 @@
var SHOWCASE = true;
- var HOST = "http://localhost:8080/";
+ var HOST = "fuseki/ds/";
var OPTIONS = {
RDF_LINK : function(uri){showRDF(uri)},
BASE_URI : HOST+"resource/",
LANGUAGES_SUPPORTED : ["en","de"],
- ENDPOINT_SELECT : HOST+"sparql/select",
- ENDPOINT_UPDATE : HOST+"sparql/update",
+ ENDPOINT_SELECT : HOST+"query",
+ ENDPOINT_UPDATE : HOST+"update",
LANGUAGE : "en",
DEBUG : false
}
@@ -73,19 +73,21 @@
editor.properties.alter("scheme","http://purl.org/dc/terms/license",{title:"Licence String",type:"string"});
**/
+ editor.properties.add("graph","http://example.org/value/is_enabled",{title:"Is enabled",type:"boolean",editable:true,confirm:false},"right",0);
+
editor.init();
- /*if(SHOWCASE) {
+ if(SHOWCASE) {
editor.popup.info("Hi Testuser!","<p style='padding: 0 10px;'>We provide a backend that you can use for testing by default. If you want to try the editor with your custom backend, just set the SPARQL endpoints under Project/Settings</p>");
- }*/
+ }
});
function showRDF(uri){
window.open(HOST+"sparql/select?query="+encodeURIComponent("CONSTRUCT{?s ?p ?o}WHERE{?s ?p ?o.FILTER(?s==<"+uri+">)}")+"&format=html");
}
</script>
- <!--
+
<link type="text/css" rel="stylesheet" href="css/font-awesome.css">
<link type="text/css" rel="stylesheet" href="css/basic.css">
<link type="text/css" rel="stylesheet" href="css/tree.css">
@@ -94,8 +96,8 @@
<link type="text/css" rel="stylesheet" href="css/view.css">
<link type="text/css" rel="stylesheet" href="css/menu.css">
<link type="text/css" rel="stylesheet" href="css/popups.css">
- -->
- <link type="text/css" rel="stylesheet" href="bin/skosjs-0.3.0-SNAPSHOT.min.css">
+
+ <!--<link type="text/css" rel="stylesheet" href="bin/skosjs-0.3.0-SNAPSHOT.min.css">-->
</head>
<body>
View
@@ -1,119 +0,0 @@
-<!--
-
- Copyright (C) 2013 Salzburg Research.
-
- 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.
-
--->
-<!DOCTYPE html>
-<html>
-<head>
- <title>SKOSjs Thesaurus Manager</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta charset="UTF-8">
- <!-- TODO -->
- <script type="text/javascript" src="lib/jquery-1.9.1.min.js"></script>
-
- <script type="text/javascript" src="js/md5.js"></script>
- <script type="text/javascript" src="js/sparql-client.js"></script>
- <script type="text/javascript" src="js/skos-client.js"></script>
- <script type="text/javascript" src="js/templates.js"></script>
- <script type="text/javascript" src="skos.js"></script>
-
- <script type="text/javascript" src="extension/simple/SimpleExtension.js"></script>
- <script type="text/javascript" src="extension/simple/SettingsExtension.js"></script>
- <script type="text/javascript" src="extension/auth/AuthTokenExtension.js"></script>
- <script type="text/javascript" src="extension/lmf/ioservice.js"></script>
- <script type="text/javascript" src="extension/lmf/user.js"></script>
-
- <script type="text/javascript">
-
- var SHOWCASE = true;
-
- var HOST = "http://connectme.salzburgresearch.at/psmedia/";
-
- var OPTIONS = {
- RDF_LINK : function(uri){showRDF(uri)},
- BASE_URI : HOST+"resource/",
- LANGUAGES_SUPPORTED : ["en","de"],
- ENDPOINT_SELECT : HOST+"sparql/select",
- ENDPOINT_UPDATE : HOST+"sparql/update",
- LANGUAGE : "en",
- DEBUG : false
- }
-
- $(document).ready(function(){
-
- var editor = new SKOSEditor(OPTIONS);
-
- if(SHOWCASE) var extension = new SimpleExtension(editor);
-
- var settings = new SettingsExtension(editor);
-
- var authTokenExtension = new AuthTokenExtension(editor,"#login");
-
- var ioservice = new IOService(editor,HOST);
-
- var user_service = new UserService(editor, HOST);
-
- // to test adding and boolean values
- //editor.properties.remove("scheme","http://www.w3.org/2000/01/rdf-schema#label");
- //editor.properties.alter("scheme","http://purl.org/dc/terms/license",{title:"Licence String",type:"string"});
-
- editor.properties.add("graph","http://example.org/value/is_enabled",{title:"Is enabled",type:"boolean",editable:true,confirm:false},"right",0);
-
- editor.init();
-
- /*if(SHOWCASE) {
- editor.popup.info("Hi Testuser!","<p style='padding: 0 10px;'>We provide a backend that you can use for testing by default. If you want to try the editor with your custom backend, just set the SPARQL endpoints under Project/Settings</p>");
- }*/
- });
-
- function showRDF(uri){
- window.open(HOST+"sparql/select?query="+encodeURIComponent("CONSTRUCT{?s ?p ?o}WHERE{?s ?p ?o.FILTER(?s==<"+uri+">)}")+"&format=html");
- }
- </script>
-
- <link type="text/css" rel="stylesheet" href="css/font-awesome.css">
- <link type="text/css" rel="stylesheet" href="css/basic.css">
- <link type="text/css" rel="stylesheet" href="css/tree.css">
- <link type="text/css" rel="stylesheet" href="css/search.css">
- <link type="text/css" rel="stylesheet" href="css/editor.css">
- <link type="text/css" rel="stylesheet" href="css/view.css">
- <link type="text/css" rel="stylesheet" href="css/menu.css">
- <link type="text/css" rel="stylesheet" href="css/popups.css">
-
-</head>
-<body>
-<div id="header1">
- <div id="topnav">
- <div id="login"></div>
- </div>
-</div>
-<div id="header2"></div>
-<div id="header3">
- <div id="menu"></div>
- <div id="search"></div>
-</div>
-<div id="container2">
- <div id="container1">
- <div class="col" id="col1"></div>
- <div class="col" id="col2"></div>
- </div>
-</div>
-<div id="footer">a product of <a href="http://www.salzburgresearch.at/">Salzburg Research</a></div>
-</div>
-<div id="popup"></div>
-<div id="popup_background"></div>
-</body>
-</html>
Oops, something went wrong.

0 comments on commit bad62cf

Please sign in to comment.