Skip to content

Commit

Permalink
There are arbitrary values that cannot work with if
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda committed Jan 15, 2025
1 parent 0581c0c commit 662ea1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyiron_ontology/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_triples(data, EX):
graph.add((label, RDFS.label, Literal(full_key)))
if d.get("uri", None) is not None:
graph.add((label, RDF.type, d["uri"]))
if d.get("value", None):
if d.get("value", None) is not None:
graph.add((label, RDF.value, Literal(d["value"])))
graph.add((label, EX[io_[:-1] + "Of"], EX[data["label"]]))
if d.get("units", None) is not None:
Expand Down

0 comments on commit 662ea1a

Please sign in to comment.