yaz/commit
fix reconciliation
author | Michiel Hildebrand |
---|---|
Fri Nov 4 13:13:32 2011 +0100 | |
committer | Michiel Hildebrand |
Fri Nov 4 13:13:32 2011 +0100 | |
commit | 81be7623882e62bdfa3716cd5806936575e6b7bf |
tree | 78a3e97309285be94f46e411b77b0ce2b56f8f33 |
parent | f8f90b4b25508bc36e668c04f664f81625768034 |
Diff style: patch stat
diff --git a/api/reconcile.pl b/api/reconcile.pl index a91aba7..492c3c2 100644 --- a/api/reconcile.pl +++ b/api/reconcile.pl @@ -216,6 +216,8 @@ concept_type(URI, Type) :- skos_desc(URI, Desc) :- ( rdf_has(URI, skos:scopeNote, Desc0) -> literal_text(Desc0, Desc) + ; rdf_has(URI, rdfs:comment, Desc0) + -> literal_text(Desc0, Desc) ; Desc = '' ). diff --git a/applications/yaz_garden.pl b/applications/yaz_garden.pl index 547dd00..5f76ad8 100644 --- a/applications/yaz_garden.pl +++ b/applications/yaz_garden.pl @@ -38,19 +38,24 @@ reconcile_source(gtaa, http_location_by_id(http_reconcile, Server), www_form_encode('[{"http://www.w3.org/2004/02/skos/core#inScheme":"http://data.beeldengeluid.nl/gtaa/GTAA"}]',Ps), atom_concat('&properties=',Ps,Params). -reconcile_source(cornetto, - 'Cornetto', +reconcile_source(wordnet, + 'WordNet', Server, - '&type=http://purl.org/vocabularies/cornetto/Synset') :- +'&type=http://www.w3.org/2006/03/wn/wn20/schema/Synset') :- http_location_by_id(http_reconcile, Server). +%reconcile_source(cornetto, +% 'Cornetto', +% Server, +%'&type=http://purl.org/vocabularies/cornetto/Synset') :- +% http_location_by_id(http_reconcile, Server). %reconcile_source(geonames, % 'Geonames', %'http://api.kasabi.com/api/reconciliation-api-geonames', % '&apikey=908177a484aa25f9b602d3eb76cf057d73e7aa39'). -reconcile_source(dbpedia, - 'DBPedia', -'http://api.kasabi.com/api/reconciliation-api-dbpedia-36', - '&apikey=908177a484aa25f9b602d3eb76cf057d73e7aa39'). +%reconcile_source(dbpedia, +% 'DBPedia', +%'http://api.kasabi.com/api/reconciliation-api-dbpedia-36', +% '&apikey=908177a484aa25f9b602d3eb76cf057d73e7aa39'). reconcile_source(freebase, 'Freebase', 'http://standard-reconcile.freebaseapps.com/reconcile', diff --git a/web/js/tagplayer/tagReconcile.js b/web/js/tagplayer/tagReconcile.js index 6b610b3..baad078 100644 --- a/web/js/tagplayer/tagReconcile.js +++ b/web/js/tagplayer/tagReconcile.js @@ -95,8 +95,9 @@ YUI.add('tag-reconcile', function(Y) { //build the query object for(index;index<last;index++) { - var tag = tags[index].tag; - queries[tag.value] = {query:tag.label,limit:limit}; + var tag = tags[index].tag, + label = tag.label ? tag.label : tag.value; + queries[tag.value] = {query:label,limit:limit}; }; var request = url+"&limit="+limit+"&queries="+Y.JSON.stringify(queries);