« Return to Thread: Semantic Schema

Semantic Schema

by Sanasaca :: Rate this Message:

Reply to Author | View in Thread

Semantic Schema

Semantic Schema


XML Syntax:
Following is an example XML definitions file (sample purposes only, not normative with the DataModel).

<Schema>
	<Types>
		<Type name="Context" nid="N" hid="N">
			<Property name="name" />
			<Type name="Category" nid="N" hid="N">
				...
			</Type>
		</Type>
		<Type name="Statement" nid="..." hid="...">
	</Types>
	<Graph>
		<Node type="Context" name="World" nid="N" hid="N">
			<Node type="Category" name="Greetings" nid="" hid="">> ... <Node>
		</Node>
	</Graph>
	<Associations>
		<Reference type="Statement" nid="N" hid="N">
			<Role name="subject" node="NID:HID" />
			<Role name="verb" node="NID:HID" />
			<Role name="object" node="NID:HID" />
		</Reference>
	</Associations>
</Schema>

Definitions:
NID: Nesting ID HID: Hashing ID

DataModel

The HID (HashingID) should be calculated using an algorithm feed by the NID of the node, parent node, ancestors and children nodes, maybe references too and referred nodes.

Object Graph XML Binding (OGXB)

Semantic schema binding for representing object graph structures (JAXB) using a DTD, XML Schema XSD, XSLT & Java/ECMA Script for operations, state machines and query criteria operations (Action and Event proxy/remote classes stub generation in runtime).

JSON, BeanShell, Rhino (Mozilla JS Implementation) code generation, Java bytecode.

Object Constraints: Cardinality in associations, Existence of instances, Nullability, etc.

Rules: for state change, operations, etc. (REGExp like syntax).


Dimensioned Numeric Language:


<Context>
<Dimension id=”Time”>
	<Unit name="Year" base="10" parseFormat="nnnn">
		<Unit name="Month" base="10" parseFormat="nn">
			
		</Unit>
	</Unit>
</Dimension>
<Dimension name="Currency">...</Dimension>
<Number dimension="Time">
	<Digit position="-1.25">
		<Base radix="15.2">9.8</Base>
	</Digit>
	<Digit position="0">
     		<Base radix="10">
     			<Expression>
	     			<[CDATA[(sum(d1-d9))^(d10 + $d1::base)]>
			</Expression>
		</Base>
	</Digit>
</Number>
</Context>


Date: 20-05-2007.
Author: Sebastián Samaruga

 « Return to Thread: Semantic Schema