instances
Description
instances returns all the instances of the type(s) specified. It should be used in combination with count or get_properties_from_instances. Like other declarations, an optional where clause is also supported.
Example: Ontology and Role
instances(Person, AccountHolder)This will give you all instances that are of the type Person and have the role AccountHolder.
Example: Ontology and Where-Clause
instances(Person where self.first_name = 'Thorben')This will give you all instances that are of the type Person that have the first_name Thorben.
Last updated
Was this helpful?
