Semantic Schema

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



http://www.nabble.com/file/p10710787/1.png 



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>




http://www.nabble.com/file/p10710787/2.png 





Date: 20-05-2007.

Author:  http://www.simetris.com.ar/ss Sebastián Samaruga 





-- 
View this message in context: http://www.nabble.com/Semantic-Schema-tf3787413.html#a10710787
Sent from the w3.org - www-rdf-logic mailing list archive at Nabble.com.

Received on Sunday, 20 May 2007 23:23:49 UTC