Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data couldn't be fetched from Nerd's web service for certain Id's #7

Open
tantikristanti opened this issue Jan 8, 2018 · 0 comments

Comments

@tantikristanti
Copy link
Owner

tantikristanti commented Jan 8, 2018

The class 'MainPreannotation' is a class to make a class prediction of a list of Wikidata Ids in a file 'data/csv/NewElements.csv'. There are some bugs that the appeared and stop the process of prediction because the data couldn't be fetched from Nerd's web service for certain Id's even though the result can be seen exist from 'http://nerd.huma-num.fr/nerd/service/kb/concept/Q[number]'. In order to test it, it has been created a 'NewElements.csv' file that contains Ids from Q1 until Q2000, the process of prediction will stop because it could't fetched 8 Ids : Q31, Q39, Q153, Q678, Q837, Q1007, Q1041, Q1697. The error will be something like

12:02:01.830 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 0][route: {}->http://nerd.huma-num.fr:80][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20]
java.lang.ClassCastException: org.json.simple.JSONObject cannot be cast to java.lang.String

This issue is to look at the cause of this error from Nerd-Kid side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant