]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
abfb09147d30a88ac9137275f8eba260aff431b8
[tmp/jakarta-migration.git] /
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
2 \r
3 <!--\r
4     Relation schema (XSD)\r
5     \r
6     Entity  : Relation\r
7     Part    : Common\r
8     Used for: Nuxeo EP core document type\r
9 \r
10     $LastChangedRevision$\r
11     $LastChangedDate$\r
12 -->\r
13 \r
14 <xs:schema \r
15     xmlns:xs="http://www.w3.org/2001/XMLSchema"\r
16     xmlns="http://collectionspace.org/relation/"\r
17     xmlns:rel="http://collectionspace.org/relation/"\r
18     targetNamespace="http://collectionspace.org/relation/"\r
19     version="0.1">\r
20 \r
21             <!-- Note: nuxeo ecm types does not support xs:anyURI type -->\r
22             <!-- if xs:anyURI is used, it fails to register that doctype -->\r
23 \r
24             <!-- conventions for describing relationships -->\r
25             <!-- 1. left to right in alphabetical order for the association relations -->\r
26             <!-- e.g. for association between collectionobject and intake entities -->\r
27             <!-- document-id-1 would be the id of the collectionobject -->\r
28             <!-- document-type-1 would be the doc-type of the collectionobject -->\r
29             <!-- document-id-2 would be the id of the intake -->\r
30             <!-- document-type-2 would be the doc-type of the intake -->\r
31             <!-- 2. left to right container and containee or children -->\r
32             <!-- e.g. for collectionobject containing other collectionobjects -->\r
33             <!-- document-id-1 would be the id of the container collectionobject -->\r
34             <!-- document-type-1 would be the doc-type of the container collectionobject -->\r
35             <!-- document-id-2 would be the id of the contained (or child) collectionobject -->\r
36             <!-- document-type-2 would be the doc-type of the collectionobejct -->\r
37     <xs:element name="documentId1" type="xs:string"  minOccurs="1" maxOccurs="1"/>\r
38     <xs:element name="subjectCsid" type="xs:string"  minOccurs="1" maxOccurs="1"/>     <!-- new name for documentId1 -->\r
39     <xs:element name="documentType1" type="xs:string"  minOccurs="1" maxOccurs="1"/>\r
40     <xs:element name="documentId2" type="xs:string"  minOccurs="1" maxOccurs="1"/>\r
41     <xs:element name="objectCsid" type="xs:string"  minOccurs="1" maxOccurs="1"/>        <!-- new name for documentId2 -->\r
42     <xs:element name="documentType2" type="xs:string"  minOccurs="1" maxOccurs="1"/>\r
43 \r
44             <!-- type of relatinoship between two entities -->\r
45     <xs:element name="relationshipType" type="rel:RelationshipType" minOccurs="1" maxOccurs="1"/>\r
46     <xs:element name="predicate" type="rel:RelationshipType" minOccurs="1" maxOccurs="1"/>   <!-- new name for relationshipType -->\r
47     <xs:element name="predicateDisplayName" type="xs:string" minOccurs="1"/>\r
48 \r
49     <!-- enumeration defining the type of relationship between two entities -->\r
50     <xs:simpleType name="RelationshipType">\r
51         <xs:restriction base="xs:string">\r
52             <!-- document with id as document-id-1 is associated with document with id as document-id-2 -->\r
53             <xs:enumeration value="association" />\r
54             <!-- document with id as document-id-1 contains one or more document with id as document-id-2 -->\r
55             <xs:enumeration value="contains" />\r
56         </xs:restriction>\r
57     </xs:simpleType>\r
58 \r
59 </xs:schema>\r
60 \r
61 \r
62 \r
63 \r
64 \r
65 \r