rdflib
    Preparing search index...

    Function parse

    • Parse a string and put the result into the graph kb. Normal method is sync. Unfortunately jsdonld is currently written to need to be called async. If you are parsing JSON-LD and want to know when and whether it succeeded, you need to use the callback param.

      Parameters

      • str: string

        The input string to parse

      • kb: Formula

        The store to use

      • base: string

        The base URI to use

      • contentType: string = 'text/turtle'

        The MIME content type string for the input - defaults to text/turtle

      • Optionalcallback: CallbackFunc

        The callback to call when the data has been loaded

      Returns void