Entity
- class Entity(*args, **kwargs)[source]
Bases:
Value
Abstract base class for entities.
- template_class
alias of
EntityTemplate
- variable_class
alias of
EntityVariable
- classmethod check(arg: Any, function: Callable[[...], Any] | str | None = None, name: str | None = None, position: int | None = None) Self [source]
Coerces arg into an instance of this class.
If arg cannot be coerced, raises an error.
- Parameters:
arg – Value.
function – Function or function name.
name – Argument name.
position – Argument position.
- Returns:
Object.
- class EntityTemplate(*args, **kwargs)[source]
Bases:
ValueTemplate
Abstract base class for entity templates.
- property iri: IRI_Template | IRI_Variable | IRI
The iri of entity template.
- get_iri() IRI_Template | IRI_Variable | IRI [source]
Gets the iri of entity template.
- Returns:
IRI, IRI template, or IRI variable.