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. Hence the mess below with executeCallback.

    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

    • Optional callback: CallbackFunc

      The callback to call when the data has been loaded

    Returns void