Semantic Schema

View: New views
3 Messages — Rating Filter:   Alert me  

Semantic Schema

by Sanasaca :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Re: Semantic Schema

by xama :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Re: Semantic Schema

by Sebastian S. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ENGLISH:

Symbols sequencing/identification (stream): 

1. Map sucesive symbols with numbers (starting at 0) 
2. Symbol repeated, use the identifier used the first time the simbol appeared 
3. After a repeated symbol, continue with id sequence if next symbol is new, use last otherwise 
4. Apply recursively from contained symbol structures to containers (letter / word ; word / sentence) 

Example: 

String: ASDFAEIOUS
Encoding: 0123045671


SPANISH:

Secuenciamiento Simbolos cadena/stream (Algoritmo):

1. Identificar simbolos con secuencia numérica (comenzando desde 0)
2. Al repetirse simbolo, repetir identificador previamente usado
3. Luego de repetirse simbolo, si el simbolo subsiguiente es nuevo, utilizar identificador siguiente en secuencia
4. Aplicar identificacion simbolos recursivamente (ej.: letras > palabras > oraciones)

Ejemplo:

Cadena: ASDFAEIOUS
Encoding: 0123045671