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

Revision 17, 32.5 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="issuedBy" type="witsml:cs_businessAssociate" minOccurs="0" maxOccurs="1">
191                                <xsd:annotation>
192                                        <xsd:documentation>The person or company that issued the report. This may
193                                        contain the role of the person or company within the context of the report.</xsd:documentation>
194                                </xsd:annotation>
195                        </xsd:element>
196                        <xsd:element name="facility" type="witsml:cs_productVolumeFacility" minOccurs="1" maxOccurs="unbounded">
197                                <xsd:annotation>
198                                        <xsd:documentation>A facility for which product information is being reported.</xsd:documentation>
199                                </xsd:annotation>
200                        </xsd:element>
201                </xsd:sequence>
202        </xsd:group>
203
204        <xsd:complexType name="cs_productVolumeFacility">
205                <xsd:annotation>
206                        <xsd:documentation>WITSML - Report Facility Component Schema.</xsd:documentation>
207                </xsd:annotation>
208                <xsd:sequence>
209                        <xsd:element name="name" type="witsml:facilityIdentifierStruct" minOccurs="1" maxOccurs="1">
210                                <xsd:annotation>
211                                        <xsd:documentation>The name of the facility. The name can be qualified by a naming system.
212                                        This also defines the kind of facility.</xsd:documentation>
213                                </xsd:annotation>
214                        </xsd:element>
215                        <xsd:element name="flow" type="witsml:cs_productVolumeFlowMPR" minOccurs="1" maxOccurs="unbounded">
216                                <xsd:annotation>
217                                        <xsd:documentation>Reports a flow of a product.</xsd:documentation>
218                                </xsd:annotation>
219                        </xsd:element>
220                </xsd:sequence>
221                <xsd:attributeGroup ref="witsml:attgrp_uid">
222                        <xsd:annotation>
223                                <xsd:documentation>Unique identifier for the Product Volume Facility.  </xsd:documentation>
224                        </xsd:annotation>
225                </xsd:attributeGroup>
226        </xsd:complexType>
227
228        <xsd:complexType name="cs_productVolumeFlow">
229                <xsd:annotation>
230                        <xsd:documentation>WITSML - Product Volume Flow Component Schema.</xsd:documentation>
231                </xsd:annotation>
232                <xsd:sequence>
233                        <xsd:element name="kind" type="witsml:ReportingFlow" minOccurs="1" maxOccurs="1">
234                                <xsd:annotation>
235                                        <xsd:documentation>Indicates the type of flow that is being reported.
236                                        The type of flow is an indication of the overall source or target of the flow.
237                                        A production flow has one or more wells as the originating source.
238                                        An injection flow has one or more wells as the ultimate target.
239                                        An import flow has an offsite source.
240                                        An export flow has an offiste target.
241                                        A consumption flow generally has a kind of equipment as a target.</xsd:documentation>
242                                </xsd:annotation>
243                        </xsd:element>
244                        <xsd:element name="qualifier" type="witsml:FlowQualifier" minOccurs="0" maxOccurs="1">
245                                <xsd:annotation>
246                                        <xsd:documentation>Qualifies the type of flow that is being reported.</xsd:documentation>
247                                </xsd:annotation>
248                        </xsd:element>
249                </xsd:sequence>
250                <xsd:attributeGroup ref="witsml:attgrp_uid">
251                        <xsd:annotation>
252                                <xsd:documentation>Unique identifier for the Product Volume Flow.  </xsd:documentation>
253                        </xsd:annotation>
254                </xsd:attributeGroup>
255        </xsd:complexType>
256
257        <xsd:complexType name="cs_productVolumeFlowMPR">
258                <xsd:complexContent>
259                        <xsd:extension base="witsml:cs_productVolumeFlow">
260                                <xsd:sequence>
261                                        <xsd:element name="product" type="witsml:cs_productVolumeProductMPR" minOccurs="1" maxOccurs="unbounded">
262                                                <xsd:annotation>
263                                                        <xsd:documentation>Reports a product flow stream.</xsd:documentation>
264                                                </xsd:annotation>
265                                        </xsd:element>
266                                </xsd:sequence>
267                        </xsd:extension>
268                </xsd:complexContent>
269        </xsd:complexType>
270
271        <xsd:complexType name="cs_productVolumeProduct">
272                <xsd:annotation>
273                        <xsd:documentation>WITSML - Product Volume Product Component Schema.</xsd:documentation>
274                </xsd:annotation>
275                <xsd:sequence>
276                        <xsd:element name="kind" type="witsml:ReportingProduct" minOccurs="1" maxOccurs="1">
277                                <xsd:annotation>
278                                        <xsd:documentation>The type of product that is being reported.</xsd:documentation>
279                                </xsd:annotation>
280                        </xsd:element>
281                </xsd:sequence>
282
283                <xsd:attributeGroup ref="witsml:attgrp_uid">
284                        <xsd:annotation>
285                        <xsd:documentation>Unique identifier for the Product Volume Product.  </xsd:documentation>
286                        </xsd:annotation>
287                </xsd:attributeGroup>
288
289        </xsd:complexType>
290
291        <xsd:complexType name="cs_productVolumeProductMPR">
292                <xsd:complexContent>
293                        <xsd:extension base="witsml:cs_productVolumeProduct">
294                                <xsd:sequence>
295                                       
296                                        <xsd:choice>
297                                                <xsd:annotation>
298                                                        <xsd:documentation>The density of the product.</xsd:documentation>
299                                                </xsd:annotation>
300       
301                                                <xsd:element name="density" type="witsml:densityMeasure" minOccurs="1" maxOccurs="1">
302                                                        <xsd:annotation>
303                                                                <xsd:documentation>The density of the product.</xsd:documentation>
304                                                        </xsd:annotation>
305                                                </xsd:element>
306                                                <xsd:element name="densityStd" type="witsml:densityMeasure" minOccurs="1" maxOccurs="1">
307                                                        <xsd:annotation>
308                                                                <xsd:documentation>The density of the product after it has been
309                                                                corrected to standard temperature and pressure.</xsd:documentation>
310                                                        </xsd:annotation>
311                                                </xsd:element>
312                                        </xsd:choice>
313
314                                        <xsd:choice>
315                                                <xsd:annotation>
316                                                        <xsd:documentation>The volume of the product.</xsd:documentation>
317                                                </xsd:annotation>
318       
319                                                <xsd:element name="volume" type="witsml:volumeMeasure" minOccurs="1" maxOccurs="1">
320                                                        <xsd:annotation>
321                                                                <xsd:documentation>The uncorrected volume of the product.
322                                                                A positive value for an inlet port indicates flow into the port.
323                                                                A negative value for an inlet port indicates flow out of the port.
324                                                                A positive value for an outlet port indicates flow out of the port.
325                                                                A negative value for an outlet port indicates flow into of the port.
326                                                                This convention is designed such that a positive sign indicates
327                                                                an expected condition based on the intended port direction
328                                                                while a negative sign indicates an anomolous condition.</xsd:documentation>
329                                                        </xsd:annotation>
330                                                </xsd:element>
331                                                <xsd:element name="volumeStd" type="witsml:volumeMeasure" minOccurs="1" maxOccurs="1">
332                                                        <xsd:annotation>
333                                                                <xsd:documentation>The volume of the fluid, corrected to standard
334                                                                conditions of temperature and pressure. The sign of the value
335                                                                should conform to the above description of volume.</xsd:documentation>
336                                                        </xsd:annotation>
337                                                </xsd:element>
338                                        </xsd:choice>
339
340                                        <xsd:element name="mass" type="witsml:massMeasure" minOccurs="1" maxOccurs="1">
341                                                <xsd:annotation>
342                                                        <xsd:documentation>The mass of the product.</xsd:documentation>
343                                                </xsd:annotation>
344                                        </xsd:element>
345
346                                </xsd:sequence>
347                        </xsd:extension>
348                </xsd:complexContent>
349        </xsd:complexType>
350
351        <xsd:simpleType name="FlowQualifier">
352                <xsd:annotation>
353                        <xsd:documentation>Defines qualifiers for type of flow.</xsd:documentation>
354                </xsd:annotation>
355                <xsd:restriction base="witsml:abstractTypeEnum">
356                        <xsd:enumeration value="allocated">
357                                <xsd:annotation>
358                                        <xsd:documentation>Indicates product characteristics that were allocated back to
359                                        a well as opposed to being measured at the well.</xsd:documentation>
360                                </xsd:annotation>
361                        </xsd:enumeration>
362
363                        <!-- TODO Documentation -->
364                        <xsd:enumeration value="value adjusted"/>
365                </xsd:restriction>
366        </xsd:simpleType>
367
368        <xsd:simpleType name="ReportingFacility">
369                <xsd:restriction base="witsml:abstractTypeEnum">
370
371                        <xsd:enumeration value="field">
372                                <xsd:annotation>
373                                        <xsd:documentation>A single field.</xsd:documentation>
374                                </xsd:annotation>
375                        </xsd:enumeration>
376                       
377                </xsd:restriction>
378        </xsd:simpleType>
379
380        <xsd:simpleType name="ReportingFlow">
381                <xsd:annotation>
382                        <xsd:documentation>Defines the types of flows for volume reports.</xsd:documentation>
383                </xsd:annotation>
384                <xsd:restriction base="witsml:abstractTypeEnum">
385                        <xsd:enumeration value="production">
386                                <xsd:annotation>
387                                        <xsd:documentation>Exploited from a reservoir. This is independent of any disposition.</xsd:documentation>
388                                </xsd:annotation>
389                        </xsd:enumeration>
390                </xsd:restriction>
391        </xsd:simpleType>
392
393        <xsd:simpleType name="ReportingPeriod">
394                <xsd:restriction base="witsml:abstractTypeEnum">
395                        <xsd:enumeration value="month">
396                                <xsd:annotation>
397                                        <xsd:documentation>A period of one calendar month.</xsd:documentation>
398                                </xsd:annotation>
399                        </xsd:enumeration>
400                </xsd:restriction>
401        </xsd:simpleType>
402
403        <xsd:simpleType name="ReportingProduct">
404                <xsd:restriction base="witsml:abstractTypeEnum">
405                        <xsd:enumeration value="natural gas liquid">
406                                <xsd:annotation>
407                                        <xsd:documentation>Mixture of ethane, propane and butane with small quantities
408                                        of heaver hydrocarbons. Partially liquid at atmospheric pressure.</xsd:documentation>
409                                </xsd:annotation>
410                        </xsd:enumeration>
411                        <xsd:enumeration value="oil - net">
412                                <xsd:annotation>
413                                        <xsd:documentation>Oil with water removed.</xsd:documentation>
414                                </xsd:annotation>
415                        </xsd:enumeration>
416
417                        <!-- TODO Documentation -->
418                        <xsd:enumeration value="dry gas"/>
419                        <xsd:enumeration value="wet gas"/>
420                        <xsd:enumeration value="liquified petroleum gas"/>
421                        <xsd:enumeration value="liquid natural gas"/>
422                        <xsd:enumeration value="naphta"/>
423                        <xsd:enumeration value="ethane"/>
424                        <xsd:enumeration value="i-butane"/>
425                        <xsd:enumeration value="butane"/>
426                        <xsd:enumeration value="propane"/>
427                        <xsd:enumeration value="condensate - net"/>
428                </xsd:restriction>
429        </xsd:simpleType>
430
431        <xsd:complexType name="cs_businessAssociate">
432                <xsd:annotation>
433                        <xsd:documentation>The business associate describes any company, person,
434                        group, consultant, etc, which is associated within a context (e.g., a well).
435                        The information contained in this module is:
436                        (1) contact information, such as address, phone numbers, email,
437                        (2) alternate name, or aliases, and
438                        (3) associations, such as the business associate that this one is associated
439                           with, or a contact who is associated with this business associate.  </xsd:documentation>
440                </xsd:annotation>
441                <xsd:sequence>
442                        <xsd:element name="name" type="witsml:nameString" minOccurs="1" maxOccurs="1">
443                                <xsd:annotation>
444                                        <xsd:documentation>The name of the business associate.
445                                        This can be the name of a person, business, group, etc.</xsd:documentation>
446                                </xsd:annotation>
447                        </xsd:element>
448                        <xsd:element name="role" type="witsml:nameStruct" minOccurs="1" maxOccurs="unbounded">
449                                <xsd:annotation>
450                                        <xsd:documentation>The role of the business associate within the
451                                        context. For example, "driller" or "operator",
452                                        "lead agency - CEQA compliance" "regulatory contact", "safety contact".
453                                        A business associate will generally have one role
454                                        but the role may be called different things in different naming systems.</xsd:documentation>
455                                </xsd:annotation>
456                        </xsd:element>
457                </xsd:sequence>
458                <xsd:attributeGroup ref="witsml:attgrp_uid">
459                        <xsd:annotation>
460                        <xsd:documentation>Unique identifier for the business associate.  </xsd:documentation>
461                        </xsd:annotation>
462                </xsd:attributeGroup>
463        </xsd:complexType>
464
465        <xsd:complexType name="facilityIdentifierStruct" final="">
466                <xsd:annotation>
467                        <xsd:documentation>Identifies a facility.</xsd:documentation>
468                </xsd:annotation>
469                <xsd:simpleContent>
470                        <xsd:extension base="witsml:abstractNameString">
471                                <xsd:attribute name="kind" type="witsml:ReportingFacility" use="required">
472                                        <xsd:annotation>
473                                                <xsd:documentation>The kind of facility.</xsd:documentation>
474                                        </xsd:annotation>
475                                </xsd:attribute>
476                                <xsd:attribute name="namingSystem" type="witsml:nameString" use="required">
477                                        <xsd:annotation>
478                                                <xsd:documentation>The naming system within which the name is unique.
479                                                For example, API or NPD.</xsd:documentation>
480                                        </xsd:annotation>
481                                </xsd:attribute>
482                                <xsd:attribute name="uidRef" type="witsml:uidString" use="optional">
483                                        <xsd:annotation>
484                                                <xsd:documentation>If the facility is defined and instantiated
485                                                within the context of a WITSML server, this is a pointer
486                                                to the uid value of that object instance.</xsd:documentation>
487                                        </xsd:annotation>
488                                </xsd:attribute>
489                        </xsd:extension>
490                </xsd:simpleContent>
491        </xsd:complexType>
492
493        <xsd:simpleType name="nonNegativeFraction">
494                <xsd:annotation>
495                        <xsd:documentation>A floating point value between zero (inclusive) and one (inclusive)</xsd:documentation>
496                </xsd:annotation>
497                <xsd:restriction base="witsml:abstractDouble">
498                        <xsd:minInclusive value="0">
499                                <xsd:annotation>
500                                        <xsd:documentation>This value can be zero but cannot be negative.</xsd:documentation>
501                                </xsd:annotation>
502                        </xsd:minInclusive>
503                        <xsd:maxInclusive value="1">
504                                <xsd:annotation>
505                                        <xsd:documentation>This value can not be greater than one.</xsd:documentation>
506                                </xsd:annotation>
507                        </xsd:maxInclusive>
508                </xsd:restriction>
509        </xsd:simpleType>
510
511        <xsd:complexType name="densityMeasure">
512                <xsd:simpleContent>
513                        <xsd:extension base="witsml:abstractMeasure">
514                                <xsd:attribute name="uom" type="witsml:densityUom" use="required" />
515                        </xsd:extension>
516                </xsd:simpleContent>
517        </xsd:complexType>
518
519        <xsd:simpleType name="densityUom">
520                <xsd:restriction base="witsml:abstractUomEnum">
521                        <xsd:enumeration value="kg/m3" />
522                </xsd:restriction>
523        </xsd:simpleType>
524
525        <xsd:complexType name="workMeasure">
526                <xsd:simpleContent>
527                        <xsd:extension base="witsml:abstractMeasure">
528                                <xsd:attribute name="uom" type="witsml:workUom" use="required"/>
529                        </xsd:extension>
530                </xsd:simpleContent>
531        </xsd:complexType>
532
533        <xsd:simpleType name="workUom">
534                <xsd:restriction base="witsml:abstractUomEnum">
535                        <xsd:enumeration value="MJ"/>
536                        <xsd:enumeration value="kW.h"/>
537                </xsd:restriction>
538        </xsd:simpleType>
539
540        <xsd:complexType name="massMeasure">
541                <xsd:simpleContent>
542                        <xsd:extension base="witsml:abstractMeasure">
543                                <xsd:attribute name="uom" type="witsml:massUom" use="required"/>
544                        </xsd:extension>
545                </xsd:simpleContent>
546        </xsd:complexType>
547
548        <xsd:simpleType name="massUom">
549                <xsd:restriction base="witsml:abstractUomEnum">
550                        <xsd:enumeration value="kg"/>
551                        <xsd:enumeration value="t"/>
552                </xsd:restriction>
553        </xsd:simpleType>
554
555        <xsd:complexType name="volumeMeasure">
556                <xsd:simpleContent>
557                        <xsd:extension base="witsml:abstractMeasure">
558                                <xsd:attribute name="uom" type="witsml:volumeUom" use="required"/>
559                        </xsd:extension>
560                </xsd:simpleContent>
561        </xsd:complexType>
562
563        <xsd:simpleType name="volumeUom">
564                <xsd:restriction base="witsml:abstractUomEnum">
565                        <xsd:enumeration value="m3"/>
566                        <xsd:enumeration value="bbl"/>
567                </xsd:restriction>
568        </xsd:simpleType>
569
570        <xsd:simpleType name="commentString">
571                <xsd:annotation>
572                        <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.
573                        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>
574                </xsd:annotation>
575                <xsd:restriction base="witsml:abstractCommentString" />
576        </xsd:simpleType>
577
578        <xsd:simpleType name="kindString">
579                <xsd:annotation>
580                        <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
581                        enumerated list.</xsd:documentation>
582                </xsd:annotation>
583                <xsd:restriction base="witsml:abstractTypeEnum" />
584        </xsd:simpleType>
585
586        <xsd:simpleType name="nameString">
587                <xsd:annotation>
588                        <xsd:documentation>A user assigned human recognizable contextual name of something. There should be no assumption that (interoperable) semantic information will be
589                        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
590                        enumeration.</xsd:documentation>
591                </xsd:annotation>
592                <xsd:restriction base="witsml:abstractNameString" />
593        </xsd:simpleType>
594
595        <xsd:complexType name="nameStruct">
596                <xsd:annotation>
597                        <xsd:documentation>The name of something within a naming system.</xsd:documentation>
598                </xsd:annotation>
599                <xsd:simpleContent>
600                        <xsd:extension base="witsml:abstractNameString">
601                                <xsd:attribute name="namingSystem" type="witsml:nameString" use="optional">
602                                        <xsd:annotation>
603                                        <xsd:documentation>The naming system within the name is (hopefully) unique.</xsd:documentation>
604                                        </xsd:annotation>
605                                </xsd:attribute>
606                        </xsd:extension>
607                </xsd:simpleContent>
608        </xsd:complexType>
609
610        <xsd:simpleType name="schemaVersionString" final="#all">
611                <xsd:annotation>
612                        <xsd:documentation>The version of the schema.
613                        The first three levels are fixed. The fourth level can vary
614                        to represent on the constraints defined in enumerations and
615                        XML loader files. </xsd:documentation>
616                </xsd:annotation>
617                <xsd:restriction base="witsml:abstractString">
618                        <xsd:maxLength value="16"/>
619                        <xsd:pattern value="1\.3\.1\.[1-9]?[0-9]"/>
620                </xsd:restriction>
621        </xsd:simpleType>
622
623        <xsd:simpleType name="timestamp">
624                <xsd:annotation>
625                        <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
626                        each date time value.</xsd:documentation>
627                </xsd:annotation>
628                <xsd:restriction base="witsml:abstractDateTime" />
629        </xsd:simpleType>
630
631        <xsd:simpleType name="uidString">
632                <xsd:annotation>
633                        <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
634                        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
635                        value unless enforced by the source of the document (e.g., a document server).</xsd:documentation>
636                </xsd:annotation>
637                <xsd:restriction base="witsml:abstractUidString" />
638        </xsd:simpleType>
639
640        <xsd:simpleType name="YearMonthType">
641                <xsd:annotation>
642                        <xsd:documentation>Year and month type in the format of YYYY-MM</xsd:documentation>
643                </xsd:annotation>
644                <xsd:restriction base="xsd:gYearMonth">
645                        <xsd:pattern value="[1-9][0-9]{3}\-.*" />
646                </xsd:restriction>
647        </xsd:simpleType>
648
649        <xsd:simpleType name="abstractCommentString">
650                <xsd:annotation>
651                        <xsd:documentation>The intended abstract supertype of all comments or remarks intended for human consumption. There should be no assumption that semantics can be
652                        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
653                        interoperable).</xsd:documentation>
654                </xsd:annotation>
655                <xsd:restriction base="witsml:abstractMaximumLengthString" />
656        </xsd:simpleType>
657
658        <xsd:simpleType name="abstractDateTime">
659                <xsd:annotation>
660                        <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
661                        derived from this type rather than using xsd:dateTime.</xsd:documentation>
662                </xsd:annotation>
663                <xsd:restriction base="xsd:dateTime">
664                        <xsd:pattern value=".+" />
665                </xsd:restriction>
666        </xsd:simpleType>
667
668        <xsd:simpleType name="abstractDate">
669                <xsd:annotation>
670                        <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
671                        from this type rather than using xsd:dateTime.</xsd:documentation>
672                </xsd:annotation>
673                <xsd:restriction base="xsd:date">
674                        <xsd:pattern value=".+" />
675                </xsd:restriction>
676        </xsd:simpleType>
677
678        <xsd:simpleType name="abstractTypeEnum">
679                <xsd:annotation>
680                        <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.
681                        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
682                        future date.</xsd:documentation>
683                </xsd:annotation>
684                <xsd:restriction base="witsml:abstractString">
685                        <xsd:maxLength value="40" />
686                </xsd:restriction>
687        </xsd:simpleType>
688
689        <xsd:simpleType name="abstractDouble">
690                <xsd:annotation>
691                        <xsd:documentation>This type disallows an "empty" double value. This type should not be used directly except to derive another type.</xsd:documentation>
692                </xsd:annotation>
693                <xsd:restriction base="xsd:double">
694                        <xsd:pattern value=".+" />
695                </xsd:restriction>
696        </xsd:simpleType>
697
698        <xsd:simpleType name="abstractMaximumLengthString">
699                <xsd:annotation>
700                        <xsd:documentation>This defines the maximum acceptable length of a string that can be stored in a data base.</xsd:documentation>
701                </xsd:annotation>
702                <xsd:restriction base="witsml:abstractString">
703                        <xsd:maxLength value="4000">
704                                <xsd:annotation>
705                                        <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
706                                        VARCHAR2 in Oracle 8.</xsd:documentation>
707                                </xsd:annotation>
708                        </xsd:maxLength>
709                </xsd:restriction>
710        </xsd:simpleType>
711
712        <xsd:complexType name="abstractMeasure">
713                <xsd:annotation>
714                        <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
715                        subtypes. This type allows all quantities to be profiled to be a 'float' instead of a 'double'.</xsd:documentation>
716                </xsd:annotation>
717                <xsd:simpleContent>
718                        <xsd:extension base="witsml:abstractDouble" />
719                </xsd:simpleContent>
720        </xsd:complexType>
721
722        <xsd:simpleType name="abstractNameString">
723                <xsd:annotation>
724                        <xsd:documentation>The intended abstract supertype of all user assigned human recognizable contextual name types. There should be no assumption that (interoperable)
725                                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
726                                by an enumeration.</xsd:documentation>
727                </xsd:annotation>
728                <xsd:restriction base="witsml:abstractString">
729                        <xsd:maxLength value="64" />
730                </xsd:restriction>
731        </xsd:simpleType>
732
733        <xsd:simpleType name="abstractString">
734                <xsd:annotation>
735                        <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.
736                        This type should not be used directly except to derive another type.</xsd:documentation>
737                </xsd:annotation>
738                <xsd:restriction base="xsd:string">
739                        <xsd:whiteSpace value="collapse">
740                                <xsd:annotation>
741                                        <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
742                                        trailing spaces.</xsd:documentation>
743                                </xsd:annotation>
744                        </xsd:whiteSpace>
745                        <xsd:minLength value="1">
746                                <xsd:annotation>
747                                        <xsd:documentation>The empty string is not allowed. This constraint conbined with the whiteSpace collapse constraint means that a blank value is not
748                                        allowed.</xsd:documentation>
749                                </xsd:annotation>
750                        </xsd:minLength>
751                </xsd:restriction>
752        </xsd:simpleType>
753
754        <xsd:simpleType name="abstractUidString">
755                <xsd:annotation>
756                        <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
757                        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
758                        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>
759                </xsd:annotation>
760                <xsd:restriction base="witsml:abstractString">
761                        <xsd:maxLength value="64" />
762                                <xsd:pattern value="[^ ]*" />
763                </xsd:restriction>
764        </xsd:simpleType>
765
766        <xsd:simpleType name="abstractUomEnum">
767                <xsd:annotation>
768                        <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.
769                        This type is abstract in the sense that it should not be used directly except to derive another type.</xsd:documentation>
770                </xsd:annotation>
771                <xsd:restriction base="witsml:abstractString">
772                        <xsd:maxLength value="24" />
773                </xsd:restriction>
774        </xsd:simpleType>
775
776</xsd:schema>
Note: See TracBrowser for help on using the browser.