How to build DBpedia locally and retrieve abstracts

Viewed 16

I want to search for a certain word in DBpedia and get an abstract (or the full text of an article) about that word.

For example,

query: Tokyo
result: Tokyo (/ˈtoʊkioʊ/;[7] Japanese: Tokyo, Tōkyō, [toːkʲoː] (listen)), officially the Tokyo Metropolis (Tokyo, Tōkyō) (listen)), officially the Tokyo Metropolis (Tokyo-to, Tōkyō-to), is the capital and largest city of Japan.[8] Formerly known as Edo ...
(cited from https://en.wikipedia.org/wiki/Tokyo)

I plan to use the obtained sentences in a program written in python. However, since I intend to send a large number of queries, I need to build DBpedia locally.
(I may be wrong as I am a beginner, but can this be accomplished by downloading a dump of DBpedia and doing searches in SQL, etc.?)

I would like to know the best way to achieve this.
It would be more helpful if your answer is specific.

0 Answers
Related