demo
Project description
VizKG
VizKG is a Python library for Visualizing SPARQL Query Results over Knowledge Graphs.
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
Installation
Use the package manager pip to install VizKG.
pip install myKGlib
Usage
import myKGlib.vizkg as VizKG
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 = VizKG(sparql_query=sparql_query, sparql_service_url=sparql_service_url, chart='imageGrid')
chart.plot()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
myKGlib-0.0.0.9.tar.gz
(16.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
myKGlib-0.0.0.9-py3-none-any.whl
(29.0 kB
view details)
File details
Details for the file myKGlib-0.0.0.9.tar.gz.
File metadata
- Download URL: myKGlib-0.0.0.9.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc1d0b59b3abe8f18120b46700c1e57abfa87507b760fc9e6c2138748d33b9fd
|
|
| MD5 |
45fa1ae7f910d5f820fe3ebe30d44924
|
|
| BLAKE2b-256 |
5d0e5cf19b3cf54acaa47fc53a074add83e0fb3d5795ee273bf8155b100fb882
|
File details
Details for the file myKGlib-0.0.0.9-py3-none-any.whl.
File metadata
- Download URL: myKGlib-0.0.0.9-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2268e5a64b5d83c9967dafcf78684fdb404cb187e266f45cb6c0f62137f041a4
|
|
| MD5 |
3e8cf7fd1f7832f013ce9d7ce301bea6
|
|
| BLAKE2b-256 |
74376a4e3756d0444ad82cdca856afc66f1c6616c28362f5e575e72394bc6b74
|