streamlit-agraph icon indicating copy to clipboard operation
streamlit-agraph copied to clipboard

TripleStore error

Open yuanjie-ai opened this issue 2 years ago • 1 comments

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

yuanjie-ai avatar Oct 17 '22 05:10 yuanjie-ai

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

ChrisDelClea avatar Jan 12 '23 19:01 ChrisDelClea