Options
All
  • Public
  • Public/Protected
  • All
Menu

A 'slot' in a List is a container for a list item. It is seen infrequently, because most list queries and updates use a shorthand in which the list item appears naked and the slot is implicit. Slots appear:

  • In list update notifications, in which the slot is always explicit.
  • Optionally, when moving items in a list.
see

m-ld lists specification

Hierarchy

Indexable

[key: string]: SubjectPropertyObject | Context | undefined

Specifies a graph edge, that is, a mapping from the @id of this subject to a set of one or more values.

see

m-ld lists specification

Index

json-rql Properties

Other Properties

json-rql Properties

Subject

Subject: SubjectConstructor = class implements Subject {[key: string]: Subject['any'];constructor(value: Subject) {Object.assign(this, value);}}

Constructor of subjects from subjects: used similarly to e.g. Number

Other Properties

Optional @context

@context: Context

A JSON-LD Context for the query. In an API, this will frequently be implicit. For example, using json-rql as the body of a POST to http://example.com/my-api/v1/person/query might have the implicit context of a Person (possibly found at http://example.com/my-api/v1/person).

see

examples

@id

@id: Iri

The identity of the slot

Optional @index

@index: undefined | number

The index of the item in the list

@item

@item: Value

The contained item of the slot

Optional @type

@type: Iri | Variable | Iri[] | Variable[]

The type of the subject, as an IRI or set of IRIs. (@type is actually shorthand for the RDF property rdf:type.)

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method
  • Protected method

Generated using TypeDoc. Delivered by Vercel. @m-ld/m-ld - v0.10.0 Source code licensed MIT. Privacy policy