SparqlVersioningQueryWindow

The SPARQL Versioning query window class which provides the user interface for querying a Versioning compatible SPARQL endpoint and displaying the endpoint response.

Constructor

new SparqlVersioningQueryWindow(sparqlProvider, configSparqlWidget)

Creates a SPARQL query window.

Parameters:
NameTypeDescription
sparqlProviderSparqlEndpointResponseProvider

The Versioning compatible SPARQL Endpoint Response Provider.

configSparqlWidgetobject

The sparqlModule view configuration.

Properties
NameTypeDescription
queriesobject

Query configurations

Properties
NameTypeDescription
titleobject

The query title

filepathobject

The path to the file which contains the query text

formatsobject

Configuration for which visualizations are allowed with this query. Should be an object of key, value pairs. The keys of these pairs should correspond with the cases in the updateDataView() function.

Classes

SparqlVersioningQueryWindow

Members

d3Graphs :Array.<D3GraphCanvas>

Contains the D3 graph views to display versioned RDF data.

Type:
  • Array.<D3GraphCanvas>

Methods

buildVersioningTable() → {HTMLTableElement}

Create a table element to display versioned graphs

Returns:

A table element

Type: 
HTMLTableElement

getNodesByIdGraphAndIdNode(graphId, id) → {object|null}

Given the uri of a node, return the node object.

Parameters:
NameTypeDescription
graphIdnumber

id of the graph

idnumber

of the node

Returns:

return

Type: 
object | null

updateDataView(response, view_type)

Update the DataView.

Parameters:
NameTypeDescription
responseobject

A JSON object returned by a SparqlEndpointResponseProvider.EVENT_ENDPOINT_RESPONSE_UPDATED event

view_typestring

The selected semantic data view type.