maphub / maphub-portal

An online application for exploring and annotating digitized, high-resolution historic maps.
maphub.github.com
Apache License 2.0
39 stars 11 forks source link

Implement DBPedia lookup service #11

Closed behas closed 12 years ago

behas commented 12 years ago

Implement a lookup service adapter that finds DBPedia URIs for some given annotation text.

Further details are here: http://wiki.dbpedia.org/spotlight/usersmanual?v=i0m

behas commented 12 years ago

Implemented via http://wikipedia-miner.cms.waikato.ac.nz/

Abstracts/descriptions still need to be fetched via DBPedia's JSON(?) API:

e.g., http://dbpedia.org/data/Chile.json

"http://dbpedia.org/ontology/abstract" is the key; we only need the english abstract.

behas commented 12 years ago

A standalone installation of WikipediaMiner is now available at: http://samos.mminf.univie.ac.at:8080/wikipediaminer/

Please adapt the request URI accordingly.

keithnewman14 commented 12 years ago

Fixed the issue with 2 different implementations:

  1. Users SPARQL to directly query the dbpedia database, then outputs a JSON file
  2. Uses http://dbpedia.org/ontology/abstract to select abstract from within the page's JSON file

On my machine, the SPARQL method worked significantly faster. I commented out the other method just in case.

Cut off text after 295 characters and added "(...)" to the end to control text length.