How to extract a special part of knowledge graph (connected component about a concept) offline?

Hello there,
Wishing you all a blissful new year.

I have decided to extract a part of DBpedia knowledge graph which is dedicated to a special concept; namely, a connected component that is related to a special concept like football (or any other concept). I would be so thankful if somebody helps me to do that using offline DBpedia.
It would be great if there were an API or even a guideline for using the offline DBpedia due to the mentioned task.

thank you in advance.