- Home
- News
- OSF
- conStruct
- structWSF
- Download
- Installation Guide
- Overview
- Architecture
- Datasets & Access
- Endpoints Access
- structXML
- Web Services Tutorial
- Individual WS Documentation
- WS: Auth Registrar: Access
- WS: Auth Registrar: WS
- WS: Auth: Lister
- WS: Auth: Validator
- WS: Ontology: Create
- WS: Dataset: Create
- WS: Dataset: Read
- WS: Dataset: Update
- WS: Dataset: Delete
- WS: CRUD: Create
- WS: CRUD: Read
- WS: CRUD: Update
- WS: CRUD: Delete
- WS: Search
- WS: Browse
- WS: Converter: irJSON
- WS: SPARQL
- WS: Converter: BibTeX
- WS: Converter: TSV
- Resources
- sComponent
- irON
- Developers
sBarChart Semantic Component
Contents |
Introduction
The sBarChart is a component that displays record (numeric) attributes on a bar chart. It is used to display the values of different attributes of a record description so that users can easily compare the values of these comparable attributes.
Each bar on the graph is the value of a single attribute describing the target record description.
Important Predicates
No specific predicates are important for the bar chart control. Only the targetAttributes predicate is the important one. Each use should describe the target record, and it should have a numeric value.
The bar chart is really used to display numeric values of target attributes of a given target record. No other particular relationship is needed between the target attributes; this is up to the discretion of the user of the component.
Styles
| Style Name | Description |
| sBarChart | Style for the main sBarChart component |
AS3 Usage Examples
/** Create a resultset object instance from the input structXML data */
var resultset:Resultset = new Resultset(XML(inputData));
var resultset:Resultset = new Resultset(XML(inputData));
/** Create the sBarChart component*/
var semanticBarChart:sBarChart = new sBarChart ();
/** Target type to focus on at load time */
var targetAttributes:Array = ["http://purl.org/ontology/muni#indicator_1","http://purl.org/ontology/muni#indicator_2",
"http://purl.org/ontology/muni#indicator_3"];
/** Create the schema */
var schema:Schema = new Schema();
schema.loadSchema("http://schema.file.url");
/** Initialize the semantic control */
semanticBarChart.percentWidth = 100;
semanticBarChart.percentHeight = 100;
semanticBarChart.semanticDataProvider = resultset;
semanticBarChart.targetAttributes= targetAttributes;
semanticBarChart.schema= schema;
/** Add the sBarChartto the main application */
this.addChild(semanticBarChart);
MXML Usage Examples
<sBarChart semanticDataProvider="{semanticDataProvider}"
targetAttributes="{targetAttributes}"
schema="{schema}" />
targetAttributes="{targetAttributes}"
schema="{schema}" />
In this example, we assume that the {semanticDataProvider} variable is a Resultset, where the record description is defined, accessible at the creation time of the sBarChart. Target attributes are the attributes to focus on at load time. The schema is the conceptual structure to load in the Relation Browser.
Related Libraries
This tool is based on the Axiis Flex project. It has been enhanced for some special purposes of the Semantic Component, but the basis of this component is based on the Axiis framework.
This project is itself related to the Degrafa visualization framework.