Giter Club home page Giter Club logo

dbpedia-widgets's People

Contributors

jcruz2us avatar jimkont avatar

Watchers

 avatar

dbpedia-widgets's Issues

Logging

Log data should allow to make statistics about

  • who (IP, anonymized IP, cookie?),
  • which resource,
  • when.

Anything else? Device, OS, browser, screen resolution, location, ...?

Proxy error when requesting DBpedia 'redirect resources'

Using the setup as provided in the master branch and calling http://localhost:8000/resource/http://dbpedia.org/resource/Lemmy_Kilmister resulted in an internal server error:

ERROR:tornado.application:Uncaught exception GET /resource/http://dbpedia.org/resource/Lemmy_Kilmister (::1)
HTTPRequest(protocol='http', host='localhost:8000', method='GET', uri='/resource/http://dbpedia.org/resource/Lemmy_Kilmister', version='HTTP/1.1', remote_ip='::1', headers={'Dnt': '1', 'Connection': 'keep-alive', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0', 'Accept-Encoding': 'gzip, deflate', 'Host': 'localhost:8000', 'Accept-Language': 'en', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'})
Traceback (most recent call last):
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/web.py", line 1349, in _when_complete
    if result.result() is not None:
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/concurrent.py", line 129, in result
    raise_exc_info(self.__exc_info)
  File "<string>", line 3, in raise_exc_info
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/stack_context.py", line 302, in wrapped
    ret = fn(*args, **kwargs)
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/gen.py", line 574, in inner
    self.set_result(key, result)
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/gen.py", line 500, in set_result
    self.run()
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/gen.py", line 529, in run
    yielded = self.gen.throw(*exc_info)
  File "server.py", line 19, in get
    result = yield self.fact_service.get_resource(uri)
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/gen.py", line 520, in run
    next = self.yield_point.get_result()
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/gen.py", line 409, in get_result
    return self.runner.pop_result(self.key).result()
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/concurrent.py", line 129, in result
    raise_exc_info(self.__exc_info)
  File "<string>", line 3, in raise_exc_info
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/stack_context.py", line 302, in wrapped
    ret = fn(*args, **kwargs)
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/gen.py", line 574, in inner
    self.set_result(key, result)
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/gen.py", line 500, in set_result
    self.run()
  File "/home/patrick/develop/virtualenvs/dbpedia-widgets/lib/python3.3/site-packages/tornado/gen.py", line 531, in run
    yielded = self.gen.send(next)
  File "/home/patrick/develop/javascript/gsoc/dbpedia-widgets/proxy/FactService.py", line 28, in get_resource
    "abstract": abstractNode[0],
IndexError: list index out of range

Seems that this is because the corresponding web resource redirects to http://dbpedia.org/resource/Lemmy. Calling http://localhost:8000/resource/http://dbpedia.org/resource/Lemmy also works.

Reformatting of birth and death data

Birth and death data should be presented in a more condensed way, e.g. Tupac_Shakur:
born in New York City, New York on June 16, 1971

Another feature would be to select the most relevant birthplace, i.e. town instead of state:
born in New York City on June 16, 1971

Timeout on DBpedia Live SPARQL endpoint

When switching the endpointURL to http://live.dbpedia.org/sparql (in DBpediaEndpoint.py) I get a timeout from tornado:

ERROR:tornado.access:500 GET /resource/http://dbpedia.org/resource/Barack_Obama (::1) 20007.24ms

The data is available on the endpoint, though queries take some time. Can the timeout be adjusted somewhere? Long lasting queries should be no problem with the cache.

More condensed layout

The layout currently takes to much space. A widget should be small that it finds a place on other peoples websites.

Did we define standard sizes?

setup backend for proxy

Use python/tornado to setup a web server that will serve as a proxy between DBpedia and the front-end.

Dates are one day off

Strange behavior of SPARQL endpoint with dates. Should make a workaround as long as that is not fixed.

generate JSON facts based on matching display configurations

The JSON generated by the proxy should pick and choose fields form the DBpedia data based on matching configurations.

The configurations used will be determined by the rdf:type's of a given resource.

Example:

Person - birthdate, birthplace, etc...

remove empty results

Some resources do not have all the fields from the configs. Remove empty results

dbpediaAutosuggest error

Fix the dbpediaAutosuggest error.

The dbpedia-autosuggest plugin needs to added to bower so the app can correctly load this dependency.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.