irdf: Interactive RDF graph widgets in Jupyter
This package allows you to visualize your RDFlib graph objects in two ways: as triple tables or a network visualization.
In the triple tables, you can filter the triples by subject, predicate or object value.
In the network visualizations, you can see the relations between entities, and the literals associated with them.
Install
pip install irdf
Usage
import rdflib
import irdf
# Create a Graph
g = rdflib.Graph()
# Parse in an RDF file hosted on the Internet
g.parse('http://dbpedia.org/data/Vrije_Universiteit_Amsterdam.ttl')
# Get an interactive table
irdf.table(g)
# Get an interactive graph (filtering on certain properties)
# Click on nodes to see associated literals!
irdf.graph(g, p_filter=['/ontology/', 'depiction'], lang='en')
Wikidata
In Wikidata, the labels of properties are associated with special property entities. To get nice labels on edges in your visualization, you can specify a custom SPARQL property path to fetch them:
import rdflib, irdf
g = rdflib.Graph()
g.parse('https://www.wikidata.org/wiki/Special:EntityData/Q1065414.ttl')
label_path = '(^wikibase:directClaim)*/rdfs:label'
irdf.graph(g, p_filter=['/direct/'], lang='en', label_path=label_path)
Acknowledgements
This library is based on the great work of ipycytoscape and itables.
Metadata
Release files for irdf 1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| irdf-1.4.tar.gz | 5.2 kB | Without provenance | Details for irdf-1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| irdf-1.4-py3-none-any.whl | Python 3 | none | any | Details for irdf-1.4-py3-none-any.whl |
Total release size: 10.7 kB
Release files / irdf-1.4.tar.gz
| Download URL | irdf-1.4.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ec0966300c11200b1f74216fc55d91e4f1bef58eea507547c7187f351d96995
|
|
BLAKE2b-256 checksum How to use checksums |
59dc904bcd3915453ac88c79e6ddcd8c8f77fb1da2374df12177c2690026c8f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.0
|
Release files / irdf-1.4-py3-none-any.whl
| Download URL | irdf-1.4-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d5b454ae58eb8cec664e0d893a86fbdcc10aa8166875150f7e6424cb7ace767
|
|
BLAKE2b-256 checksum How to use checksums |
604fdbf9c7af3036a8f9e87f05492ddb1a9747cf5b18bd0a4ac12d426de04077
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.0
|
Security for irdf 1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.