prorm API Reference
    Preparing search index...

    Class VirtuosoStore

    VirtuosoStore wraps Virtuoso's /sparql endpoint behind the NoSqlStore lifecycle.

    Implements

    Index
    name: "virtuoso" = 'virtuoso'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "fetch" = 'fetch'

    The client library being used

    sparqlPath: string

    SPARQL endpoint path (queries and updates share it).

    • Runs a SPARQL SELECT/CONSTRUCT query; returns the result bindings.

      Parameters

      • sparql: string

      Returns Promise<any[]>

    • Runs a SPARQL ASK query; returns the boolean answer.

      Parameters

      • sparql: string

      Returns Promise<boolean>

    • Runs a SPARQL UPDATE (INSERT/DELETE/DROP/...).

      Parameters

      • sparql: string

      Returns Promise<any>

    • Inserts triples via INSERT DATA { ... }. Accepts a triple string or array.

      Parameters

      • triples: string | string[]
      • Optionalgraph: string

      Returns Promise<any>

    • Drops a named graph, or all graphs when no graph is given.

      Parameters

      • Optionalgraph: string

      Returns Promise<any>