ChrisDelClea / streamlit-agraph

A Streamlit Graph Vis
MIT License
398 stars 54 forks source link

TripleStore error #32

Open yuanjie-ai opened 2 years ago

yuanjie-ai commented 2 years ago

Currently not workin since update to agraph 2.0 - work in progress

from rdflib import Graph
from streamlit_agraph import TripleStore, agraph

graph = Graph()
graph.parse("http://www.w3.org/People/Berners-Lee/card")
store = TripleStore()

for subj, pred, obj in graph:
    store.add_triple(subj, pred, obj, "")

agraph(list(store.getNodes()), list(store.getEdges()), config)

image

ChrisDelClea commented 1 year ago

Thanks for that. I am aware and working on a fix. It's simply because the node id is already taken.