Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda committed Feb 4, 2025
1 parent adf0a87 commit f6a59ce
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pyiron_ontology/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ def get_triples(
node_label = workflow_namespace + data["label"]
graph.add((URIRef(node_label), RDF.type, PROV.Activity))
graph.add(
(URIRef(node_label), ontology.hasSourceFunction, URIRef(data["function"]["label"]))
(
URIRef(node_label),
ontology.hasSourceFunction,
URIRef(data["function"]["label"]),
)
)
if data["function"].get("uri", None) is not None:
graph.add((URIRef(node_label), RDF.type, URIRef(data["function"]["uri"])))
Expand Down Expand Up @@ -388,7 +392,11 @@ def parse_workflow(
for node in workflow:
data = get_inputs_and_outputs(node)
graph.add(
(workflow_label, ontology.hasNode, URIRef(workflow.label + "." + data["label"]))
(
workflow_label,
ontology.hasNode,
URIRef(workflow.label + "." + data["label"]),
)
)
graph += get_triples(
data=data,
Expand Down

0 comments on commit f6a59ce

Please sign in to comment.