Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TripleStore error #32

Open
yuanjie-ai opened this issue Oct 17, 2022 · 1 comment
Open

TripleStore error #32

yuanjie-ai opened this issue Oct 17, 2022 · 1 comment

Comments

@yuanjie-ai
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants