Metadata-Version: 2.1
Name: mkwikidata
Version: 0.7
Summary: Utility functions for working with Wikidata
Home-page: https://github.com/maxim75/mkwikidata
License: UNKNOWN
Keywords: sparql wikidata
Author: Maksym Kozlenko
Author-email: max@kozlenko.info
Description-Content-Type: text/x-rst
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: requests >=2.25.1

############
mkwikidata
############

Run SPARQL queries on Wikidata or other services

.. code:: python

        query = """
            SELECT ?unicode_charater
            WHERE 
            {
            wd:Q44 wdt:P487 ?unicode_charater.
            }
        """
        result = mkwikidata.run_query(query)
        result["results"]["bindings"][0]["unicode_charater"]["value"] # "🍺"
