Ontology Matrix v. 0.9

With the ontology matrix it is possible to render semantic relations between elements. The system works like this:

Additionally to that, you can define semantic relations between keywords. These relations can be positive or negative, directed or not directed. In linguistic terms, this defines a causal or non-causal relation.

If you need more than one dimension, you can easily add, remove or rename them. For example, you'd like to define elements according to their location in space, add a dimension "space". If you want to define them also in a dimension called "time", add the dimension "time".

All the data is stored in a huge JSON-String in a form field. This makes it easy to send the data via regular POST or GET methods.

Here's the code:

<script>
window.addEvent('domready', function(){
	$('cont').makeOntology({
		verboseid: false,
		dataid: 'data', 
	});
});
</script>
	

Options are not necessary and are set to default values according to the example above. "dataid" is the id of the data-field (string), "verboseid" is the id of an optional verbose-div (string). If left blank, no verbose output will be written.

JSON Data can easily be provided with a php-Script like this:

<php
$_data = array(

	/* First Dimension */

	"Dimension 1" => array(

		/* Keywords on the background */

		"Keywords" => array(
		
			/* Word, Coordinates */
			
			array("Word 1", array(10,90)),
			array("Word 2", array(40,60)),
		),

		/* Elements to arrange */

		"Objects" => array(
		
			/* Word, Coordinates, Preview File */
			
			array("Movie 1", array(10,20),"prev.gif"),
			array("Movie 2", array(30,50),"prev.gif"),
		),
		
		/* Nodes */
		
		"Nodes" => 	array(
		
			/* From, To, Line-Style */
			
			array("Word 1", "Word 2", 1),
		),
	),
	"Dimension 2" => array(
		"Keywords" => array(
			array("Word 3", array(40,13)),
			array("Word 4", array(35,60)),
		),
		"Objects" => array(
			array("Movie 3", array(20,30),"prev.gif"),
			array("Movie 4", array(60,40),"prev.gif"),
		),
		"Nodes" => 	array(
			array("Word 3", "Word 4", 1),
		),
	)
);
echo (json_encode($_data));
?>
	

Download the example: ontology-cloud.zip

© uh.tr51.org / 2010

Canvas/Background Keywords (grey Fields) Objects Connections Verbose Output: