r3 XML Schema Documentation

Table of Contents



| XML Instances: Expand / Collapse All | Schema Components: Expand / Collapse All | Page: Normal / Printer-friendly Version | TOP |

Schema Document Properties

Target Namespace None
Version 0.20
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations have no namespace.
  • By default, local attribute declarations have no namespace.
Schema Composition
  • This schema imports schema(s) from the following namespace(s):
    • http://www.semwebtech.org/eca/2006/eca-ml (at ecaml.xsd)
    • http://rewerse.net/I5/NS/2006/r3# (at r3.xsd)
    • http://www.semwebtech.org/lang/2006/logic (at logic.xsd)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns# (at rdf.xsd)
Documentation r3 provides and supports this XML Schema for compatibility with the ECA Framework (by translation between ECA-ML and r3).
All the elements here included translate into elements of the r3 namespace and are limited versions of the ones supported by the ECA Framework .
Currently, elements that do not belong to the eca or r3 namespaces are not supported outside of a response or of an eca : opaque (viz. any eca : Expression is ignored and may cause an error; unless it is an eca : opaque or an r3 : Expression ).
Beware that none of the ECA Framework namespaces (viz. logic and eca) is slash (/) or hash (#) terminated.

Declared Namespaces

Prefix Namespace
xml http://www.w3.org/XML/1998/namespace
xsd http://www.w3.org/2001/XMLSchema
html http://www.w3.org/1999/xhtml
eca http://www.semwebtech.org/eca/2006/eca-ml
r3 http://rewerse.net/I5/NS/2006/r3#
log http://www.semwebtech.org/lang/2006/logic
rdf http://www.w3.org/1999/02/22-rdf-syntax-ns#
Schema Component Representation
<xsd:schema elementFormDefault="unqualified" attributeFormDefault="unqualified" version="0.20">
<xsd:import namespace="http://www.semwebtech.org/eca/2006/eca-ml" schemaLocation="ecaml.xsd"/>
<xsd:import namespace="http://rewerse.net/I5/NS/2006/r3#" schemaLocation="r3.xsd"/>
<xsd:import namespace="http://www.semwebtech.org/lang/2006/logic" schemaLocation="logic.xsd"/>
<xsd:import namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#" schemaLocation="rdf.xsd"/>
...
</xsd:schema>


| XML Instances: Expand / Collapse All | Schema Components: Expand / Collapse All | Page: Normal / Printer-friendly Version | TOP |

Global Schema Components

Element: register

Name register
Type Locally-defined complex type
Nillable no
Abstract no
Documentation This element translates into an r3 : Load if it contains any eca : rule or any form of r3 : RulePackage . Otherwise it translates into an r3 : Install .
XML Instance Representation
<register>
<subject> xsd:anyURI </subject> [1]
Start Choice [1]
Start Choice [1]
<eca:rule> ... </eca:rule> [1]
Start Choice [1]
<r3:RuleSet> ... </r3:RuleSet> [1]
<r3:Rule> ... </r3:Rule> [1]
<r3:RulePackage> ... </r3:RulePackage> [1]
End Choice
End Choice
Start Choice [1]
<eca:opaque> ... </eca:opaque> [1]
Start Choice [1]
<r3:NativeRule> ... </r3:NativeRule> [1]
End Choice
End Choice
End Choice
</register>
Schema Component Representation
<xsd:element name="register">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="subject" type=" xsd:anyURI "/>
<xsd:choice>
<xsd:choice>
<xsd:element ref=" eca:rule "/>
<xsd:group ref=" r3:RulePackage "/>
</xsd:choice>
<xsd:choice>
<xsd:element ref=" eca:opaque "/>
<xsd:group ref=" r3:NativeRule "/>
</xsd:choice>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
</xsd:element>


| XML Instances: Expand / Collapse All | Schema Components: Expand / Collapse All | Page: Normal / Printer-friendly Version | TOP |

Element: deregister

Name deregister
Type Locally-defined complex type
Nillable no
Abstract no
Documentation This element translates into an r3 : Terminate .
The <subject> refers to a previous register or asynch request (viz. for events).
XML Instance Representation
<deregister>
<subject> xsd:anyURI </subject> [1] ?
</deregister>
Schema Component Representation
<xsd:element name="deregister">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="subject" type=" xsd:anyURI "/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>


| XML Instances: Expand / Collapse All | Schema Components: Expand / Collapse All | Page: Normal / Printer-friendly Version | TOP |

Element: request

Name request
Type Locally-defined complex type
Nillable no
Abstract no
Documentation This element translates into an r3 : Evaluate .
The <reply-to> is required to an asynch request (viz. for events).
XML Instance Representation
<request>
<subject> xsd:anyURI </subject> [1]
<reply-to> xsd:anyURI </reply-to> [0..1]
<log:variable-bindings> ... </log:variable-bindings> [0..1]
Start Choice [1]
Start Choice [1]
<eca:event> ... </eca:event> [1]
<eca:query> ... </eca:query> [1]
<eca:test> ... </eca:test> [1]
<eca:action> ... </eca:action> [1]
End Choice
Start Group: r3:Expression [1] ?
Start Choice [1]
<r3:Assertion> ... </r3:Assertion> [1]
<r3:TestExpression> ... </r3:TestExpression> [1]
<r3:Expression> ... </r3:Expression> [1]
End Choice
End Group: r3:Expression
End Choice
</request>
Schema Component Representation
<xsd:element name="request">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="subject" type=" xsd:anyURI "/>
<xsd:element name="reply-to" type=" xsd:anyURI " minOccurs="0"/>
<xsd:element ref=" log:variable-bindings " minOccurs="0"/>
<xsd:choice>
<xsd:group ref=" eca:SimplifiedComponent "/>
<xsd:group ref=" r3:Expression "/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
</xsd:element>


| XML Instances: Expand / Collapse All | Schema Components: Expand / Collapse All | Page: Normal / Printer-friendly Version | TOP |

Element: response

Name response
Type Locally-defined complex type
Nillable no
Abstract no
Documentation This element is returned as a response to a request, viz.: register , deregister , request .
It is a translation of the appropriate response to the associated request: r3 : Loaded or r3 : Installed , r3 : Terminated , r3 : EvaluateResponse .
Errors processing a request may be signalled using an appropriate HTTP status (e.g. 500), in which case the body of the HTTP response is not expected to be a <response>.
The <response> is usually returned synchrounously with the POST request, but it may also be used to asynchronously POST additional responses in case of a <request> that includes a <reply-to>.
XML Instance Representation
<response>
<subject> xsd:anyURI </subject> [1] ?
Start Group: log:Response [0..1] ?
Start Choice [1]
<log:answers> ... </log:answers> [1]
<log:answer> ... </log:answer> [1]
<log:variable-bindings> ... </log:variable-bindings> [1]
<log:result> ... </log:result> [1]
Allow any element(s) from a namespace other than this schema's namespace (lax validation). [1]
End Choice
End Group: log:Response
</response>
Schema Component Representation
<xsd:element name="response">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="subject" type=" xsd:anyURI "/>
<xsd:group ref=" log:Response " minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>


| XML Instances: Expand / Collapse All | Schema Components: Expand / Collapse All | Page: Normal / Printer-friendly Version | TOP |