- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 11 Aug 2009 16:05:32 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/schemas In directory hutz:/tmp/cvs-serv2609/WebContent/WEB-INF/resources/schemas Added Files: Tag: dev2 tasklist.xsd wadl.xsd Task.rdfs tasklist-schema.xsd observer-response.xsd Observer.rdfs Log Message: all initialization actions in Init.java + compatibility windows/linux --- NEW FILE: observer-response.xsd --- <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.w3.org/unicorn/observationresponse" xmlns:m="http://www.w3.org/unicorn/observationresponse"> <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/> <xs:element name="observationresponse"> <xs:complexType> <xs:sequence> <!-- URI of the document checked--> <xs:element ref="m:uri"/> <!-- URI of the observer --> <xs:element ref="m:checkedby" minOccurs="0"/> <!-- "Version" of the document. For example CSS 2, XHTML 1.0 Strict, ... --> <xs:element ref="m:version" minOccurs="0"/> <!-- Observation date--> <xs:element ref="m:date" minOccurs="0"/> <!-- used for conformance checks --> <xs:element ref="m:passed" minOccurs="0"/> <!-- Result of the observation --> <xs:element ref="m:result"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="uri" type="xs:anyURI"/> <xs:element name="checkedby" type="xs:anyURI"/> <xs:element name="version" type="xs:string"/> <xs:element name="date" type="xs:dateTime"/> <xs:element name="passed" type="xs:boolean"/> <!-- there are three types of messages: errors, warnings and informations --> <xs:element name="result"> <xs:complexType> <xs:sequence> <!-- global error list--> <xs:element ref="m:errors" minOccurs="0"/> <!-- global warning list --> <xs:element ref="m:warnings" minOccurs="0"/> <!-- global message list --> <xs:element ref="m:informations" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="errors"> <xs:complexType> <xs:sequence> <!-- Total number of errors --> <xs:element ref="m:errorcount" minOccurs="0"/> <xs:element ref="m:errorlist" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute ref="xml:lang" use="required"/> </xs:complexType> </xs:element> <xs:element name="errorcount" type="xs:integer"/> <xs:element name="errorlist"> <xs:complexType> <xs:sequence> <!-- URI of an included and checked document --> <xs:element ref="m:uri"/> <!-- number of errors for this "sub" document --> <xs:element ref="m:errorcount" minOccurs="0"/> <!-- error list for this document --> <xs:element ref="m:error" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="error"> <xs:complexType> <xs:sequence> <!-- Line where the error appeared--> <xs:element ref="m:line" minOccurs="0"/> <!-- Column where the error appeared --> <xs:element ref="m:column" minOccurs="0"/> <xs:element ref="m:errortype" minOccurs="0"/> <xs:element ref="m:context" minOccurs="0"/> <xs:element ref="m:message" maxOccurs="unbounded"/> <xs:element ref="m:longmessage" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="line" type="xs:nonNegativeInteger"/> <xs:element name="column" type="xs:nonNegativeInteger"/> <xs:element name="errortype" type="xs:string"/> <xs:element name="context" type="xs:string"/> <xs:element name="message" type="xs:string"/> <xs:element name="longmessage"> <xs:complexType mixed="true"> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:element ref="m:a"/> <xs:element ref="m:code" /> <xs:element ref="m:img"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="Inline" mixed="true"> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="m:a"/> <xs:element ref="m:img"/> </xs:choice> </xs:complexType> <xs:complexType name="inA" mixed="true"> <xs:choice> <xs:element ref="m:img"/> </xs:choice> </xs:complexType> <xs:element name="a"> <xs:complexType mixed="true"> <xs:complexContent> <xs:extension base="m:inA"> <xs:attribute name="href" type="xs:anyURI"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> <xs:element name="code"> <xs:complexType mixed="true"> <xs:complexContent> <xs:extension base="m:Inline"> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> <xs:element name="img"> <xs:complexType> <xs:attribute name="src" use="required" type="xs:anyURI"/> <xs:attribute name="alt" use="required" type="xs:string"/> <xs:attribute name="name" type="xs:NMTOKEN"/> <xs:attribute name="longdesc" type="xs:anyURI"/> <xs:attribute name="height" type="xs:nonNegativeInteger"/> <xs:attribute name="width" type="xs:nonNegativeInteger"/> </xs:complexType> </xs:element> <xs:element name="warnings"> <xs:complexType> <xs:sequence> <xs:element ref="m:warningcount" minOccurs="0"/> <xs:element ref="m:warninglist" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute ref="xml:lang" use="required"/> </xs:complexType> </xs:element> <xs:element name="warningcount" type="xs:integer"/> <xs:element name="warninglist"> <xs:complexType> <xs:sequence> <xs:element ref="m:uri"/> <xs:element ref="m:warningcount" minOccurs="0"/> <xs:element ref="m:warning" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="warning"> <xs:complexType> <xs:sequence> <xs:element ref="m:line" minOccurs="0"/> <xs:element ref="m:column" minOccurs="0"/> <xs:element ref="m:context" minOccurs="0"/> <xs:element ref="m:level" minOccurs="0"/> <xs:element ref="m:message" maxOccurs="unbounded"/> <xs:element ref="m:longmessage" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="level" type="m:tWarningLevels"/> <xs:simpleType name="tWarningLevels"> <xs:restriction base="xs:nonNegativeInteger"> <xs:maxInclusive value="3"/> </xs:restriction> </xs:simpleType> <xs:element name="informations"> <xs:complexType> <xs:sequence> <xs:element ref="m:infocount" minOccurs="0"/> <xs:element ref="m:infolist" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute ref="xml:lang" use="required"/> </xs:complexType> </xs:element> <xs:element name="infocount" type="xs:integer"/> <xs:element name="infolist"> <xs:complexType> <xs:sequence> <xs:element ref="m:uri"/> <xs:element ref="m:infocount" minOccurs="0"/> <xs:element ref="m:info" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="info"> <xs:complexType> <xs:sequence> <xs:element ref="m:line" minOccurs="0"/> <xs:element ref="m:column" minOccurs="0"/> <xs:element ref="m:context" minOccurs="0"/> <xs:element ref="m:message" maxOccurs="unbounded"/> <xs:element ref="m:longmessage" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> --- NEW FILE: wadl.xsd --- <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://research.sun.com/wadl" xmlns:tns="http://research.sun.com/wadl" elementFormDefault="qualified"> <xs:element name="application"> <xs:complexType> <xs:sequence> <xs:element ref="tns:grammars" minOccurs="0"/> <xs:element ref="tns:resources" minOccurs="0"/> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="tns:method"/> <xs:element ref="tns:representation"/> <xs:element ref="tns:fault"/> </xs:choice> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="grammars"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="tns:include"/> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="resources"> <xs:complexType> <xs:sequence> <xs:element ref="tns:resource" maxOccurs="unbounded"/> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="base" type="xs:anyURI"/> </xs:complexType> </xs:element> <xs:element name="resource"> <xs:complexType> <xs:sequence> <xs:element ref="tns:path_variable" minOccurs="0"/> <xs:choice maxOccurs="unbounded"> <xs:element ref="tns:method"/> <xs:element ref="tns:resource"/> </xs:choice> <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/> </xs:sequence> <xs:attribute name="uri" type="xs:anyURI"/> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> <xs:element name="method"> <xs:complexType> <xs:sequence> <xs:element ref="tns:request" minOccurs="0"/> <xs:element ref="tns:response" minOccurs="0"/> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="id" type="xs:ID"/> <xs:attribute name="name" type="tns:Method"/> <xs:attribute name="href" type="xs:anyURI"/> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> <xs:simpleType name="Method"> <xs:union memberTypes="tns:HTTPMethods xs:NMTOKEN"/> </xs:simpleType> <xs:simpleType name="HTTPMethods"> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="GET"/> <xs:enumeration value="POST"/> <xs:enumeration value="PUT"/> <xs:enumeration value="HEAD"/> <xs:enumeration value="DELETE"/> </xs:restriction> </xs:simpleType> <xs:element name="include"> <xs:complexType> <xs:attribute name="href" type="xs:anyURI"/> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> <xs:element name="request"> <xs:complexType> <xs:sequence> <xs:element ref="tns:representation" minOccurs="0" maxOccurs="unbounded"/> <xs:element ref="tns:query_variable" minOccurs="0" maxOccurs="unbounded"/> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> <xs:element name="response"> <xs:complexType> <xs:sequence> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="tns:representation"/> <xs:element ref="tns:fault"/> </xs:choice> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> <xs:element name="representation"> <xs:complexType> <xs:sequence> <xs:element ref="tns:representation_variable" minOccurs="0" maxOccurs="unbounded"/> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="id" type="xs:ID"/> <xs:attribute name="element" type="xs:QName"/> <xs:attribute name="mediaType" type="xs:string"/> <xs:attribute name="href" type="xs:anyURI"/> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> <xs:simpleType name="faultCodeList"> <xs:list itemType="xs:unsignedInt"/> </xs:simpleType> <xs:element name="fault"> <xs:complexType> <xs:sequence> <xs:element ref="tns:representation_variable" minOccurs="0" maxOccurs="unbounded"/> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="id" type="xs:ID" use="required"/> <xs:attribute name="element" type="xs:QName"/> <xs:attribute name="status" type="tns:faultCodeList"/> <xs:attribute name="mediaType" type="xs:string"/> <xs:attribute name="href" type="xs:anyURI"/> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> <xs:element name="query_variable"> <xs:complexType> <xs:sequence> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="name" type="xs:NMTOKEN" use="required"/> <xs:attribute name="type" type="xs:QName" default="xs:string"/> <xs:attribute name="required" type="xs:boolean" default="false"/> <xs:attribute name="repeating" type="xs:boolean" default="false"/> <xs:attribute name="fixed" type="xs:string"/> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> <xs:element name="path_variable"> <xs:complexType> <xs:sequence> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="name" type="xs:NMTOKEN" use="required"/> <xs:attribute name="type" type="xs:QName" default="xs:string"/> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> <xs:element name="representation_variable"> <xs:complexType> <xs:sequence> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="name" type="xs:NMTOKEN" use="required"/> <xs:attribute name="type" type="xs:QName" default="xs:string"/> <xs:attribute name="path" type="xs:string"/> <xs:attribute name="required" type="xs:boolean" default="false"/> <xs:attribute name="repeating" type="xs:boolean" default="false"/> <xs:attribute name="fixed" type="xs:string"/> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> </xs:schema> --- NEW FILE: Observer.rdfs --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE owl [ <!ENTITY ucn "http://www.w3.org/unicorn#"> <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#"> ]> <rdf:RDF xmlns:rdf="&rdf;" xmlns:rdfs="&rdfs;" xmlns:ucn="&ucn;" xmlns="&ucn;" xml:base="&ucn;" > <!-- UNICORN DEFINITION --> <rdfs:Class rdf:ID="Unicorn"> <!-- <rdfs:label xml:lang="en">Unicorn class</rdfs:label> <rdfs:label xml:lang="fr">La classe Unicorn</rdfs:label> <rdfs:comment xml:lang="en">Mother class of all classes in this package.</rdfs:comment> <rdfs:comment xml:lang="fr">La classe mere de toutes les autres de ce paquet.</rdfs:comment> --> </rdfs:Class> <!-- PROPERTY DEFINITION --> <rdf:Property rdf:ID="property"> <rdfs:subClassOf rdf:resource="ucn:Unicorn" /> <!-- <rdfs:label xml:lang="en">Property</rdfs:label> <rdfs:label xml:lang="fr">Propriete</rdfs:label> <rdfs:comment xml:lang="en">Mother property of all property in this package.</rdfs:comment> <rdfs:comment xml:lang="fr">La propriete mere de toutes les proprietes Unicorn.</rdfs:comment> --> </rdf:Property> <!-- OBSERVER DEFINITION --> <rdfs:Class rdf:ID="Observer"> <rdfs:subClassOf rdf:resource="#Unicorn" /> </rdfs:Class> <!-- OBSERVER PROPERTY DEFINITION --> <rdf:Property rdf:ID="name"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:domain rdf:resource="#Observer" /> <rdfs:range rdf:resource="&rdfs;Literal" /> <rdfs:label xml:lang="en">Name</rdfs:label> <rdfs:label xml:lang="fr">Nom</rdfs:label> <rdfs:comment xml:lang="en">The name property.</rdfs:comment> <rdfs:comment xml:lang="fr">La propriete de nom.</rdfs:comment> </rdf:Property> <rdf:Property rdf:ID="id"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:domain rdf:resource="#Observer" /> <rdfs:range rdf:resource="&rdfs;Literal" /> <rdfs:label xml:lang="en">Identifier</rdfs:label> <rdfs:label xml:lang="fr">Identifiant</rdfs:label> </rdf:Property> <rdf:Property rdf:ID="description"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:domain rdf:resource="#Observer" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <!-- Link to a help page of the observer --> <rdf:Property rdf:ID="help"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:domain rdf:resource="#Observer" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <!-- Author of the observer (name or url) --> <rdf:Property rdf:ID="provider"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:domain rdf:resource="#Observer" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <rdf:Property rdf:ID="mimetype"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:domain rdf:resource="#Observer" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <rdf:Property rdf:ID="inputMethod"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:domain rdf:resource="#Observer" /> <rdfs:range rdf:resource="#InputParameter" /> </rdf:Property> <rdf:Property rdf:ID="lang"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:domain rdf:resource="#Observer" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <!-- INPUT PARAMETER DEFINITION --> <rdfs:Class rdf:ID="InputParameter"> <rdfs:subClassOf rdf:resource="#Unicorn" /> </rdfs:Class> <rdfs:Class rdf:ID="ParameterURI"> <rdfs:subClassOf rdf:resource="#InputParameter" /> </rdfs:Class> <rdfs:Class rdf:ID="ParameterUpload"> <rdfs:subClassOf rdf:resource="#InputParameter" /> </rdfs:Class> <rdfs:Class rdf:ID="ParameterDirectInput"> <rdfs:subClassOf rdf:resource="#InputParameter" /> </rdfs:Class> <!-- INPUT PARAMETER PROPERTY DEFINITION --> <rdf:Property rdf:ID="methodName"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:domain rdf:resource="#InputParameter" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <rdf:Property rdf:ID="parameterName"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:domain rdf:resource="#InputParameter" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> </rdf:RDF> --- NEW FILE: tasklist.xsd --- <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.w3.org/unicorn/tasklist" xmlns:tkl="http://www.w3.org/unicorn/tasklist"> <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/> <xs:element name="tasklist"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="tkl:task"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="task"> <xs:complexType> <xs:sequence> <xs:element ref="tkl:subtasks"/> <xs:element minOccurs="0" ref="tkl:parameters"/> </xs:sequence> <xs:attribute name="id" use="required"/> <xs:attribute name="visible" type="xs:boolean" default="true"/> </xs:complexType> </xs:element> <xs:element name="subtasks"> <xs:complexType> <xs:choice maxOccurs="unbounded"> <xs:element ref="tkl:observation"/> <xs:element ref="tkl:subtask"/> </xs:choice> </xs:complexType> </xs:element> <xs:element name="observation"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="tkl:handle"/> </xs:sequence> <xs:attribute name="ref" use="required" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="handle"> <xs:complexType> <xs:attribute name="mimetype" use="required"/> <xs:attribute name="priority" type="tkl:tPriority" use="optional" default="medium"/> </xs:complexType> </xs:element> <xs:element name="subtask"> <xs:complexType> <xs:attribute name="ref" use="required"/> </xs:complexType> </xs:element> <xs:element name="parameters"> <xs:complexType> <xs:sequence maxOccurs="unbounded"> <xs:element ref="tkl:parameter"/> </xs:sequence> <!-- <xs:choice maxOccurs="unbounded"> <xs:element ref="tkl:checkbox"/> <xs:element ref="tkl:radio"/> <xs:element ref="tkl:checkboxlist"/> <xs:element ref="tkl:textfield"/> <xs:element ref="tkl:textarea"/> <xs:element ref="tkl:parameter"/> </xs:choice> --> </xs:complexType> </xs:element> <!-- <xs:element name="checkbox"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="tkl:longname" minOccurs="0"/> <xs:element ref="tkl:checked"/> <xs:element ref="tkl:unchecked"/> </xs:sequence> <xs:attribute name="default" use="optional" type="tkl:tChecked" default="unchecked"/> <xs:attributeGroup ref="tkl:generalInfos"/> </xs:complexType> </xs:element> <xs:element name="checked"> <xs:complexType> <xs:sequence> <xs:element ref="tkl:mapped" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="unchecked"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="tkl:mapped"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="radio"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="tkl:longname" minOccurs="0"/> <xs:element maxOccurs="unbounded" ref="tkl:value"/> </xs:sequence> <xs:attribute name="default" use="optional" type="xs:NCName"/> <xs:attributeGroup ref="tkl:generalInfos"/> </xs:complexType> </xs:element> <xs:element name="checkboxlist"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="tkl:longname" minOccurs="0"/> <xs:element maxOccurs="unbounded" ref="tkl:value"/> </xs:sequence> <xs:attribute name="default" use="optional"> <xs:simpleType> <xs:list itemType="xs:string"/> </xs:simpleType> </xs:attribute> <xs:attributeGroup ref="tkl:generalInfos"/> </xs:complexType> </xs:element> <xs:element name="textfield"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="tkl:mapped"/> <xs:element maxOccurs="unbounded" ref="tkl:longname" minOccurs="0"/> </xs:sequence> <xs:attributeGroup ref="tkl:generalInfos"/> <xs:attribute name="value" use="optional" type="xs:string"/> </xs:complexType> </xs:element> <xs:element name="textarea"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="tkl:mapped"/> <xs:element maxOccurs="unbounded" ref="tkl:longname" minOccurs="0"/> </xs:sequence> <xs:attributeGroup ref="tkl:generalInfos"/> <xs:attribute name="value" use="optional" type="xs:string"/> </xs:complexType> </xs:element> --> <xs:element name="parameter"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="tkl:value"/> </xs:sequence> <xs:attributeGroup ref="tkl:generalInfos"/> </xs:complexType> </xs:element> <xs:element name="mapped"> <xs:complexType> <xs:attribute name="observer" use="required" type="xs:NCName"/> <xs:attribute name="param" use="required" type="xs:NCName"/> <xs:attribute name="value" type="xs:string"/> <xs:attribute name="inputmethod" use="optional" default="uri direct file"> <xs:simpleType> <xs:list itemType="tkl:tInputMethod"/> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> <xs:element name="value"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="tkl:mapped" minOccurs="0"/> </xs:sequence> <xs:attribute name="name" use="optional" type="xs:NMTOKEN"/> </xs:complexType> </xs:element> <xs:attributeGroup name="generalInfos"> <xs:attribute name="name" use="required" type="xs:NCName"/> <xs:attribute name="ui" use="optional" type="tkl:tUi" default="advanced"/> <xs:attribute name="observer" type="xs:NCName" use="optional"/> <xs:attribute name="type" use="required" type="tkl:tParamType"/> <xs:attribute name="default" use="optional" type="xs:string"/> </xs:attributeGroup> <!-- <xs:simpleType name="tChecked"> <xs:restriction base="xs:string"> <xs:enumeration value="checked"/> <xs:enumeration value="unchecked"/> </xs:restriction> </xs:simpleType> --> <xs:simpleType name="tInputMethod"> <xs:restriction base="xs:string"> <xs:enumeration value="file"/> <xs:enumeration value="direct"/> <xs:enumeration value="uri"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="tUi"> <xs:restriction base="xs:string"> <xs:enumeration value="none"/> <xs:enumeration value="simple"/> <xs:enumeration value="advanced"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="tPriority"> <xs:restriction base="xs:string"> <xs:enumeration value="low"/> <xs:enumeration value="medium"/> <xs:enumeration value="high"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="tParamType"> <xs:restriction base="xs:string"> <xs:enumeration value="checkbox"/> <xs:enumeration value="checkboxlist"/> <xs:enumeration value="dropdown"/> <xs:enumeration value="textarea"/> <xs:enumeration value="textfield"/> <xs:enumeration value="radio"/> </xs:restriction> </xs:simpleType> </xs:schema> --- NEW FILE: tasklist-schema.xsd --- <?xml version="1.0" encoding="UTF-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.w3.org/unicorn/tasklist" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tas="http://www.w3.org/unicorn/tasklist"> <xs:element name="tasklist" type="tas:tasklistType" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> <xs:complexType name="parametersType"> <xs:sequence> <xs:element type="tas:parameterType" name="parameter" maxOccurs="unbounded" minOccurs="0" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> </xs:sequence> </xs:complexType> <xs:complexType name="thenType"> <xs:sequence> <xs:element type="tas:ifType" name="if" maxOccurs="unbounded" minOccurs="0" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> <xs:element type="tas:execType" name="exec" maxOccurs="unbounded" minOccurs="0" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> </xs:sequence> </xs:complexType> <xs:complexType name="taskType"> <xs:sequence> <xs:element type="tas:condsType" name="conds" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> <xs:element type="tas:routineType" name="routine" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> <xs:element type="tas:outputseqType" name="outputseq" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> <xs:element type="tas:parametersType" name="parameters" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> </xs:sequence> <xs:attribute type="xs:string" name="id" use="required"/> </xs:complexType> <xs:complexType name="parameterType" mixed="true"> <xs:sequence> <xs:element type="tas:valueType" name="value" minOccurs="0" maxOccurs="unbounded" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> </xs:sequence> <xs:attribute type="xs:NCName" name="name" use="required"/> <xs:attribute type="tas:tParamType" name="type" use="required"/> <xs:attribute type="xs:string" name="default" use="optional"/> <xs:attribute type="tas:tUi" name="ui" use="optional" default="advanced"/> <xs:attribute type="xs:NCName" name="observer" use="optional"/> </xs:complexType> <xs:complexType name="valueType"> <xs:sequence> <xs:element type="tas:mappedType" name="mapped" maxOccurs="unbounded" minOccurs="0" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> </xs:sequence> <xs:attribute type="xs:string" name="name"/> </xs:complexType> <xs:complexType name="outputseqType"> <xs:sequence> <xs:element type="tas:outputgroupType" name="outputgroup" maxOccurs="unbounded" minOccurs="0" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> </xs:sequence> </xs:complexType> <xs:complexType name="outputgroupType"> <xs:sequence> <xs:element type="xs:string" name="tasksort" maxOccurs="unbounded" minOccurs="0" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> </xs:sequence> <xs:attribute type="xs:byte" name="id" use="optional"/> </xs:complexType> <xs:complexType name="paramType"> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute type="xs:NCName" name="name"/> <xs:attribute type="xs:NCName" name="observer"/> <xs:attribute type="xs:string" name="value"/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="condType"> <xs:sequence> <xs:element name="value" type="xs:string" minOccurs="1" maxOccurs="1" /> </xs:sequence> <xs:attribute type="xs:string" name="id" use="optional"/> <xs:attribute type="xs:string" name="result" use="optional"/> <xs:attribute type="xs:NCName" name="observer" use="optional"/> <xs:attribute type="xs:string" name="type" use="optional"/> </xs:complexType> <xs:complexType name="routineType"> <xs:sequence maxOccurs="unbounded"> <xs:element type="tas:ifType" name="if" maxOccurs="unbounded" minOccurs="0" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> <xs:element type="tas:execType" name="exec" maxOccurs="unbounded" minOccurs="0" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> </xs:sequence> <xs:attribute type="xs:string" name="ref"/> </xs:complexType> <xs:complexType name="ifType"> <xs:sequence> <xs:element type="tas:thenType" name="then" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> <xs:element type="tas:thenType" name="else" maxOccurs="1" minOccurs="0" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> </xs:sequence> <xs:attribute type="xs:string" name="test"/> </xs:complexType> <xs:complexType name="tasklistType"> <xs:sequence> <xs:element type="tas:taskType" name="task" maxOccurs="unbounded" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> </xs:sequence> </xs:complexType> <xs:complexType name="mappedType"> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute type="xs:NCName" name="param" use="required"/> <xs:attribute type="xs:NCName" name="observer" use="required"/> <xs:attribute type="xs:string" name="value"/> <xs:attribute name="inputmethod" use="optional" default="uri direct file"> <xs:simpleType> <xs:list itemType="tas:tInputMethod"/> </xs:simpleType> </xs:attribute> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="condsType"> <xs:sequence> <xs:element type="tas:condType" name="cond" maxOccurs="unbounded" minOccurs="0" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> </xs:sequence> </xs:complexType> <xs:complexType name="execType" mixed="true"> <xs:sequence> <xs:element type="tas:paramType" name="param" minOccurs="0" xmlns:tas="http://www.w3.org/unicorn/tasklist"/> </xs:sequence> <xs:attribute type="xs:string" name="id" use="optional"/> <xs:attribute type="xs:string" name="value" use="optional"/> <xs:attribute type="xs:string" name="type" use="optional"/> </xs:complexType> <xs:simpleType name="tInputMethod" xmlns:tas="http://www.w3.org/unicorn/tasklist"> <xs:restriction base="xs:string"> <xs:enumeration value="file"/> <xs:enumeration value="direct"/> <xs:enumeration value="uri"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="tUi" xmlns:tas="http://www.w3.org/unicorn/tasklist"> <xs:restriction base="xs:string"> <xs:enumeration value="none"/> <xs:enumeration value="simple"/> <xs:enumeration value="advanced"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="tParamType" xmlns:tas="http://www.w3.org/unicorn/tasklist"> <xs:restriction base="xs:string"> <xs:enumeration value="checkbox"/> <xs:enumeration value="checkboxlist"/> <xs:enumeration value="dropdown"/> <xs:enumeration value="textarea"/> <xs:enumeration value="textfield"/> <xs:enumeration value="radio"/> </xs:restriction> </xs:simpleType> </xs:schema> --- NEW FILE: Task.rdfs --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE owl [ <!ENTITY ucn "http://www.w3.org/unicorn"> <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns"> <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema"> <!ENTITY xs "http://www.w3.org/2001/XMLSchema"> ]> <rdf:RDF xmlns:rdf="&rdf;#" xmlns:rdfs="&rdfs;#" xmlns:ucn="&ucn;#" xmlns:xs="&xs;" xmlns="&ucn;#" xml:base="&ucn;#" > <!-- CLASS DEFINITION --> <rdfs:Class rdf:ID="Unicorn"> <rdfs:label xml:lang="en">Unicorn class</rdfs:label> <rdfs:label xml:lang="fr">La classe Unicorn</rdfs:label> <rdfs:comment xml:lang="en">Mother class of all classes in this package.</rdfs:comment> <rdfs:comment xml:lang="fr">La classe mere de toutes les autres de ce paquet.</rdfs:comment> </rdfs:Class> <!-- TASK DEFINITION --> <rdfs:Class rdf:ID="Task"> <rdfs:subClassOf rdf:resource="#Unicorn" /> <rdfs:label xml:lang="en">Task class</rdfs:label> <rdfs:label xml:lang="fr">La classe Task</rdfs:label> </rdfs:Class> <!-- HANDLE DEFINITION --> <rdfs:Class rdf:ID="Handler"> <rdfs:subClassOf rdf:resource="#Unicorn" /> </rdfs:Class> <!-- PARAMETER DEFINITION --> <rdfs:Class rdf:ID="Parameter"> <rdfs:subClassOf rdf:resource="#Unicorn" /> </rdfs:Class> <rdfs:Class rdf:ID="CheckBox"> <rdfs:subClassOf rdf:resource="#Parameter" /> </rdfs:Class> <rdfs:Class rdf:ID="Radio"> <rdfs:subClassOf rdf:resource="#Parameter" /> </rdfs:Class> <rdfs:Class rdf:ID="CheckBoxList"> <rdfs:subClassOf rdf:resource="#Parameter" /> </rdfs:Class> <rdfs:Class rdf:ID="DropDown"> <rdfs:subClassOf rdf:resource="#Parameter" /> </rdfs:Class> <rdfs:Class rdf:ID="TextArea"> <rdfs:subClassOf rdf:resource="#Parameter" /> </rdfs:Class> <rdfs:Class rdf:ID="TextField"> <rdfs:subClassOf rdf:resource="#Parameter" /> </rdfs:Class> <!-- VALUE DEFINITION --> <rdfs:Class rdf:ID="Value"> <rdfs:subClassOf rdf:resource="#Unicorn" /> </rdfs:Class> <!-- MAPPING DEFINITION --> <rdfs:Class rdf:ID="Mapping"> <rdfs:subClassOf rdf:resource="#Unicorn" /> </rdfs:Class> <!-- END OF CLASS DEFINITION --> <!-- PROPERTY DEFINITION --> <rdf:Property rdf:ID="property"> <rdfs:subClassOf rdf:resource="#Unicorn" /> <rdfs:label xml:lang="en">Property</rdfs:label> <rdfs:label xml:lang="fr">Propriete</rdfs:label> <rdfs:comment xml:lang="en">Mother property of all property in this package.</rdfs:comment> <rdfs:comment xml:lang="fr">La propriete mere de toutes les proprietes Unicorn.</rdfs:comment> </rdf:Property> <rdf:Property rdf:ID="default"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <rdf:Property rdf:ID="description"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:range rdf:resource="&rdfs;Literal" /> <rdfs:label xml:lang="en">Description property</rdfs:label> <rdfs:label xml:lang="fr">Propriete description</rdfs:label> </rdf:Property> <rdf:Property rdf:ID="handle"> <rdfs:subPropertyOf rdf:resource="#property" /> </rdf:Property> <rdf:Property rdf:ID="hasMapping"> <rdfs:subPropertyOf rdf:resource="#property" /> </rdf:Property> <rdf:Property rdf:ID="hasParameter"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:label xml:lang="en">HasParameter property</rdfs:label> <rdfs:label xml:lang="fr">Propriete hasParameter</rdfs:label> </rdf:Property> <rdf:Property rdf:ID="hasValue"> <rdfs:subPropertyOf rdf:resource="#property" /> </rdf:Property> <rdf:Property rdf:ID="longName"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:range rdf:resource="&rdfs;Literal" /> <rdfs:label xml:lang="en">LongName property</rdfs:label> <rdfs:label xml:lang="fr">Propriete longName</rdfs:label> </rdf:Property> <rdf:Property rdf:ID="mimetype"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <rdf:Property rdf:ID="observer"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <rdf:Property rdf:ID="parameter"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <rdf:Property rdf:ID="priority"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <rdf:Property rdf:ID="reference"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <rdf:Property rdf:ID="ui"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <rdf:Property rdf:ID="value"> <rdfs:subPropertyOf rdf:resource="#property" /> <rdfs:range rdf:resource="&rdfs;Literal" /> </rdf:Property> <!-- TASK DEFINITION --> <rdf:Property rdf:about="description"><rdfs:domain rdf:resource="#Task" /></rdf:Property> <rdf:Property rdf:about="handle"><rdfs:domain rdf:resource="#Task" /></rdf:Property> <rdf:Property rdf:about="hasParameter"><rdfs:domain rdf:resource="#Task" /></rdf:Property> <rdf:Property rdf:about="longName"><rdfs:domain rdf:resource="#Task" /></rdf:Property> <rdf:Property rdf:about="reference"><rdfs:domain rdf:resource="#Task" /></rdf:Property> <!-- PARAMETER DEFINITION --> <rdf:Property rdf:about="default"><rdfs:domain rdf:resource="#Parameter" /></rdf:Property> <rdf:Property rdf:about="hasParameter"><rdfs:range rdf:resource="#Parameter" /></rdf:Property> <rdf:Property rdf:about="hasValue"><rdfs:domain rdf:resource="#Parameter" /></rdf:Property> <rdf:Property rdf:about="longName"><rdfs:domain rdf:resource="#Parameter" /></rdf:Property> <rdf:Property rdf:about="observer"><rdfs:domain rdf:resource="#Parameter" /></rdf:Property> <rdf:Property rdf:about="reference"><rdfs:domain rdf:resource="#Parameter" /></rdf:Property> <rdf:Property rdf:about="ui"><rdfs:domain rdf:resource="#Parameter" /></rdf:Property> <!-- HANDLER DEFINITION --> <rdf:Property rdf:about="handle"><rdfs:range rdf:resource="#Handler" /></rdf:Property> <rdf:Property rdf:about="mimetype"><rdfs:domain rdf:resource="#Handler" /></rdf:Property> <rdf:Property rdf:about="observer"><rdfs:domain rdf:resource="#Handler" /></rdf:Property> <rdf:Property rdf:about="priority"><rdfs:domain rdf:resource="#Handler" /></rdf:Property> <rdf:Property rdf:about="reference"><rdfs:domain rdf:resource="#Handler" /></rdf:Property> <!-- VALUE DEFINITION --> <rdf:Property rdf:about="hasMapping"><rdfs:domain rdf:resource="#Value" /></rdf:Property> <rdf:Property rdf:about="hasValue"><rdfs:range rdf:resource="#Value" /></rdf:Property> <!-- MAPPING DEFINITION --> <rdf:Property rdf:about="hasMapping"><rdfs:range rdf:resource="#Mapping" /></rdf:Property> <rdf:Property rdf:about="parameter"><rdfs:domain rdf:resource="#Mapping" /></rdf:Property> <rdf:Property rdf:about="observer"><rdfs:domain rdf:resource="#Mapping" /></rdf:Property> <rdf:Property rdf:about="value"><rdfs:domain rdf:resource="#Mapping" /></rdf:Property> <!-- END OF PROPERTY DEFINITION --> </rdf:RDF>
Received on Tuesday, 11 August 2009 16:08:42 UTC