Skip to content

Commit

Permalink
FIX (again) URL of /sparql service in "RDFViewer button for SPARQL co…
Browse files Browse the repository at this point in the history
…nstruct queries" #149
  • Loading branch information
jmvanel committed Apr 28, 2017
1 parent d0cea32 commit b3661fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ trait ToolsPage extends EnterButtons
val ( servicesURIPrefix, isDNS) = servicesURIPrefix2
println(s"servicesURIPrefix $servicesURIPrefix, is DNS $isDNS")
val servicesURIPrefixEncoded = URLEncoder.encode(servicesURIPrefix, "UTF-8")
val servicesURL = s"$toolURLprefix$servicesURIPrefixEncoded$sparqlServicePrefix"
val toolURLprefixEncoded = URLEncoder.encode(toolURLprefix, "UTF-8")
val servicesURL = s"$toolURLprefixEncoded$servicesURIPrefixEncoded$sparqlServicePrefix"
println(s"servicesURL $servicesURL")

<button id={buttonId}
Expand Down
5 changes: 4 additions & 1 deletion scala/forms_play/public/rdfviewer/rdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,10 @@ function loader(url, doLoad) {
.error(function() {
$.getJSON("http://rdf-translator.appspot.com/convert/n3/rdf-json/"+url, doLoad)
.error(function() {
alert("Could not load "+url);
$.getJSON("http://rdf-translator.appspot.com/convert/json-ld/rdf-json/"+url, doLoad)
.error(function() {
alert("Could not load "+url);
});
});
});
});
Expand Down

0 comments on commit b3661fb

Please sign in to comment.