SparqlWorkspaceQueryWindow

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

Constructor

new SparqlWorkspaceQueryWindow(sparqlProvider, configSparqlWidget)

Creates a SPARQL query window.

Parameters:
NameTypeDescription
sparqlProviderSparqlEndpointResponseProvider

The 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

SparqlWorkspaceQueryWindow

Methods

getBitemporalTimestampsByIndex(d) → {Object|null}

Given the index of a node, find the bitemporal timestamps that that link to it (with the properties AbstractFeatureWithLifespan.validFrom and AbstractFeatureWithLifespan.validTo) and return them as an object of Dates

Parameters:
NameTypeDescription
dnumber

the index of the node

Returns:

return the object that represents the datum of a node

Type: 
Object | null

getScenarioLayerNameByIndex(d) → {string|null}

Given the index of a node (of type Version or VersionTransition) and a layerManager, find the first Scenario that links to it and return the first layer that matches the layer.name of the Scenario's localname.

Parameters:
NameTypeDescription
dnumber

the index of the Version or VersionTransition node

Returns:

return the name of a matching geometryLayer

Type: 
string | null

getScenarioLayerNameByUri(uri) → {string|null}

Given the uri of a node (of type Version or VersionTransition) and a layerManager, find the first Scenario that links to it and return the first layer that matches the layer.name of the Scenario's localname.

Parameters:
NameTypeDescription
uristring

the uri of the Version or VersionTransition node

Returns:

return the a matching geometryLayer name

Type: 
string | null

getTransactionChain(id) → {Array.<Array.<string>>}

Parameters:
NameTypeDescription
idstring

an identifier

Returns:
  • transaction chain
Type: 
Array.<Array.<string>>

getVersionScenarioByIndex(d) → {object|null}

Given the index of a node (of type Version), return the node of the first Scenario links to it using Scenario.versionMember.

Parameters:
NameTypeDescription
dnumber

the index of the Version node

Returns:

return the object that represents the datum of a Scenario

Type: 
object | null

getVersionScenarioByUri(uri) → {object|null}

Given the uri of a node, return the node of the first Scenario links to it using Scenario.versionMember. The uri should belong to a node of type Version.

Parameters:
NameTypeDescription
uristring

the URI of the Version node

Returns:

return the object that represents the datum of a Scenario

Type: 
object | null

getVersionTransitionScenarioByIndex(d) → {object|null}

Given the index of a node (of type VersionTransition), return the node of the first Scenario links to it using Scenario.versionTransitionMember.

Parameters:
NameTypeDescription
dnumber

the index of the Version node

Returns:

return the object that represents the datum of a Scenario

Type: 
object | null

getVersionTransitionScenarioByUri(uri) → {object|null}

Given the uri of a node, return the node of the first Scenario links to it using Scenario.versionTransitionMember. The uri should belong to a node of type VersionTransition.

Parameters:
NameTypeDescription
uristring

the URI of the Version node

Returns:

return the object that represents the datum of a Scenario

Type: 
object | null

transactionChainQuery(gml_id) → {string}

Get the CityGML 3.0 transaction chain query for as a string

Parameters:
NameTypeDescription
gml_idstring

a gml_id identifier linked to a feature

Returns:
  • query plain text
Type: 
string