pyiron_ontology.parser module
- pyiron_ontology.parser.export_to_dict(workflow: Node, with_values: bool = True, with_default: bool = True) dict[source]
- pyiron_ontology.parser.parse_workflow(workflow: ~pyiron_workflow.workflow.Workflow, with_values: bool = True, with_default: bool = True, graph: ~rdflib.graph.Graph | None = None, inherit_properties: bool = True, ontology=<class 'semantikon.ontology.SNS'>, append_missing_items: bool = True) Graph[source]
Generate RDF graph from a pyiron workflow object
- Parameters:
workflow (pyiron_workflow.workflow.Workflow) – workflow object
with_values (bool) – include channel values in the graph
with_default (bool) – include default values in the graph
graph (rdflib.Graph) – graph to add workflow information to
inherit_properties (bool) – inherit properties from the ontology
ontology (str) – ontology to use
append_missing_items (bool) – append missing items for restrictions to the ontology
- Returns:
graph containing workflow information
- Return type:
(rdflib.Graph)