scitacean.ontology.find_technique#
- scitacean.ontology.find_technique(label_or_iri)[source]#
Construct a Technique model from an ontology label or IRI.
The argument specifies a technique from the ExPaNDS experimental techniques ontology.
- Parameters:
label_or_iri (
str) –One of:
Technique label from the ExPaNDS ontology. The input is first converted to lowercase and leading and trailing whitespace is removed.
Technique IRI from the ExPaNDS ontology. Must exactly match an IRI in the ontology.
- Returns:
Technique– The loaded technique encoded as:Technique(name=label, pid=iri)
- Raises:
ValueError – If the label or IRI is not found in the ontology.