Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @rdfdev/collections

Index

Functions

arrayToList

  • arrayToList(arr: SomeTerm[], start: Node): [Quad[], Node]
  • Parameters

    • arr: SomeTerm[]
    • Optional start: Node

    Returns [Quad[], Node]

    An array with the first element the quads and the second the IRI of the list.

arrayToListQuads

  • arrayToListQuads(arr: SomeTerm[], start: Node): Quad[]

arrayToSeq

  • arrayToSeq(arr: SomeTerm[], start: Node): [Quad[], Node]
  • Parameters

    • arr: SomeTerm[]
    • Optional start: Node

    Returns [Quad[], Node]

    An array with the first element the quads and the second the IRI of the seq.

arrayToSeqQuads

  • arrayToSeqQuads(arr: SomeTerm[], iri: Node): Quad[]

firstQuadOfList

  • firstQuadOfList(store: Store, listEntry: Node): Quad | undefined

firstQuadOfSeq

  • firstQuadOfSeq(store: Store, seqIRI: Node): Quad | undefined

firstTermOfList

  • firstTermOfList(store: Store, listEntry: Node): SomeTerm | undefined

firstTermOfSeq

  • firstTermOfSeq(store: Store, seqIRI: Node): SomeTerm | undefined

lastQuadOfList

  • lastQuadOfList(store: Store, listEntry: Node): Quad | undefined

lastQuadOfSeq

  • lastQuadOfSeq(store: Store, seqIRI: Node): Quad | undefined

lastTermOfList

  • lastTermOfList(store: Store, listEntry: Node): SomeTerm | undefined

lastTermOfSeq

  • lastTermOfSeq(store: Store, seqIRI: Node): SomeTerm | undefined

listToArray

  • listToArray(store: Store, listEntry: Node): Term[]

orderedElementsOfList

  • orderedElementsOfList(store: Store, listEntry: Node): Quad[]

orderedQuadsOfSeq

  • orderedQuadsOfSeq(store: Store, seqIRI: Node): Quad[]

seqMemberToNumber

  • seqMemberToNumber(member: NamedNode | undefined): number
  • Parameters

    • member: NamedNode | undefined

    Returns number

    The value of the predicate or -1.

seqPush

  • seqPush(store: Store, seqIRI: Node, value: Term | Term[], method?: NamedNode): Quad[]
  • Parameters

    • store: Store
    • seqIRI: Node
    • value: Term | Term[]
    • Default value method: NamedNode = ld.replace

    Returns Quad[]

seqShift

  • seqShift(store: Store, seqIRI: Node, method?: NamedNode): Quad[]

seqToArray

  • seqToArray(store: Store, seqIRI: Node): Term[]

Generated using TypeDoc