Options
All
  • Public
  • Public/Protected
  • All
Menu

Used to express an ordered set of data. A List object is reified to a Subject (unlike in JSON-LD) and so it has an @id, which can be set by the user.

Note that this reification is only possible when using the @list keyword, and not if the active context specifies "@container": "@list" for a property, in which case the list itself is anonymous.

see

https://json-rql.org/interfaces/list.html

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.

Note that this reification is only possible when using the @list keyword, and not if the active context specifies "@container": "@list" for a property, in which case the list itself is anonymous.

see

https://json-rql.org/interfaces/list.html

Index

Properties

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 https://github.com/gsvarovsky/json-rql/search?l=JSON&q=context&type=Code

Optional @id

@id: Iri | Variable

The unique identity of the subject in the domain.

🚧 Subjects strictly need not be identified with an @id, but the data of such Subjects cannot be retrieved with a simple Describe query.

@list

@list: SubjectPropertyObject[] | {}

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

  • Property
  • Method

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