0.5.0
Parameter property
min range
label
height
width
args result set
charts properties
base URL
gradient start
horizontal
gradient end
max range
Can be used to mark UISPIN argument properties so that they are mapped against URL arguments.
parameter name
An optional label of the Map chart.
true
Abstract base class to group together the various kinds of officially supported charts elements. There are other element classes here but these are meant for internal use only.
true
Chart element
Map chart
Displays a world map with selected countries colored to reflect individual values. The map is driven by a SPARQL query that has the country codes as first column and the values as second column.
The query delivering the value for each country. This must be a SELECT query that has two result variables: the first is the country code (e.g. "de" for Germany" and the second is the numeric value.
true
FF0000
The start gradient encoded as hexadecimal number, e.g. FF0000 for red.
true
0000FF
The end gradient encoded as hexadecimal number, e.g. FF0000 for red.
true
label
world
t
height
width
0
resultSet
0
Uppercase string list aggregator step function
Uppercase string list
Creates a list of uppercase strings with no separator.
1
resultSet
gradientEnd
,
gradientStart
BEBEBE,
A (dynamic) Map, usually implements as Google Map. The map is driven by a SPARQL SELECT query delivering lat and long values, and (optionally) icons and links to resources. If links are provided then the summary resource view of the target resource will be shown in the popup windows.
Map
A SELECT query that defines the position and behavior of the markers on the map. The query must return the variables ?lat and ?long to contain the coordinate of the marker. Optionally, the variable ?link can point to a resource. If ?link is provided, the map will display a summary resource view for the resources. Finally, the variable ?icon can be returned to specify the icon to be used for the markers.
true
2
0
0
0
0
link
summary
max-width:400px; max-height:150px; overflow:hidden
display: none
link
link
resultSet
1
Prepare child nodes so that they can be cloned into pop-ups
0
id
1
0
link
i
5
i
1
link
3
");
var copy = dom.childNodes[1].cloneNode(true);
marker 4
.openInfoWindow(copy);
}); 6
, "click", function() {
var dom = document.getElementById("
2
9
GEvent.addListener(marker
0
,
2
map.addOverlay(marker
10
long
3
i
);
var options = {};
4
lat
1
var marker
6
7
var pos = new GLatLng(
0
i
7
i
11
);
12
resultSet
5
";
options = { icon:customIcon };
2
icon
1
var customIcon = new GIcon(G_DEFAULT_ICON);
customIcon.image = "
0
icon
= new GMarker(pos, options);
8
cent
3
13
zoom
5
);
map.setUIToDefault();
6
),
4
"));
map.setCenter(new GLatLng(
2
var map = new GMap2(document.getElementById("
0
text/javascript
px
height
px; height:
width
width:
resultSet
center
id
parameter properties
center
center
A string of the format "lat,long" defining the center of the map.
The height of the map in pixels.
zoom
zoom
13
true
The zoom level of the map.
The width of the map in pixels.
0
key
http://maps.google.com/maps?file=api&v=2&sensor=false&key=
GoogleMapsAPIKey
Bar chart
x,y
result
0
minRange
min
100
maxRange
max
1
0
horizontal
index
,
,
result
1
resultSet
Line separated label list aggregator step function
result
label
0
|
Line separated label list
result
label
|
0
Inv line separated label list aggregator step function
Inv line separated label list
horizontal
aggr
1
labels
0
1
index
:|
label
bvs
bhs
horizontal
height
width
0
resultSet
100
true
The maximum range of the axis.
A horizontal or vertical bar chart, displaying data derived from a SPARQL SELECT query.
The (optional) label of the chart.
The SELECT query delivering the values (first result variable) and the labels (second result variable). The values must be normalized to the range of 0-100.
Specifies whether the bars shall be laid out horizontal or vertical (default).
true
false
0
The minimum range on the axis.
Inserts a Google org chart depicting a hierarchy of nodes. The hierarchy is defined via a SPARQL SELECT result set - the first node of each row is the child resource, and the second node is the parent. Each node will be displayed using the ui:label function.
1
google.load('visualization', '1', {packages:['orgchart']});
0
0
text/javascript
https://www.google.com/jsapi
Org chart
1
')).
draw(data, {allowHtml: true});
}); 4
id
3
]);// Create and draw the visualization.
new google.visualization.OrgChart(document.getElementById('
2
1
5
0
,
1
resultSet
rowIndex
']
4
to
3
', '
2
from
1
['
0
from
to
rowIndex
resultSet
0
1
google.setOnLoadCallback(new function() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Name');
data.addColumn('string', 'Parent');
data.addRows([
0
0
id
A result set with two columns: the first is the child and the second the parent resource.
A pie chart based on the Google Image Charts API, driven by a SPARQL SELECT result set.
0
0
label
p3
height
width
result
1
resultSet
r
0
normalized
norm
resultSet
?0
?1
0
v
100
sum
v
resultSet
?0
?1
0
v
Pie chart
The SELECT query delivering the values (first result variable) and the labels (second result variable).
The (optional) label of the chart.
height
width
false
1
0
resultSet
,
0
0
|
(required if markers not present) defines the zoom level of the map, which determines the magnification level of the map. This parameter takes a numerical value corresponding to the zoom level of the region desired.
true
(required if markers not present) defines the center of the map, equidistant from all edges of the map. This parameter takes a location as either a comma-separated {latitude,longitude} pair (e.g. "40.714728,-73.998672") or a string address (e.g. "city hall, new york, ny") identifying a unique location on the face of the earth.
true
A map that is rendered into a static image (for easier printing).
Static map
A SPARQL SELECT query that delivers lat (column 0), long (column 1) to be used as markers on the map. Currently only the first row of this will be used for display, i.e. only one marker is supported.
t:
longCol
?0
?1
x
long
true
chp
chp
?0
chxr
chxr
true
result
lat
id-
chbh
chbh
index
a
The base URL including the ? at the end.
,
x
r
lat
latCol
long
minLat
maxLat
minLong
maxLong
2
2
Amp separated list
Amp separated list aggregator step function
0
&
args
0
chd
chd
The column to iterate over.
0
The SPR result set to iterate over.
Creates a list of data items in the Google Charts format.
data list
chld
chld
The result set to operate on.
http://maps.google.com/maps/api/staticmap?
cht
cht
?1
size
size
The size of the map.
x
chs
Chart size (for Google Charts).
chs
x
The resource to get the id for.
true
chxl
chxl
Implementation class for the various chart types that are mapped to Google Charts API by default. The arguments will be automatically translated into URL parameter lists using the delegate charts:URLParameterImg.
chco
chco
Google Chart img
true
true
chxt
chxt
chtm
chtm
chtt
chtt
Chart title of Google Charts.
chts
chts
true
chl
Chart labels (for Google Charts).
chl
http://chart.apis.google.com/chart?
The spr:Table to get a column index of.
baseURL
argString
0
sensor
sensor
The index of the column.
The height
0
The width
maptype
maptype
argName
=
object
id for resource
Generates a (unique) ID that can be used to identify nodes in a DOM tree from a given resource (?arg1).
x
format
format
The name of the result variable to get.
arg
Iterates over an SPR result set to find the maximum value of a given column.
max col value
The result set to operate on.
The index of the column.
markers
markers
Google static map img
The spr:Table to operate on. Must declare result variables ?lat and ?long.
min col value
Iterates over an SPR result set to find the minimum value of a given column.
URL parameter image
This class provides an infrastructure to set REST-style parameters from the arguments that have a charts:parameterName. Users just need to set the values for those arguments, e.g. as done by charts:PieChart.
find col
Finds a column with a given name.
wxh
Creates a string to encode width by height for various Google APIs, e.g. 440x220.
find center
Takes a Google Maps result set as argument and gets min and max values of lat and long properties.