Methods

  • Create a dump of the store (serialize)

    Parameters

    • mimetype: RDFMimetype = RDFMimetype.NQUADS

      describes the RDF serialization. Supported options are text/turtle, application/trig, application/n-triples, application/n-quads and application/rdf+xml

    • OptionalgraphURI: string

      optianally describes the URI of the named graph to dump

    Returns Promise<WorkerResult>

  • Load triples into the store

    Parameters

    • triples: string

      a string containing the RDF triples in a serialization according to the provided mimetype

    • mimetype: RDFMimetype

      describes the RDF serialization. Supported options are text/turtle, application/trig, application/n-triples, application/n-quads and application/rdf+xml

    • OptionalbaseURI: string

      optionally describes the base namespace

    • OptionalgraphURI: string

      optionally describes a named graph in which the triples should be loaded. Default is the main graph

    Returns Promise<WorkerResult>