Jump to content

Abstract Wikipedia/ZObject/da

From Meta, a Wikimedia project coordination wiki
This page is a translated version of the page Abstract Wikipedia/ZObject and the translation is 47% complete.

ZObject is the basic data unit in Wikifunctions. A ZObject may be a string, list of ZObjects, or a JSON object. A persistent ZObject may only be a JSON object.

The keys of JSON object are “Z#K#”, where # are positive integers, their associated values are other ZObjects.

In the list below, each type of object or key is noted “Key/Label” for convenient reference in the documentation, where the Label may be translated and not necessarily in English.

  • Z1/ZObject
    • Z1K1/type (Z4/Type)
  • Z2/Persistent object
    • Z2K1/id (Z6/streng)
    • Z2K2/værdi (Z1/ZObject)
    • Z2K3/label (Z12/Flersproget tekst)
  • Z3/Key
    • Z3K1/værditype (Z4/Type)
    • Z3K2/key id (Z6/Streng)
    • Z3K3/label (Z12/Flersproget tekst)
  • Z4/Type
    • Z4K1/identity (Z4/Type)
    • Z4K2/keys (Z10/Liste (Z3/Key) )
    • Z4K3/validator (Z8/Funktion (...) )
  • Z5/Fejl
    • Z5K1/fejltype
  • Z6/Streng
    • Z6K1/string value (Z6/Streng)
  • Z7/Function call
    • Z7K1/funktion (Z8/Funktion)
    • Others based on Z8/Function
  • Z8/Funktion (generic)
    • K1/argumenter (Z10/Liste (Z17/Argument declaration) )
    • K2/return type (Z4/Type)
    • K3/tests (Z10/Liste (Z20/Test) )
    • K4/implementation (Z14/Implementation)
    • K5/identity (Z8/Funktion)
  • Z9/Reference
    • Z9K1/reference ID (Z6/Streng)
  • Z10/Liste (generic)
    • K1/head
    • K2/tail