PolMine / dbpedia

R Wrapper for Corpus Annotation with DBpedia Spotlight
3 stars 0 forks source link

`get_dbpedia_uris()` fails if argument `retry` is logical #49

Open ChristophLeonhardt opened 7 months ago

ChristophLeonhardt commented 7 months ago

For dbpedia v0.1.2.9005 get_dbpedia_uris() will fail if the argument retry is logical (which it is by default). Then this line will result in an error because the object request is not found:

https://github.com/PolMine/dbpedia/blob/e3f3c41006a7d928b6eb44d4bf25b523e3f8f98e/R/dbpedia.R#L392

If retry is an integer value, then it will work. Using retry = 0L turns the functionality off which should be in line with the default behavior in prior versions.