Function loadGraphFromSparql

  • Clears the given graph and loads a set of subontologies. Data from RDF helper graphs is loaded as well, such as virtual triples.

    Parameters

    • cy: Core

      the cytoscape graph to clear and to load the data into

    • graphs: string[]

      subontologies to load.

    • instances: boolean = false

      whether to load instances as well

    • virtual: boolean = false

      whether to select virtual triples from domain and range statements

    Returns Promise<void>

    nothing

    loadGraphFromSparql(cy,new Set(["meta","bb"]))