Query DBpedia with SPARQLWrapper and Python

Опубликовано: 22 Март 2025
на канале: Patimir
8,553
123

This video talks about querying existing DBpedia knowledge graph with SPARQLWrapper python library. SPARQLWrapper query method is very intuitive and uses the same syntax as regular SPARQL queries which are only enclosed by triple quotes. The method can be used to simply return an iterator object which can be traversed to get all the values or even construct your own new graph with RDFLib.

Links:
Jupyter notebook: https://github.com/Patimir/yt-noteboo...
DBpedia query service: http://dbpedia.org/sparql/
DBpedia Barack Obama entity: http://dbpedia.org/page/Barack_Obama

Subscribe to the channel for more content, it is very much appreciated:    / @thepato181  
Thank you very much!