sgvizler Class
The sgvizler javascript reveals properties (attributes) and methods
(functions) through the what in this documentation is known as the
class sgvizler
. This is also why there is both a module and a
class called sgvizler
. The other class which offers a public API
is the sgvizler.Query
class. All other classes in the
documentation are private.
Members which internally are "public", i.e., available to other
classes within the sgvizler package, are marked
@protected
. Members which are only available within its class are
marked @private
.
Item Index
Methods
- chartsAdd
- containerDraw
- containerDrawAll
- datatablesAdd
- defaultBaseURL
- defaultBaseURL
- defaultChartFunction
- defaultChartFunction
- defaultChartHeight
- defaultChartHeight
- defaultChartSpecificOption
- defaultChartWidth
- defaultChartWidth
- defaultDatatableFunction
- defaultDatatableFunction
- defaultEndpointOutputFormat
- defaultEndpointOutputFormat
- defaultEndpointURL
- defaultEndpointURL
- defaultFroms
- defaultFroms
- defaultLoglevel
- defaultQuery
- defaultQuery
- defaultValidatorURL
- defaultValidatorURL
- formDraw
- formReset
- formSubmit
- prefix
- prefix
Methods
chartsAdd
-
module
-
name
-
draw
-
dependencies
Create new Chart type.
Parameters:
-
module
StringThe module/namespace name to which the function belongs.
-
name
StringThe name of the function.
-
draw
FunctionThe function which will be the
draw()
function of the new chart type. -
dependencies
ObjectThe list of dependencies for the chart type: function name -- google package/javascript URL pairs.
Returns:
The chart type.
containerDraw
-
elementID
Draws the sgvizler-containers with the given element id.
Parameters:
-
elementID
String
containerDrawAll
()
public
Draws all sgvizler-containers on page.
datatablesAdd
-
module
-
name
-
func
-
dependencies
Create new Chart type.
Parameters:
Returns:
The datatable processing function.
defaultBaseURL
()
String
public
Get Base URL.
Returns:
Returns an empty string if base URL is not set.
defaultChartFunction
-
functionName
Set the name of the default chart function. The function should be availble in the global object, or registered with dependencies in Sgvizler's registry; see sgvizler.chartsAdd()
Parameters:
-
functionName
String
defaultChartHeight
-
height
Set the default height of chart containers.
Parameters:
-
height
Number
defaultChartSpecificOption
()
public
chainable
TODO
defaultChartWidth
-
width
Set the default width of chart containers.
Parameters:
-
width
Number
defaultDatatableFunction
-
functionName
Set the name of the default datatable preprocessing function. The function should be available in the global object, or registered with dependencies in Sgvizler's registry; see sgvizler.datatablesAdd()
Parameters:
-
functionName
String
defaultDatatableFunction
()
String
public
Get the name of the default datatable preprocessing function.
Returns:
defaultEndpointOutputFormat
-
format
Set default endpoint output format. Legal values are 'xml'
, 'json'
, 'jsonp'
.
Parameters:
-
format
String
defaultEndpointURL
-
endpointURL
Set default endpoint URL.
Parameters:
-
endpointURL
String
Example:
sgvizler.defaultEndpointURL('http://sparql.dbpedia.org');
sets the default endpoint to DBpedia's.
defaultFroms
-
froms
Set default list of FROMs to be included in SPARQL query.
Parameters:
-
froms
ArrayAn array of strings.
defaultFroms
()
Array
public
chainable
Get default list of FROMs set to be included in SPARQL query.
Returns:
An array of strings.
defaultLoglevel
()
These are the java ones, taken from the javadocs:
Permissible values are:
- SEVERE (highest value)
- WARNING
- INFO
- CONFIG
- FINE
- FINER
- FINEST (lowest value)
defaultQuery
-
queryString
Set default query string.
Parameters:
-
queryString
String
defaultValidatorURL
-
url
Set URL to online SPARQL query validator. Appending a SPARQL query to the end of this URL should give a page which validates the given query.
Parameters:
-
url
String
formDraw
-
[elementID=body]
Main method. Draws the form, gets possible URL parameters, populates form with data, and, if requested, sends a query and draws the chart in the chart container.
Parameters:
-
[elementID=body]
String optional
formReset
()
public
"Button method" used to clear the form and load default values. Does this by simply reloading the page without any URL parameters.
formSubmit
()
public
"Button method" used to submit the form.
prefix
-
prefix
-
namespace
Set the prefix for a namespace.