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

System returned from get_system_from_sample does not have a graph variable in it #89

Closed
NinadBhat opened this issue Apr 17, 2024 · 0 comments · Fixed by #93
Closed

System returned from get_system_from_sample does not have a graph variable in it #89

NinadBhat opened this issue Apr 17, 2024 · 0 comments · Fixed by #93

Comments

@NinadBhat
Copy link
Contributor

I am retrieving system object using get_system_from_sample, I expected system.graph to return a ref to the Knowledge graph. However it returns None.

Code to reproduce

from atomrdf import System, KnowledgeGraph
# Create data file
kg = KnowledgeGraph()
struct_Mg =  System.create.element.Mg(graph=kg, repetitions=(10,10,10))

kg.write("Mg.ttl", format="ttl")


# Read file
kg_2 = KnowledgeGraph(graph_file="Mg.ttl")
system = kg_2.get_system_from_sample(kg_2.samples[0])

print(system.graph)

Versions
atomrdf: 0.4.4
pyscal3: 3.1.12

@srmnitc srmnitc mentioned this issue Apr 19, 2024
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

Successfully merging a pull request may close this issue.

1 participant