/[volute]/trunk/projects/theory/snapdm/xsd/base.xsd
ViewVC logotype

Contents of /trunk/projects/theory/snapdm/xsd/base.xsd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 727 - (show annotations)
Mon Aug 11 16:37:27 2008 UTC (12 years, 3 months ago) by bourges.laurent
File MIME type: text/xml
File size: 3767 byte(s)
Reference have identifiers as attributes
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3 xmlns="http://www.ivoa.net/xml/dm/base/v0.1"
4 targetNamespace="http://www.ivoa.net/xml/dm/base/v0.1">
5
6 <xsd:annotation>
7 <xsd:documentation>
8 Edited by Gerard Lemson and Laurent Bourg├Ęs.
9
10 Updated : 13/05/2008 :
11 Laurent : added Identity complexType to store all flavor for objectType identifiers :
12
13 Updated : 11/08/2008 :
14 Laurent : Identity and Reference identifiers are now attributes
15
16 </xsd:documentation>
17 </xsd:annotation>
18
19
20
21
22 <xsd:complexType name="Identity">
23 <xsd:annotation>
24 <xsd:documentation>
25 This class contains all flavor for objectType identifiers : &lt;br/&gt;
26 - primary key value : numeric &lt;br/&gt;
27 - string id : string for XML ID / IDREF standard mechanism in xml schemas &lt;br/&gt;
28 - string URI : URI format for external references
29 </xsd:documentation>
30 </xsd:annotation>
31 <xsd:attribute name="id" type="xsd:long">
32 <xsd:annotation>
33 <xsd:documentation>
34 Represents an id for the containing element in the database where the document is stored.
35 </xsd:documentation>
36 </xsd:annotation>
37 </xsd:attribute>
38 <xsd:attribute name="ivoId" type="xsd:anyURI">
39 <xsd:annotation>
40 <xsd:documentation>
41 Represents the ID of the object in the IVO context.
42 Should be globally unique.
43 Maybe type should be IVOIdentifier.
44 </xsd:documentation>
45 </xsd:annotation>
46 </xsd:attribute>
47 <xsd:attribute name="xmlId" type="xsd:ID">
48 <xsd:annotation>
49 <xsd:documentation>
50 Represents a local ID in the XML document.
51 Useful when inserting a new, purely transient resource in a SimDB.
52 </xsd:documentation>
53 </xsd:annotation>
54 </xsd:attribute>
55 </xsd:complexType>
56
57
58
59
60 <xsd:complexType name="MetadataObject" abstract="true">
61 <xsd:sequence>
62 <xsd:element name="id" type="xsd:long" minOccurs="0">
63 <xsd:annotation>
64 <xsd:documentation>
65 Represents an id in the database where the document is stored.
66 All complex types eventually inherit from this type.
67 </xsd:documentation>
68 </xsd:annotation>
69 </xsd:element>
70 <xsd:element name="identity" type="Identity" minOccurs="0">
71 <xsd:annotation>
72 <xsd:documentation>
73 Represents a full identity object identifying this object.
74 </xsd:documentation>
75 </xsd:annotation>
76 </xsd:element>
77 </xsd:sequence>
78 </xsd:complexType>
79
80
81
82
83 <xsd:complexType name="Reference">
84 <xsd:annotation>
85 <xsd:documentation>
86 This class defines a reference (close to Identity class) as it contains both xmlId and ivoId identifiers : &lt;br/&gt;
87 - string id : string for XML IDREF (xsd:idref type) for xml instances &lt;br/&gt;
88 - string URI : URI format for external references
89 </xsd:documentation>
90 </xsd:annotation>
91 <xsd:attribute name="ivoId" type="xsd:anyURI">
92 <xsd:annotation>
93 <xsd:documentation>
94 Represents the ID of the object in the IVO context.
95 Should be globally unique.
96 Maybe type should be IVOIdentifier.
97 </xsd:documentation>
98 </xsd:annotation>
99 </xsd:attribute>
100 <xsd:attribute name="xmlId" type="xsd:IDREF">
101 <xsd:annotation>
102 <xsd:documentation>
103 Represents a reference to an element in the same XML document.
104 Useful when inserting a new, purely transient resource in a SimDB.
105 </xsd:documentation>
106 </xsd:annotation>
107 </xsd:attribute>
108 </xsd:complexType>
109
110
111 </xsd:schema>

Properties

Name Value
svn:mime-type text/xml

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26