Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PolyIn

PolyIn, mysteriously named for historical reasons, offers access to the polyPod's internal triplestore through an API that follows the RDFJS specification.

To create RDF terms that can be passed to PolyIn, use Pod.dataFactory. Please note that blank nodes, variables, or graphs other than the default graph are not reliably supported across all platforms and therefore best avoided.

see

PolyOut for storing larger amounts of data.

see

Triplestore for an experimental, more adequately named, replacement for PolyIn.

Hierarchy

  • PolyIn

Index

Methods

  • add(quad: Quad): Promise<void>
  • Adds a quad.

    Parameters

    • quad: Quad

      The quad to store.

    Returns Promise<void>

  • delete(quad: Quad): Promise<void>
  • Deletes a quad.

    Parameters

    • quad: Quad

      The quad to delete.

    Returns Promise<void>

  • has(quad: Quad): Promise<boolean>
  • Checks whether a specific quad has been stored.

    Parameters

    • quad: Quad

      The quad to look for.

    Returns Promise<boolean>

    true if it exists, otherwise false.

  • match(matcher: Partial<Matcher>): Promise<Quad[]>
  • Queries for quads matching the given matcher.

    For each property specified in the matcher, the result set is narrowed to only contain quads that match it exactly.

    For example, the following query only returns quads with the subject IRI http://example.org:

    const results = await polyIn.match({
    subject: dataFactory.namedNode("http://example.org")
    })

    Parameters

    • matcher: Partial<Matcher>

      The matcher.

    Returns Promise<Quad[]>

    A list of quads that conform to the specified matcher.

Generated using TypeDoc