Skip to content

Commit ceaed69

Browse files
committed
dbPedia lookup: temporarily replace PrefixSearch with KeywordSearch, but this is annoying.
Alas, the dbpedia lookup (completion) is still down , and the team (Magnus Knuth) did not provide a date for fixing . I consider moving to Wikidata, but Wikidata does no do completion; however it is probably never down, and it IS internationalized .
1 parent ac31a0f commit ceaed69

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scala/forms_play/public/javascripts/wikipedia.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ https://www.google.fr/search?q=ajax+example+scala.js
1414
*/
1515

1616
$(document).ready(function() {
17-
17+
var searchServiceURL = "http://lookup.dbpedia.org/api/search/KeywordSearch"
18+
// "http://lookup.dbpedia.org/api/search/PrefixSearch" : currently service is down
1819
var resultsCount = 15;
19-
var urlReqPrefix = "http://lookup.dbpedia.org/api/search.asmx/PrefixSearch?QueryClass=&MaxHits=" +
20-
resultsCount + "&QueryString=" ;
2120
var suggestionSearchCSSclass = 'sf-suggestion-search-dbpedia';
21+
2222
var topics = [];
2323

2424
$(".sf-standard-form").on('focus', '.hasLookup', function(event) {
@@ -72,9 +72,8 @@ $(document).ready(function() {
7272
}
7373
}
7474
}
75-
7675
$.ajax({
77-
url: "http://lookup.dbpedia.org/api/search/PrefixSearch",
76+
url: searchServiceURL,
7877
// data: { MaxHits: resultsCount, QueryClass: typeName, QueryString: request.term },
7978
data: { MaxHits: resultsCount, QueryString: request.term },
8079
dataType: "json"

0 commit comments

Comments
 (0)