Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implemented by

Index

Properties

dispatch

flush

flush: () => Quad[]

Process all queued deltas

note:

Be sure to assign a new buffer array before starting processing to prevent infinite loops.

Type declaration

    • (): Quad[]
    • Returns Quad[]

processDelta

processDelta: (delta: Quadruple[]) => Quad[]

Type declaration

queueDelta

queueDelta: (delta: Quadruple[], subjects: number[]) => void

Type declaration

    • (delta: Quadruple[], subjects: number[]): void
    • Parameters

      Returns void

Methods

execActionByIRI

Private getEntities

getEntity

  • getEntity(iri: NamedNode, opts?: RDFFetchOpts): Promise<Quad[]>
  • Gets an entity by its SomeNode.

    When data is already present for the SomeNode as a subject, the stored data is returned, otherwise the SomeNode will be fetched and processed.

    Parameters

    • iri: NamedNode

      The SomeNode of the resource

    • Optional opts: RDFFetchOpts

      The options for fetch-/processing the resource.

    Returns Promise<Quad[]>

    A promise with the resulting entity

getStatus

  • Retrieve the (network) status for a resource.

    This API is still unstable, but only the latest status should be taken into account. So if a resource was successfully fetched at some point, but a retry failed, the result will be failed.

    Some cases don't have proper HTTP status codes, but some (unstandardized) codes are very close.

    Special errors:

    • Resources which are still loading are given status 202 Accepted.
    • Resources where fetching timed out are given status 408 - Request Timeout.
    • Resources where fetching failed due to browser and OS errors are given status 499 - Client Closed Request.
    • Resources which haven't been requested and aren't scheduled to be requested currently have no status code.

    Parameters

    • iri: SomeNode

      The resource to get the status on.

    Returns EmptyRequestStatus | PendingRequestStatus | FulfilledRequestStatus

invalidate

isInvalid

registerTransformer

  • registerTransformer(processor: ResponseTransformer, mediaType: string | string[], acceptValue: number): void

save

  • Save a {graph} to {graph} (identity) or {opts.url}.

    When {graph} is a blank node {opts.url} must be given as well.

    Parameters

    Returns Promise<void>

setAcceptForHost

  • setAcceptForHost(origin: string, acceptValue: string): void
  • Overrides the Accept value for when a certain host doesn't respond well to multiple values.

    Parameters

    • origin: string

      The iri of the origin for the requests.

    • acceptValue: string

      The value to use for the Accept header.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc