Skip to content

Class: function_definition

A named function over the elements of a schema. Its parameters are the slots of one class. The return value is a class, a type or an enum.

  • Canonical name: FunctionDefinition
  • Names in code: FunctionDefinition (Scala, TypeScript, Python, Java, Rust, GraphQL)
  • URI: fno:Function (https://w3id.org/function/ontology#Function)
  • Parent: element
  • See also: https://fno.io/spec/
  • Subsets: FunctionalProfile
  • errors · list of class_definition (reference)

    Classes describing the ways in which the function can fail.

  • parameters · class_definition (reference)

    The class whose slots are the parameters of the function, in slot order.

  • returns · element (reference)

    What the function returns when it succeeds, as a class, a type or an enum.

  • name (identifier) · string · required

    the unique name of the element within the context of the schema. Name is combined with the default prefix to form the globally unique subject of the target class.

  • conforms_to · string

    An established standard to which the element conforms.

  • definition_uri · uriorcurie

    The native IRI (URI) of the element. This is always within the namespace of the containing schema. Contrast with the assigned IRI, via class_uri or slot_uri

  • implements · list of uriorcurie

    An element in another schema which this element conforms to. The referenced element is not imported into the schema for the implementing element. However, the referenced schema may be used to check conformance of the implementing element.

  • instantiates · list of uriorcurie

    An element in another schema which this element instantiates.

  • local_names · list of local_name

    Attributed labels of an element

  • id_prefixes · list of ncname

    An allowed list of prefixes for which identifiers must conform. The identifier of this class or slot must begin with the URIs referenced by this prefix

  • id_prefixes_are_closed · boolean

    If true, then the id_prefixes slot is treated as being closed, and any use of an id that does not have this prefix is considered a violation.

Used by Slot Cardinality
schema_definition functions 0..*