Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Semantic Schema

7 views
Skip to first unread message

sana...@gmail.com

unread,
May 20, 2007, 6:26:39 PM5/20/07
to
Semantic Schema <a href="http://www.simetris.com.ar/ss">http://
www.simetris.com.ar/ss</a>

--------------------------------------------------------------------------------

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

sana...@gmail.com

unread,
May 20, 2007, 6:26:49 PM5/20/07
to
0 new messages