object_property(Object, Property)
Enumerates, by backtracking, the properties associated with the defined objects.
object_property(?object_identifier, ?object_property)
type_error(object_identifier, Object)
domain_error(object_property, Property)
| ?- object_property(list, Property).