Metadata-Version: 2.1
Name: VizKG
Version: 0.0.3
Summary: Visualization library for SPARQL query results
Home-page: UNKNOWN
Author: Hana
License: MIT
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: pandas (>=1.0.1)
Requires-Dist: SPARQLWrapper
Requires-Dist: matplotlib
Requires-Dist: seaborn
Requires-Dist: imageio
Requires-Dist: plotly (==4.14.3)
Requires-Dist: networkx
Requires-Dist: folium
Requires-Dist: anytree
Requires-Dist: wordcloud
Requires-Dist: IPython

# VizKG
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/fadirra/vizkg/blob/development/example/VizKG.ipynb)

Visualization wrapper for SPARQL query results

## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install VizKG.

```bash
pip install VizKG
```

## Usage
```python
import VizKG.visualize as vkg

sparql_query = """
    #images of cat
    #defaultView:ImageGrid
    SELECT ?item ?itemLabel ?pic
    WHERE
    {
    ?item wdt:P31 wd:Q146 .
    ?item wdt:P18 ?pic
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
    }
    """
#to query another endpoint, change the URL for the service and the query
sparql_service_url = "https://query.wikidata.org/sparql"
chart = vkg(sparql_query=sparql_query, sparql_service_url=sparql_service_url, chart='imageGrid')
chart.plot()
```

Supported visualizations so far:
- Table
- ImageGrid
- Map
- Tree
- Timeline
- Dimensions
- Graph
- WordCloud
- Tree Map
- SunBurst Chart
- Line Chart
- Bar Chart
- Area Chart
- StackedArea Chart
- Histogram
- Density Plot
- Box Plot
- Violin Plot
- Bubble Chart
- Scatter Chart
- HeatMap
- Radar Chart



