Hierarchy (View Summary)

Implements

  • IQuerySource

Constructors

Properties

context?: IActionContext
referenceValue: QuerySourceReference

The URL of RDF source of this source.

statusEvents: EventEmitter = ...

Accessors

Methods

  • Get the selector type that is supported by this source.

    Parameters

    • _context: IActionContext

    Returns Promise<FragmentSelectorShape>

  • Returns a (possibly lazy) stream that returns all bindings matching the operation.

    Passed operations MUST conform to the query shape exposed by the selector type returned from getSelectorShape. The given operation represents a Linked Data Fragments selector.

    The returned stream MUST expose the property 'metadata' of type MetadataBindings. The implementor is reponsible for handling cases where 'metadata' is being called without the stream being in flow-mode. This metadata object can become invalidated (see metadata.state), in which case the 'metadata' property must and will be updated.

    Parameters

    • _operation: Operation
    • _context: IActionContext
    • _options: undefined | IQueryBindingsOptions

    Returns BindingsStream

    The resulting bindings stream.

  • Returns a promise resolving to the ask response of the given operation.

    This method should only be supported if the selector type returned from getSelectorShape supports ask queries.

    Parameters

    • _operation: Ask
    • _context: IActionContext

    Returns Promise<boolean>

    The resulting ask reply.

  • Returns a (possibly lazy) stream that returns all quads matching the operation.

    This method should only be supported if the selector type returned from getSelectorShape supports construct queries.

    Parameters

    • _operation: Operation
    • _context: IActionContext

    Returns AsyncIterator<Quad>

    The resulting quads stream.

  • Returns a promise resolving when the given update operation succeeds.

    This method should only be supported if the selector type returned from getSelectorShape supports update queries.

    Parameters

    • _operation: Update
    • _context: IActionContext

    Returns Promise<void>

    The void response.