root / projects / MonthlyProductionReport_1.0 / XML / NPD_and_IBM_XSD_proposal / MPR - 071220 / Profile / subprofiles / WITSML_MPR_gassaleexternal_profiled_schema.xsd @ 17

Revision 17, 33.6 kB (checked in by ryland, 15 years ago)

Added project files for monthly production version 1.0

RevLine 
[17]1<?xml version="1.0" encoding="utf-8"?>
2<xsd:schema
3        elementFormDefault="qualified"
4        attributeFormDefault="unqualified"
5        targetNamespace="http://www.witsml.org/schemas/131/addendum/combo"
6        xmlns:witsml="http://www.witsml.org/schemas/131/addendum/combo"
7        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
8        version="1.3.1(NPD)">
9
10        <!--                                                                                -->
11        <!-- Energistics License Agreement                                                  -->
12        <!-- This file is distributed under the Energistics License Agreement at            -->
13        <!-- http://www.posc.org/about/license.shtml.                                       -->
14        <!-- Use of this file constitutes agreement with the Energistics License Agreement. -->
15        <!--                                                                                -->
16        <xsd:annotation>
17        <xsd:documentation>WITSML - Monthly Production Report - NPD Profile</xsd:documentation>
18        </xsd:annotation>
19   
20        <xsd:attributeGroup name="attgrp_uid">
21        <!--PROFILE: Deleted attribute uid.-->
22        </xsd:attributeGroup>
23
24        <xsd:element name="WITSMLComposite" type="witsml:allObjects">
25                <xsd:annotation>
26                        <xsd:documentation>The root container for all WITSML data.
27                        This schema is not designed for use with the WITSML API.
28                        Rather it captures the logical model represented by the API queriable objects.
29                        As such it can represent all data in a server or it can represent data outside the context of a server.
30                        The data in the API objects have been incorporated into a normal XML hierarchy of well/wellbore.
31                        The plural API root elements have essentially been renamed to "xxxSet".
32                        The content of the well and wellbore API objects has been captured in "generalInformation" elements.
33                        The realtime object is not included because it is considered to be a transient server concept.
34                        The trajectoryStation object is not included because it is redundant to the data in trajectory.
35                        </xsd:documentation>
36                </xsd:annotation>
37        </xsd:element>
38
39        <xsd:complexType name="allObjects">
40                <xsd:sequence>
41
42                        <xsd:element name="documentInfo" type="witsml:cs_documentInfo" minOccurs="0">
43                                <xsd:annotation>
44                                        <xsd:documentation>Information about the XML message instance.  </xsd:documentation>
45                                </xsd:annotation>
46                        </xsd:element>
47
48                        <xsd:element name="productVolumeSet" minOccurs="1">
49                                <xsd:annotation>
50                                        <xsd:documentation>A collector for product volume reports.</xsd:documentation>
51                                </xsd:annotation>
52                                <xsd:complexType>
53                                        <xsd:sequence>
54                                                <xsd:element name="productVolume" type="witsml:co_productVolume" maxOccurs="unbounded">
55                                                        <xsd:annotation>
56                                                                <xsd:documentation>A single product volume report.</xsd:documentation>
57                                                        </xsd:annotation>
58                                                </xsd:element>
59                                        </xsd:sequence>
60                                </xsd:complexType>
61                        </xsd:element>
62               
63                </xsd:sequence>
64                <xsd:attribute name="version" type="witsml:schemaVersionString" use="required">
65                        <xsd:annotation>
66                                <xsd:documentation>Data object schema version.  The fourth level must match the
67                                version of the schema constraints (enumerations and XML loader files) that are assumed
68                                by the document instance.</xsd:documentation>
69                        </xsd:annotation>
70                </xsd:attribute>
71        </xsd:complexType>
72
73        <xsd:complexType name="cs_documentInfo">
74                <xsd:annotation>
75                        <xsd:documentation>A  schema to capture a set of data that is
76                        relevant for many exchange documents. It includes information about the
77                        file that was created, and high-level information about the data that is
78                        being exchanged within the file.</xsd:documentation>
79                </xsd:annotation>
80       
81                <xsd:sequence>
82                        <xsd:element name="DocumentName" type="witsml:nameStruct" minOccurs="1" maxOccurs="1">
83                        <xsd:annotation>
84                                        <xsd:documentation>An identifier for the document. This is
85                                        intended to be unique within the context of the NamingSystem.</xsd:documentation>
86                                </xsd:annotation>
87                        </xsd:element>
88                        <xsd:element name="DocumentDate" type="witsml:timestamp" minOccurs="0">
89                                <xsd:annotation>
90                                        <xsd:documentation>The date of the creation of the document.
91                                        This is not the same as the date that the file was created.
92                                        For this date, the document is considered to be the set of
93                                        information associated with this document information.
94                                        for example, the document may be a seismic binset.
95                                        this represents the date that the binset was created.
96                                        the FileCreation information would capture the date that
97                                        the XML file was created to send or exchange the binset.</xsd:documentation>
98                                </xsd:annotation>
99                        </xsd:element>
100                        <xsd:element name="AuditTrail" type="witsml:auditType" minOccurs="0">
101                                <xsd:annotation>
102                                        <xsd:documentation>A collection of events that can document the
103                                        history of the data.</xsd:documentation>
104                                </xsd:annotation>
105                        </xsd:element>
106                        <xsd:element name="Owner" type="witsml:nameString" minOccurs="0">
107                                <xsd:annotation>
108                                        <xsd:documentation>The owner of the data.</xsd:documentation>
109                                </xsd:annotation>
110                        </xsd:element>
111                </xsd:sequence>
112        </xsd:complexType>
113
114        <xsd:complexType name="auditType">
115                <xsd:annotation>
116                        <xsd:documentation>The audit records what happened to the data, to produce
117                                the data that is in this file. It consists of one or more events.</xsd:documentation>
118                </xsd:annotation>
119                <xsd:sequence>
120                        <xsd:element name="Event" type="witsml:eventType" maxOccurs="unbounded"/>
121                </xsd:sequence>
122        </xsd:complexType>
123
124        <xsd:complexType name="eventType">
125                <xsd:annotation>
126                        <xsd:documentation>An event type captures the basic information about an
127                        event that has affected the data.</xsd:documentation>
128                </xsd:annotation>
129                <xsd:sequence>
130                        <xsd:element name="EventDate" type="witsml:timestamp">
131                                <xsd:annotation>
132                                        <xsd:documentation>The date on which the event took place.</xsd:documentation>
133                                </xsd:annotation>
134                        </xsd:element>
135                        <xsd:element name="ResponsibleParty" type="witsml:nameString" minOccurs="0">
136                                <xsd:annotation>
137                                        <xsd:documentation>The party responsible for the event.</xsd:documentation>
138                                </xsd:annotation>
139                        </xsd:element>
140                        <xsd:element name="Comment" type="witsml:commentString" minOccurs="0">
141                                <xsd:annotation>
142                                        <xsd:documentation>A free form comment that can further
143                                        define the event that occurred.</xsd:documentation>
144                                </xsd:annotation>
145                        </xsd:element>
146                        <xsd:element name="Version" type="witsml:commentString" minOccurs="0">
147                                <xsd:annotation>
148                                        <xsd:documentation>The current document version.</xsd:documentation>
149                                </xsd:annotation>
150                        </xsd:element>
151                </xsd:sequence>
152        </xsd:complexType>
153
154        <xsd:complexType name="co_productVolume">
155                <xsd:sequence>
156                        <xsd:group ref="witsml:grp_productVolume" minOccurs="1">
157                                <xsd:annotation>
158                                        <xsd:documentation>The non-contextual content for a product volume report.</xsd:documentation>
159                                </xsd:annotation>
160                        </xsd:group>
161                </xsd:sequence>
162                <xsd:attributeGroup ref="witsml:attgrp_uid">
163                        <xsd:annotation>
164                                <xsd:documentation>Unique identifier for the product volume report.</xsd:documentation>
165                        </xsd:annotation>
166                </xsd:attributeGroup>
167        </xsd:complexType>
168
169        <xsd:group name="grp_productVolume">
170                <xsd:annotation>
171                        <xsd:documentation>The non-contextual content of a WITSML Product Volume object.</xsd:documentation>
172                </xsd:annotation>
173                <xsd:sequence>
174                        <xsd:element name="kind" type="witsml:kindString" minOccurs="0" maxOccurs="1">
175                                <xsd:annotation>
176                                        <xsd:documentation>The type of report.</xsd:documentation>
177                                </xsd:annotation>
178                        </xsd:element>
179                        <xsd:element name="periodKind" type="witsml:ReportingPeriod" minOccurs="1" maxOccurs="1">
180                                <xsd:annotation>
181                                        <xsd:documentation>The type of period that is being reported.
182                                        This value must be consistent with the reporting start and end values.</xsd:documentation>
183                                </xsd:annotation>
184                        </xsd:element>
185                        <xsd:element name="month" type="witsml:YearMonthType" minOccurs="1" maxOccurs="1">
186                                <xsd:annotation>
187                                        <xsd:documentation>The month that the report represents.</xsd:documentation>
188                                </xsd:annotation>
189                        </xsd:element>
190                        <xsd:element name="facility" type="witsml:cs_productVolumeFacility" minOccurs="1" maxOccurs="unbounded">
191                                <xsd:annotation>
192                                        <xsd:documentation>A facility for which product information is being reported.</xsd:documentation>
193                                </xsd:annotation>
194                        </xsd:element>
195                </xsd:sequence>
196        </xsd:group>
197
198        <xsd:complexType name="cs_productVolumeFacility">
199                <xsd:annotation>
200                        <xsd:documentation>WITSML - Report Facility Component Schema.</xsd:documentation>
201                </xsd:annotation>
202                <xsd:sequence>
203                        <xsd:element name="name" type="witsml:facilityIdentifierStruct" minOccurs="1" maxOccurs="1">
204                                <xsd:annotation>
205                                        <xsd:documentation>The name of the facility. The name can be qualified by a naming system.
206                                        This also defines the kind of facility.</xsd:documentation>
207                                </xsd:annotation>
208                        </xsd:element>
209                        <xsd:element name="flow" type="witsml:cs_productVolumeFlowMPR" minOccurs="1" maxOccurs="unbounded">
210                                <xsd:annotation>
211                                        <xsd:documentation>Reports a flow of a product.</xsd:documentation>
212                                </xsd:annotation>
213                        </xsd:element>
214                </xsd:sequence>
215                <xsd:attributeGroup ref="witsml:attgrp_uid">
216                        <xsd:annotation>
217                                <xsd:documentation>Unique identifier for the Product Volume Facility.  </xsd:documentation>
218                        </xsd:annotation>
219                </xsd:attributeGroup>
220        </xsd:complexType>
221
222        <xsd:complexType name="cs_productVolumeFlow">
223                <xsd:annotation>
224                        <xsd:documentation>WITSML - Product Volume Flow Component Schema.</xsd:documentation>
225                </xsd:annotation>
226                <xsd:sequence>
227                        <xsd:element name="kind" type="witsml:ReportingFlow" minOccurs="1" maxOccurs="1">
228                                <xsd:annotation>
229                                        <xsd:documentation>Indicates the type of flow that is being reported.
230                                        The type of flow is an indication of the overall source or target of the flow.
231                                        A production flow has one or more wells as the originating source.
232                                        An injection flow has one or more wells as the ultimate target.
233                                        An import flow has an offsite source.
234                                        An export flow has an offiste target.
235                                        A consumption flow generally has a kind of equipment as a target.</xsd:documentation>
236                                </xsd:annotation>
237                        </xsd:element>
238                        <xsd:element name="qualifier" type="witsml:FlowQualifier" minOccurs="0" maxOccurs="1">
239                                <xsd:annotation>
240                                        <xsd:documentation>Qualifies the type of flow that is being reported.</xsd:documentation>
241                                </xsd:annotation>
242                        </xsd:element>
243                </xsd:sequence>
244                <xsd:attributeGroup ref="witsml:attgrp_uid">
245                        <xsd:annotation>
246                                <xsd:documentation>Unique identifier for the Product Volume Flow.  </xsd:documentation>
247                        </xsd:annotation>
248                </xsd:attributeGroup>
249        </xsd:complexType>
250
251        <xsd:complexType name="cs_productVolumeFlowMPR">
252                <xsd:complexContent>
253                        <xsd:extension base="witsml:cs_productVolumeFlow">
254                                <xsd:sequence>
255                                        <xsd:element name="product" type="witsml:cs_productVolumeProductMPR" minOccurs="1" maxOccurs="unbounded">
256                                                <xsd:annotation>
257                                                        <xsd:documentation>Reports a product flow stream.</xsd:documentation>
258                                                </xsd:annotation>
259                                        </xsd:element>
260                                </xsd:sequence>
261                        </xsd:extension>
262                </xsd:complexContent>
263        </xsd:complexType>
264
265        <xsd:complexType name="cs_productVolumeProduct">
266                <xsd:annotation>
267                        <xsd:documentation>WITSML - Product Volume Product Component Schema.</xsd:documentation>
268                </xsd:annotation>
269                <xsd:sequence>
270                        <xsd:element name="kind" type="witsml:ReportingProduct" minOccurs="1" maxOccurs="1">
271                                <xsd:annotation>
272                                        <xsd:documentation>The type of product that is being reported.</xsd:documentation>
273                                </xsd:annotation>
274                        </xsd:element>
275                </xsd:sequence>
276
277                <xsd:attributeGroup ref="witsml:attgrp_uid">
278                        <xsd:annotation>
279                        <xsd:documentation>Unique identifier for the Product Volume Product.  </xsd:documentation>
280                        </xsd:annotation>
281                </xsd:attributeGroup>
282
283        </xsd:complexType>
284
285        <xsd:complexType name="cs_productVolumeProductMPR">
286                <xsd:complexContent>
287                        <xsd:extension base="witsml:cs_productVolumeProduct">
288                                <xsd:sequence>
289                                       
290                                        <xsd:choice>
291                                                <xsd:annotation>
292                                                        <xsd:documentation>The density of the product.</xsd:documentation>
293                                                </xsd:annotation>
294       
295                                                <xsd:element name="density" type="witsml:densityMeasure" minOccurs="0" maxOccurs="1">
296                                                        <xsd:annotation>
297                                                                <xsd:documentation>The density of the product.</xsd:documentation>
298                                                        </xsd:annotation>
299                                                </xsd:element>
300                                                <xsd:element name="densityStd" type="witsml:densityMeasure" minOccurs="0" maxOccurs="1">
301                                                        <xsd:annotation>
302                                                                <xsd:documentation>The density of the product after it has been
303                                                                corrected to standard temperature and pressure.</xsd:documentation>
304                                                        </xsd:annotation>
305                                                </xsd:element>
306                                        </xsd:choice>
307
308                                        <xsd:choice>
309                                                <xsd:annotation>
310                                                        <xsd:documentation>The volume of the product.</xsd:documentation>
311                                                </xsd:annotation>
312       
313                                                <xsd:element name="volume" type="witsml:volumeMeasure" minOccurs="1" maxOccurs="1">
314                                                        <xsd:annotation>
315                                                                <xsd:documentation>The uncorrected volume of the product.
316                                                                A positive value for an inlet port indicates flow into the port.
317                                                                A negative value for an inlet port indicates flow out of the port.
318                                                                A positive value for an outlet port indicates flow out of the port.
319                                                                A negative value for an outlet port indicates flow into of the port.
320                                                                This convention is designed such that a positive sign indicates
321                                                                an expected condition based on the intended port direction
322                                                                while a negative sign indicates an anomolous condition.</xsd:documentation>
323                                                        </xsd:annotation>
324                                                </xsd:element>
325                                                <xsd:element name="volumeStd" type="witsml:volumeMeasure" minOccurs="1" maxOccurs="1">
326                                                        <xsd:annotation>
327                                                                <xsd:documentation>The volume of the fluid, corrected to standard
328                                                                conditions of temperature and pressure. The sign of the value
329                                                                should conform to the above description of volume.</xsd:documentation>
330                                                        </xsd:annotation>
331                                                </xsd:element>
332                                        </xsd:choice>
333
334                                        <xsd:element name="energy" type="witsml:workMeasure" minOccurs="1" maxOccurs="1">
335                                                <xsd:annotation>
336                                                        <xsd:documentation>The company share of the energy of the product.</xsd:documentation>
337                                                </xsd:annotation>
338                                        </xsd:element>
339
340                                        <xsd:element name="contractPart" type="witsml:cs_shareVolumeContractPart" minOccurs="0" maxOccurs="unbounded"/>
341                                </xsd:sequence>
342                        </xsd:extension>
343                </xsd:complexContent>
344        </xsd:complexType>
345
346        <xsd:complexType name="cs_shareVolumeContractPart">
347                <xsd:sequence>
348                        <xsd:element name="kind" type="witsml:ContractPartTypes">
349                                <xsd:annotation>
350                                        <xsd:documentation>The side of the contract this is a part of.</xsd:documentation>
351                                </xsd:annotation>
352                        </xsd:element>
353                       
354                        <xsd:element name="destination" type="witsml:destinationType" minOccurs="0" maxOccurs="1"/>
355                        <xsd:element name="companyShare" type="witsml:cs_shareVolumeProduct" minOccurs="1" maxOccurs="unbounded"/>
356
357                </xsd:sequence>
358        </xsd:complexType>
359
360        <xsd:complexType name="cs_shareVolumeProduct">
361                <xsd:sequence>
362                        <xsd:element name="company" type="witsml:nameStruct" minOccurs="0" maxOccurs="1"/>                     
363                        <xsd:element name="share" type="witsml:companyShareType" minOccurs="0" maxOccurs="1"/>
364                </xsd:sequence>
365        </xsd:complexType>
366
367        <xsd:complexType name="companyShareType">
368                <xsd:sequence>
369                        <xsd:choice>
370                                <xsd:annotation>
371                                        <xsd:documentation>The company share of the density of the product.</xsd:documentation>
372                                </xsd:annotation>
373                                <xsd:element name="density" type="witsml:densityMeasure" minOccurs="0" maxOccurs="1">
374                                        <xsd:annotation>
375                                                <xsd:documentation>The company share of the density of the product.</xsd:documentation>
376                                        </xsd:annotation>
377                                </xsd:element>
378                                <xsd:element name="densityStd" type="witsml:densityMeasure" minOccurs="0" maxOccurs="1">
379                                        <xsd:annotation>
380                                                <xsd:documentation>The company share of the density of the product after it has been
381                                                                corrected to standard temperature and pressure.</xsd:documentation>
382                                        </xsd:annotation>
383                                </xsd:element>
384                        </xsd:choice>                   
385                        <xsd:choice>
386                                <xsd:annotation>
387                                        <xsd:documentation>The company share of the volume of the product.</xsd:documentation>
388                                </xsd:annotation>
389                                <xsd:element name="volume" type="witsml:volumeMeasure" minOccurs="1" maxOccurs="1">
390                                        <xsd:annotation>
391                                                <xsd:documentation>The company share of the volume of the product.</xsd:documentation>
392                                        </xsd:annotation>
393                                </xsd:element>
394                                <xsd:element name="volumeStd" type="witsml:volumeMeasure" minOccurs="1" maxOccurs="1">
395                                        <xsd:annotation>
396                                                <xsd:documentation>The company share of the volume of the product after it has been
397                                                                corrected to standard temperature and pressure.</xsd:documentation>
398                                        </xsd:annotation>
399                                </xsd:element>
400                        </xsd:choice>
401                        <xsd:element name="energy" type="witsml:workMeasure" minOccurs="1" maxOccurs="1">
402                                <xsd:annotation>
403                                        <xsd:documentation>The company share of the energy of the product.</xsd:documentation>
404                                </xsd:annotation>
405                        </xsd:element>
406                </xsd:sequence>
407        </xsd:complexType>
408
409        <xsd:complexType name="destinationType">
410                <xsd:annotation>
411                        <xsd:documentation>The destination... .</xsd:documentation>
412                </xsd:annotation>
413                <xsd:sequence>
414                        <xsd:element name="name" type="witsml:nameString" minOccurs="0" />
415                        <xsd:element name="country" type="witsml:nameString" minOccurs="1" />
416                        <xsd:element name="kind" type="witsml:DestinationTypes" minOccurs="1" />
417                </xsd:sequence>
418        </xsd:complexType>
419
420        <xsd:complexType name="SaleDate">
421                <xsd:simpleContent>
422                        <xsd:extension base="witsml:abstractDate">
423                                <xsd:attribute name="kind" type="witsml:SaleDateTypes"/>
424                        </xsd:extension>
425                </xsd:simpleContent>
426        </xsd:complexType>
427
428        <xsd:simpleType name="ContractPartTypes">
429                <xsd:restriction base="witsml:abstractTypeEnum">
430                        <xsd:enumeration value="seller"/>
431                        <xsd:enumeration value="buyer"/>
432                </xsd:restriction>
433        </xsd:simpleType>
434
435        <xsd:simpleType name="DestinationTypes">
436                <xsd:restriction base="witsml:abstractTypeEnum">
437                        <xsd:enumeration value="unknown"/>
438                        <xsd:enumeration value="town"/>
439                        <xsd:enumeration value="harbor"/>
440                </xsd:restriction>
441        </xsd:simpleType>
442
443        <xsd:simpleType name="FlowQualifier">
444                <xsd:annotation>
445                        <xsd:documentation>Defines qualifiers for type of flow.</xsd:documentation>
446                </xsd:annotation>
447                <xsd:restriction base="witsml:abstractTypeEnum">
448                        <xsd:enumeration value="allocated">
449                                <xsd:annotation>
450                                        <xsd:documentation>Indicates product characteristics that were allocated back to
451                                        a well as opposed to being measured at the well.</xsd:documentation>
452                                </xsd:annotation>
453                        </xsd:enumeration>
454                        <xsd:enumeration value="measured">
455                                <xsd:annotation>
456                                        <xsd:documentation>Indicates product volumes that were actually
457                                        measured at the port.</xsd:documentation>
458                                </xsd:annotation>
459                        </xsd:enumeration>
460                </xsd:restriction>
461        </xsd:simpleType>
462
463        <xsd:simpleType name="ReportingFacility">
464                <xsd:restriction base="witsml:abstractTypeEnum">
465                        <xsd:enumeration value="terminal"/>
466                </xsd:restriction>
467        </xsd:simpleType>
468
469        <xsd:simpleType name="ReportingFlow">
470                <xsd:annotation>
471                        <xsd:documentation>Defines the types of flows for volume reports.</xsd:documentation>
472                </xsd:annotation>
473                <xsd:restriction base="witsml:abstractTypeEnum">
474                        <xsd:enumeration value="sale - gas external"/>
475                </xsd:restriction>
476        </xsd:simpleType>
477
478        <xsd:simpleType name="ReportingPeriod">
479                <xsd:restriction base="witsml:abstractTypeEnum">
480                        <xsd:enumeration value="month">
481                                <xsd:annotation>
482                                        <xsd:documentation>A period of one calendar month.</xsd:documentation>
483                                </xsd:annotation>
484                        </xsd:enumeration>
485                </xsd:restriction>
486        </xsd:simpleType>
487
488        <xsd:simpleType name="ReportingProduct">
489                <xsd:restriction base="witsml:abstractTypeEnum">
490                        <!-- TODO Documentation -->
491                        <xsd:enumeration value="dry gas"/>
492                </xsd:restriction>
493        </xsd:simpleType>
494
495        <xsd:simpleType name="SaleDateTypes">
496                <xsd:restriction base="witsml:abstractTypeEnum">
497                        <xsd:enumeration value="bill of lading date"/>
498                </xsd:restriction>
499        </xsd:simpleType>
500
501        <xsd:complexType name="facilityIdentifierStruct" final="">
502                <xsd:annotation>
503                        <xsd:documentation>Identifies a facility.</xsd:documentation>
504                </xsd:annotation>
505                <xsd:simpleContent>
506                        <xsd:extension base="witsml:abstractNameString">
507                                <xsd:attribute name="kind" type="witsml:ReportingFacility" use="required">
508                                        <xsd:annotation>
509                                                <xsd:documentation>The kind of facility.</xsd:documentation>
510                                        </xsd:annotation>
511                                </xsd:attribute>
512                                <xsd:attribute name="namingSystem" type="witsml:nameString" use="required">
513                                        <xsd:annotation>
514                                                <xsd:documentation>The naming system within which the name is unique.
515                                                For example, API or NPD.</xsd:documentation>
516                                        </xsd:annotation>
517                                </xsd:attribute>
518                                <xsd:attribute name="uidRef" type="witsml:uidString" use="optional">
519                                        <xsd:annotation>
520                                                <xsd:documentation>If the facility is defined and instantiated
521                                                within the context of a WITSML server, this is a pointer
522                                                to the uid value of that object instance.</xsd:documentation>
523                                        </xsd:annotation>
524                                </xsd:attribute>
525                        </xsd:extension>
526                </xsd:simpleContent>
527        </xsd:complexType>
528
529        <xsd:simpleType name="nonNegativeFraction">
530                <xsd:annotation>
531                        <xsd:documentation>A floating point value between zero (inclusive) and one (inclusive)</xsd:documentation>
532                </xsd:annotation>
533                <xsd:restriction base="witsml:abstractDouble">
534                        <xsd:minInclusive value="0">
535                                <xsd:annotation>
536                                        <xsd:documentation>This value can be zero but cannot be negative.</xsd:documentation>
537                                </xsd:annotation>
538                        </xsd:minInclusive>
539                        <xsd:maxInclusive value="1">
540                                <xsd:annotation>
541                                        <xsd:documentation>This value can not be greater than one.</xsd:documentation>
542                                </xsd:annotation>
543                        </xsd:maxInclusive>
544                </xsd:restriction>
545        </xsd:simpleType>
546
547        <xsd:complexType name="densityMeasure">
548                <xsd:simpleContent>
549                        <xsd:extension base="witsml:abstractMeasure">
550                                <xsd:attribute name="uom" type="witsml:densityUom" use="required" />
551                        </xsd:extension>
552                </xsd:simpleContent>
553        </xsd:complexType>
554
555        <xsd:simpleType name="densityUom">
556                <xsd:restriction base="witsml:abstractUomEnum">
557                        <xsd:enumeration value="kg/m3" />
558                </xsd:restriction>
559        </xsd:simpleType>
560
561        <xsd:complexType name="workMeasure">
562                <xsd:simpleContent>
563                        <xsd:extension base="witsml:abstractMeasure">
564                                <xsd:attribute name="uom" type="witsml:workUom" use="required"/>
565                        </xsd:extension>
566                </xsd:simpleContent>
567        </xsd:complexType>
568
569        <xsd:simpleType name="workUom">
570                <xsd:restriction base="witsml:abstractUomEnum">
571                        <xsd:enumeration value="MJ"/>
572                        <xsd:enumeration value="kW.h"/>
573                </xsd:restriction>
574        </xsd:simpleType>
575
576        <xsd:complexType name="massMeasure">
577                <xsd:simpleContent>
578                        <xsd:extension base="witsml:abstractMeasure">
579                                <xsd:attribute name="uom" type="witsml:massUom" use="required"/>
580                        </xsd:extension>
581                </xsd:simpleContent>
582        </xsd:complexType>
583
584        <xsd:simpleType name="massUom">
585                <xsd:restriction base="witsml:abstractUomEnum">
586                        <xsd:enumeration value="kg"/>
587                        <xsd:enumeration value="t"/>
588                </xsd:restriction>
589        </xsd:simpleType>
590
591        <xsd:complexType name="volumeMeasure">
592                <xsd:simpleContent>
593                        <xsd:extension base="witsml:abstractMeasure">
594                                <xsd:attribute name="uom" type="witsml:volumeUom" use="required"/>
595                        </xsd:extension>
596                </xsd:simpleContent>
597        </xsd:complexType>
598
599        <xsd:simpleType name="volumeUom">
600                <xsd:restriction base="witsml:abstractUomEnum">
601                        <xsd:enumeration value="m3"/>
602                        <xsd:enumeration value="Nm3"/>
603                </xsd:restriction>
604        </xsd:simpleType>
605
606        <xsd:simpleType name="commentString">
607                <xsd:annotation>
608                        <xsd:documentation>A comment or remark intended for human consumption. There should be no assumption that semantics can be extracted from this field by a computer.
609                        Neither should there be an assumption that any two humans will interpret the information in the same way (i.e., it may not be interoperable).</xsd:documentation>
610                </xsd:annotation>
611                <xsd:restriction base="witsml:abstractCommentString" />
612        </xsd:simpleType>
613
614        <xsd:simpleType name="kindString">
615                <xsd:annotation>
616                        <xsd:documentation>A community assigned human recognizable name. This type of value is intended to be unique and is generally a candidate to be constrained to an
617                        enumerated list.</xsd:documentation>
618                </xsd:annotation>
619                <xsd:restriction base="witsml:abstractTypeEnum" />
620        </xsd:simpleType>
621
622        <xsd:simpleType name="nameString">
623                <xsd:annotation>
624                        <xsd:documentation>A user assigned human recognizable contextual name of something. There should be no assumption that (interoperable) semantic information will be
625                        extracted from the name by a third party. This type of value is generally not guaranteed to be unique and is not a candidate to be replaced by an
626                        enumeration.</xsd:documentation>
627                </xsd:annotation>
628                <xsd:restriction base="witsml:abstractNameString" />
629        </xsd:simpleType>
630
631        <xsd:complexType name="nameStruct">
632                <xsd:annotation>
633                        <xsd:documentation>The name of something within a naming system.</xsd:documentation>
634                </xsd:annotation>
635                <xsd:simpleContent>
636                        <xsd:extension base="witsml:abstractNameString">
637                                <xsd:attribute name="namingSystem" type="witsml:nameString" use="optional">
638                                        <xsd:annotation>
639                                        <xsd:documentation>The naming system within the name is (hopefully) unique.</xsd:documentation>
640                                        </xsd:annotation>
641                                </xsd:attribute>
642                        </xsd:extension>
643                </xsd:simpleContent>
644        </xsd:complexType>
645
646        <xsd:simpleType name="schemaVersionString" final="#all">
647                <xsd:annotation>
648                        <xsd:documentation>The version of the schema.
649                        The first three levels are fixed. The fourth level can vary
650                        to represent on the constraints defined in enumerations and
651                        XML loader files. </xsd:documentation>
652                </xsd:annotation>
653                <xsd:restriction base="witsml:abstractString">
654                        <xsd:maxLength value="16"/>
655                        <xsd:pattern value="1\.3\.1\.[1-9]?[0-9]"/>
656                </xsd:restriction>
657        </xsd:simpleType>
658
659        <xsd:simpleType name="timestamp">
660                <xsd:annotation>
661                        <xsd:documentation>A date with the time of day and an optional time zone. While the time zone is optional, it is strongly advised that the zone always be specified in
662                        each date time value.</xsd:documentation>
663                </xsd:annotation>
664                <xsd:restriction base="witsml:abstractDateTime" />
665        </xsd:simpleType>
666
667        <xsd:simpleType name="uidString">
668                <xsd:annotation>
669                        <xsd:documentation>A locally unique identifier. The value is not intended to convey any semantic content (e.g., it may be computer generated). The value is only required
670                        to be unique within a context in a document (e.g., defined via key and keyref). There is no guarantee that the same data in multiple documents will utilize the same uid
671                        value unless enforced by the source of the document (e.g., a document server).</xsd:documentation>
672                </xsd:annotation>
673                <xsd:restriction base="witsml:abstractUidString" />
674        </xsd:simpleType>
675
676        <xsd:simpleType name="YearMonthType">
677                <xsd:annotation>
678                        <xsd:documentation>Year and month type in the format of YYYY-MM</xsd:documentation>
679                </xsd:annotation>
680                <xsd:restriction base="xsd:gYearMonth">
681                        <xsd:pattern value="[1-9][0-9]{3}\-.*" />
682                </xsd:restriction>
683        </xsd:simpleType>
684
685        <xsd:simpleType name="abstractCommentString">
686                <xsd:annotation>
687                        <xsd:documentation>The intended abstract supertype of all comments or remarks intended for human consumption. There should be no assumption that semantics can be
688                        extracted from the field by a computer. Neither should there be an assumption that any two humans will interpret the information in the same way (i.e., it may not be
689                        interoperable).</xsd:documentation>
690                </xsd:annotation>
691                <xsd:restriction base="witsml:abstractMaximumLengthString" />
692        </xsd:simpleType>
693
694        <xsd:simpleType name="abstractDateTime">
695                <xsd:annotation>
696                        <xsd:documentation>This type disallows an "empty" dateTime value. This type should not be used directly except to derive another type. All dateTime types should be
697                        derived from this type rather than using xsd:dateTime.</xsd:documentation>
698                </xsd:annotation>
699                <xsd:restriction base="xsd:dateTime">
700                        <xsd:pattern value=".+" />
701                </xsd:restriction>
702        </xsd:simpleType>
703
704        <xsd:simpleType name="abstractDate">
705                <xsd:annotation>
706                        <xsd:documentation>This type disallows an "empty" date value. This type should not be used directly except to derive another type. All dateTime types should be derived
707                        from this type rather than using xsd:dateTime.</xsd:documentation>
708                </xsd:annotation>
709                <xsd:restriction base="xsd:date">
710                        <xsd:pattern value=".+" />
711                </xsd:restriction>
712        </xsd:simpleType>
713
714        <xsd:simpleType name="abstractTypeEnum">
715                <xsd:annotation>
716                        <xsd:documentation>The intended abstract supertype of all enumerated "types". This abstract type allows the maximum length of a type enumeration to be centrally defined.
717                        This type should not be used directly except to derive another type. It should also be used for uncontrolled strings which are candidates to become enumerations at a
718                        future date.</xsd:documentation>
719                </xsd:annotation>
720                <xsd:restriction base="witsml:abstractString">
721                        <xsd:maxLength value="40" />
722                </xsd:restriction>
723        </xsd:simpleType>
724
725        <xsd:simpleType name="abstractDouble">
726                <xsd:annotation>
727                        <xsd:documentation>This type disallows an "empty" double value. This type should not be used directly except to derive another type.</xsd:documentation>
728                </xsd:annotation>
729                <xsd:restriction base="xsd:double">
730                        <xsd:pattern value=".+" />
731                </xsd:restriction>
732        </xsd:simpleType>
733
734        <xsd:simpleType name="abstractMaximumLengthString">
735                <xsd:annotation>
736                        <xsd:documentation>This defines the maximum acceptable length of a string that can be stored in a data base.</xsd:documentation>
737                </xsd:annotation>
738                <xsd:restriction base="witsml:abstractString">
739                        <xsd:maxLength value="4000">
740                                <xsd:annotation>
741                                        <xsd:documentation>This value should be the smallest "maximum size of a variable length character type" in commonly used DBMSs. This is the maximum size of a
742                                        VARCHAR2 in Oracle 8.</xsd:documentation>
743                                </xsd:annotation>
744                        </xsd:maxLength>
745                </xsd:restriction>
746        </xsd:simpleType>
747
748        <xsd:complexType name="abstractMeasure">
749                <xsd:annotation>
750                        <xsd:documentation>The intended abstract supertype of all quantities that have a value with a unit of measure. The unit of measure is in the uom attribute of the
751                        subtypes. This type allows all quantities to be profiled to be a 'float' instead of a 'double'.</xsd:documentation>
752                </xsd:annotation>
753                <xsd:simpleContent>
754                        <xsd:extension base="witsml:abstractDouble" />
755                </xsd:simpleContent>
756        </xsd:complexType>
757
758        <xsd:simpleType name="abstractNameString">
759                <xsd:annotation>
760                        <xsd:documentation>The intended abstract supertype of all user assigned human recognizable contextual name types. There should be no assumption that (interoperable)
761                                semantic information will be extracted from the name by a third party. This type of value is generally not guaranteed to be unique and is not a candidate to be replaced
762                                by an enumeration.</xsd:documentation>
763                </xsd:annotation>
764                <xsd:restriction base="witsml:abstractString">
765                        <xsd:maxLength value="64" />
766                </xsd:restriction>
767        </xsd:simpleType>
768
769        <xsd:simpleType name="abstractString">
770                <xsd:annotation>
771                        <xsd:documentation>The intended abstract supertype of all strings. This abstract type allows the control over whitespace for all strings to be defined at a high level.
772                        This type should not be used directly except to derive another type.</xsd:documentation>
773                </xsd:annotation>
774                <xsd:restriction base="xsd:string">
775                        <xsd:whiteSpace value="collapse">
776                                <xsd:annotation>
777                                        <xsd:documentation>Replace tab, line feed and carriage return with a space, collapse contiguous sequences of spaces to a single space and then remove leading and
778                                        trailing spaces.</xsd:documentation>
779                                </xsd:annotation>
780                        </xsd:whiteSpace>
781                        <xsd:minLength value="1">
782                                <xsd:annotation>
783                                        <xsd:documentation>The empty string is not allowed. This constraint conbined with the whiteSpace collapse constraint means that a blank value is not
784                                        allowed.</xsd:documentation>
785                                </xsd:annotation>
786                        </xsd:minLength>
787                </xsd:restriction>
788        </xsd:simpleType>
789
790        <xsd:simpleType name="abstractUidString">
791                <xsd:annotation>
792                        <xsd:documentation>The intended abstract supertype of all locally unique identifiers. The value is not intended to convey any semantic content (e.g., it may be computer
793                        generated). The value is only required to be unique within a context in a document (e.g., defined via key and keyref). There is no guarantee that the same data in
794                        multiple documents will utilize the same uid value unless enforced by the source of the document (e.g., a document server). Spaces are not allowed.</xsd:documentation>
795                </xsd:annotation>
796                <xsd:restriction base="witsml:abstractString">
797                        <xsd:maxLength value="64" />
798                                <xsd:pattern value="[^ ]*" />
799                </xsd:restriction>
800        </xsd:simpleType>
801
802        <xsd:simpleType name="abstractUomEnum">
803                <xsd:annotation>
804                        <xsd:documentation>The intended abstract supertype of all "units of measure". This abstract type allows the maximum length of a UOM enumeration to be centrally defined.
805                        This type is abstract in the sense that it should not be used directly except to derive another type.</xsd:documentation>
806                </xsd:annotation>
807                <xsd:restriction base="witsml:abstractString">
808                        <xsd:maxLength value="24" />
809                </xsd:restriction>
810        </xsd:simpleType>
811
812</xsd:schema>
Note: See TracBrowser for help on using the browser.