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

Revision 17, 34.9 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 sale 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_productVolumeFlow" 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">
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:element name="product" type="witsml:cs_productVolumeProductMPR" minOccurs="1" maxOccurs="unbounded">
244                                <xsd:annotation>
245                                        <xsd:documentation>Reports a product flow stream.</xsd:documentation>
246                                </xsd:annotation>
247                        </xsd:element>
248                </xsd:sequence>
249                <xsd:attributeGroup ref="witsml:attgrp_uid">
250                        <xsd:annotation>
251                                <xsd:documentation>Unique identifier for the Product Volume Flow.  </xsd:documentation>
252                        </xsd:annotation>
253                </xsd:attributeGroup>
254        </xsd:complexType>
255
256        <xsd:complexType name="cs_productVolumeProduct">
257                <xsd:annotation>
258                        <xsd:documentation>WITSML - Product Volume Product Component Schema.</xsd:documentation>
259                </xsd:annotation>
260                <xsd:sequence>
261                        <xsd:element name="kind" type="witsml:ReportingProduct" minOccurs="1" maxOccurs="1">
262                                <xsd:annotation>
263                                        <xsd:documentation>The type of product that is being reported.</xsd:documentation>
264                                </xsd:annotation>
265                        </xsd:element>
266                </xsd:sequence>
267
268                <xsd:attributeGroup ref="witsml:attgrp_uid">
269                        <xsd:annotation>
270                        <xsd:documentation>Unique identifier for the Product Volume Product.  </xsd:documentation>
271                        </xsd:annotation>
272                </xsd:attributeGroup>
273
274        </xsd:complexType>
275
276        <xsd:complexType name="cs_productVolumeProductMPR">
277                <xsd:complexContent>
278                        <xsd:extension base="witsml:cs_productVolumeProduct">
279                                <xsd:sequence>
280                                       
281                                        <xsd:choice>
282                                                <xsd:annotation>
283                                                        <xsd:documentation>The density of the product.</xsd:documentation>
284                                                </xsd:annotation>
285       
286                                                <xsd:element name="density" type="witsml:densityMeasure" minOccurs="1" maxOccurs="1">
287                                                        <xsd:annotation>
288                                                                <xsd:documentation>The density of the product.</xsd:documentation>
289                                                        </xsd:annotation>
290                                                </xsd:element>
291                                                <xsd:element name="densityStd" type="witsml:densityMeasure" minOccurs="1" maxOccurs="1">
292                                                        <xsd:annotation>
293                                                                <xsd:documentation>The density of the product after it has been
294                                                                corrected to standard temperature and pressure.</xsd:documentation>
295                                                        </xsd:annotation>
296                                                </xsd:element>
297                                        </xsd:choice>
298
299                                        <xsd:element name="period" type="witsml:cs_productVolumePeriod" minOccurs="1" maxOccurs="1">
300                                                <xsd:annotation>
301                                                        <xsd:documentation>Product amounts for a specific period.</xsd:documentation>
302                                                </xsd:annotation>
303                                        </xsd:element>
304
305                                </xsd:sequence>
306                        </xsd:extension>
307                </xsd:complexContent>
308        </xsd:complexType>
309
310        <xsd:complexType name="cs_productVolumePeriod">
311                <xsd:annotation>
312                        <xsd:documentation>WITSML - Product Volume Period Component Schema.</xsd:documentation>
313                </xsd:annotation>
314                <xsd:sequence>
315                        <xsd:element name="kind" type="witsml:ReportingPeriod" minOccurs="1" maxOccurs="1">
316                                <xsd:annotation>
317                                        <xsd:documentation>The type of period that is being reported. If not
318                                        specified and a time is not given then the period is defined by the reporting period.</xsd:documentation>
319                                </xsd:annotation>
320                        </xsd:element>
321                        <xsd:choice>
322                                <xsd:annotation>
323                                        <xsd:documentation>The volume of the product.</xsd:documentation>
324                                </xsd:annotation>
325       
326                                <xsd:element name="volume" type="witsml:volumeMeasure" minOccurs="1" maxOccurs="1">
327                                        <xsd:annotation>
328                                                <xsd:documentation>The uncorrected volume of the product.
329                                                        A positive value for an inlet port indicates flow into the port.
330                                                        A negative value for an inlet port indicates flow out of the port.
331                                                        A positive value for an outlet port indicates flow out of the port.
332                                                        A negative value for an outlet port indicates flow into of the port.
333                                                        This convention is designed such that a positive sign indicates
334                                                        an expected condition based on the intended port direction
335                                                        while a negative sign indicates an anomolous condition.</xsd:documentation>
336                                        </xsd:annotation>
337                                </xsd:element>
338                                <xsd:element name="volumeStd" type="witsml:volumeMeasure" minOccurs="1" maxOccurs="1">
339                                        <xsd:annotation>
340                                                <xsd:documentation>The volume of the fluid, corrected to standard
341                                                        conditions of temperature and pressure. The sign of the value
342                                                        should conform to the above description of volume.</xsd:documentation>
343                                        </xsd:annotation>
344                                </xsd:element>
345                        </xsd:choice>
346
347                        <xsd:element name="mass" type="witsml:massMeasure" minOccurs="1" maxOccurs="1">
348                                <xsd:annotation>
349                                        <xsd:documentation>The mass of the product.</xsd:documentation>
350                                </xsd:annotation>
351                        </xsd:element>
352                </xsd:sequence>
353                <xsd:attributeGroup ref="witsml:attgrp_uid">
354                        <xsd:annotation>
355                        <xsd:documentation>Unique identifier for the Product Volume Period.  </xsd:documentation>
356                        </xsd:annotation>
357                </xsd:attributeGroup>
358        </xsd:complexType>
359
360        <xsd:complexType name="cs_shareVolumeContractPart">
361                <xsd:sequence>
362                        <xsd:element name="kind" type="witsml:ContractPartTypes">
363                                <xsd:annotation>
364                                        <xsd:documentation>The side of the contract this is a part of.</xsd:documentation>
365                                </xsd:annotation>
366                        </xsd:element>
367                       
368                        <xsd:element name="destination" type="witsml:destinationType" minOccurs="0" maxOccurs="1"/>
369                        <xsd:element name="companyShare" type="witsml:cs_shareVolumeProduct" minOccurs="1" maxOccurs="unbounded"/>
370
371                </xsd:sequence>
372        </xsd:complexType>
373
374        <xsd:complexType name="cs_shareVolumeProduct">
375                <xsd:sequence>
376                        <xsd:element name="company" type="witsml:nameStruct" minOccurs="0" maxOccurs="1"/>                     
377                        <xsd:element name="share" type="witsml:companyShareType" minOccurs="0" maxOccurs="1"/>
378                </xsd:sequence>
379        </xsd:complexType>
380
381        <xsd:complexType name="companyShareType">
382                <xsd:sequence>
383                        <xsd:choice>
384                                <xsd:annotation>
385                                        <xsd:documentation>The company share of the density of the product.</xsd:documentation>
386                                </xsd:annotation>
387                                <xsd:element name="density" type="witsml:densityMeasure" minOccurs="0" maxOccurs="1">
388                                        <xsd:annotation>
389                                                <xsd:documentation>The company share of the density of the product.</xsd:documentation>
390                                        </xsd:annotation>
391                                </xsd:element>
392                                <xsd:element name="densityStd" type="witsml:densityMeasure" minOccurs="0" maxOccurs="1">
393                                        <xsd:annotation>
394                                                <xsd:documentation>The company share of the density of the product after it has been
395                                                                corrected to standard temperature and pressure.</xsd:documentation>
396                                        </xsd:annotation>
397                                </xsd:element>
398                        </xsd:choice>                   
399                        <xsd:choice>
400                                <xsd:annotation>
401                                        <xsd:documentation>The company share of the volume of the product.</xsd:documentation>
402                                </xsd:annotation>
403                                <xsd:element name="volume" type="witsml:volumeMeasure" minOccurs="1" maxOccurs="1">
404                                        <xsd:annotation>
405                                                <xsd:documentation>The company share of the volume of the product.</xsd:documentation>
406                                        </xsd:annotation>
407                                </xsd:element>
408                                <xsd:element name="volumeStd" type="witsml:volumeMeasure" minOccurs="1" maxOccurs="1">
409                                        <xsd:annotation>
410                                                <xsd:documentation>The company share of the volume of the product after it has been
411                                                                corrected to standard temperature and pressure.</xsd:documentation>
412                                        </xsd:annotation>
413                                </xsd:element>
414                        </xsd:choice>
415                        <xsd:element name="work" type="witsml:workMeasure" minOccurs="1" maxOccurs="1">
416                                <xsd:annotation>
417                                        <xsd:documentation>The company share of the electrical energy represented by the product..</xsd:documentation>
418                                </xsd:annotation>
419                        </xsd:element>
420                </xsd:sequence>
421        </xsd:complexType>
422
423        <xsd:complexType name="destinationType">
424                <xsd:annotation>
425                        <xsd:documentation>The destination... .</xsd:documentation>
426                </xsd:annotation>
427                <xsd:sequence>
428                        <xsd:element name="name" type="witsml:nameString" minOccurs="0" />
429                        <xsd:element name="country" type="witsml:nameString" minOccurs="1" />
430                        <xsd:element name="kind" type="witsml:DestinationTypes" minOccurs="1" />
431                </xsd:sequence>
432        </xsd:complexType>
433
434        <xsd:complexType name="SaleDate">
435                <xsd:simpleContent>
436                        <xsd:extension base="witsml:abstractDate">
437                                <xsd:attribute name="kind" type="witsml:SaleDateTypes"/>
438                        </xsd:extension>
439                </xsd:simpleContent>
440        </xsd:complexType>
441
442        <xsd:simpleType name="ContractPartTypes">
443                <xsd:restriction base="witsml:abstractTypeEnum">
444                        <xsd:enumeration value="seller"/>
445                </xsd:restriction>
446        </xsd:simpleType>
447
448        <xsd:simpleType name="DestinationTypes">
449                <xsd:restriction base="witsml:abstractTypeEnum">
450                        <xsd:enumeration value="unknown"/>
451                        <xsd:enumeration value="town"/>
452                        <xsd:enumeration value="harbor"/>
453                </xsd:restriction>
454        </xsd:simpleType>
455
456        <xsd:simpleType name="FlowQualifier">
457                <xsd:annotation>
458                        <xsd:documentation>Defines qualifiers for type of flow.</xsd:documentation>
459                </xsd:annotation>
460                <xsd:restriction base="witsml:abstractTypeEnum">
461                        <xsd:enumeration value="measured">
462                                <xsd:annotation>
463                                        <xsd:documentation>Indicates product volumes that were actually
464                                        measured at the port.</xsd:documentation>
465                                </xsd:annotation>
466                        </xsd:enumeration>
467                </xsd:restriction>
468        </xsd:simpleType>
469
470        <xsd:simpleType name="ReportingFacility">
471                <xsd:restriction base="witsml:abstractTypeEnum">
472
473                        <xsd:enumeration value="field">
474                                <xsd:annotation>
475                                        <xsd:documentation>A single field.</xsd:documentation>
476                                </xsd:annotation>
477                        </xsd:enumeration>
478
479                        <xsd:enumeration value="installation"/>
480                        <xsd:enumeration value="terminal"/>
481                </xsd:restriction>
482        </xsd:simpleType>
483
484        <xsd:simpleType name="ReportingFlow">
485                <xsd:annotation>
486                        <xsd:documentation>Defines the types of flows for volume reports.</xsd:documentation>
487                </xsd:annotation>
488                <xsd:restriction base="witsml:abstractTypeEnum">
489                        <xsd:enumeration value="sale - fiscal"/>
490                </xsd:restriction>
491        </xsd:simpleType>
492
493        <xsd:simpleType name="ReportingPeriod">
494                <xsd:restriction base="witsml:abstractTypeEnum">
495                        <xsd:enumeration value="month">
496                                <xsd:annotation>
497                                        <xsd:documentation>A period of one calendar month.</xsd:documentation>
498                                </xsd:annotation>
499                        </xsd:enumeration>
500                </xsd:restriction>
501        </xsd:simpleType>
502
503        <xsd:simpleType name="ReportingProduct">
504                <xsd:restriction base="witsml:abstractTypeEnum">
505                        <xsd:enumeration value="natural gas liquid">
506                                <xsd:annotation>
507                                        <xsd:documentation>Mixture of ethane, propane and butane with small quantities
508                                        of heaver hydrocarbons. Partially liquid at atmospheric pressure.</xsd:documentation>
509                                </xsd:annotation>
510                        </xsd:enumeration>
511                        <xsd:enumeration value="oil - net">
512                                <xsd:annotation>
513                                        <xsd:documentation>Oil with water removed.</xsd:documentation>
514                                </xsd:annotation>
515                        </xsd:enumeration>
516       
517                        <!-- TODO Documentation -->
518                        <xsd:enumeration value="dry gas"/>
519                        <xsd:enumeration value="liquified petroleum gas"/>
520                        <xsd:enumeration value="liquid natural gas"/>
521                        <xsd:enumeration value="naphta"/>
522                        <xsd:enumeration value="ethane"/>
523                        <xsd:enumeration value="i-butane"/>
524                        <xsd:enumeration value="butane"/>
525                        <xsd:enumeration value="propane"/>
526                        <xsd:enumeration value="condensate - net"/>
527                        <xsd:enumeration value="condensate - gross"/>
528                </xsd:restriction>
529        </xsd:simpleType>
530
531        <xsd:simpleType name="SaleDateTypes">
532                <xsd:restriction base="witsml:abstractTypeEnum">
533                        <xsd:enumeration value="bill of lading date"/>
534                </xsd:restriction>
535        </xsd:simpleType>
536
537        <xsd:complexType name="facilityIdentifierStruct" final="">
538                <xsd:annotation>
539                        <xsd:documentation>Identifies a facility.</xsd:documentation>
540                </xsd:annotation>
541                <xsd:simpleContent>
542                        <xsd:extension base="witsml:abstractNameString">
543                                <xsd:attribute name="kind" type="witsml:ReportingFacility" use="required">
544                                        <xsd:annotation>
545                                                <xsd:documentation>The kind of facility.</xsd:documentation>
546                                        </xsd:annotation>
547                                </xsd:attribute>
548                                <xsd:attribute name="namingSystem" type="witsml:nameString" use="required">
549                                        <xsd:annotation>
550                                                <xsd:documentation>The naming system within which the name is unique.
551                                                For example, API or NPD.</xsd:documentation>
552                                        </xsd:annotation>
553                                </xsd:attribute>
554                                <xsd:attribute name="uidRef" type="witsml:uidString" use="optional">
555                                        <xsd:annotation>
556                                                <xsd:documentation>If the facility is defined and instantiated
557                                                within the context of a WITSML server, this is a pointer
558                                                to the uid value of that object instance.</xsd:documentation>
559                                        </xsd:annotation>
560                                </xsd:attribute>
561                        </xsd:extension>
562                </xsd:simpleContent>
563        </xsd:complexType>
564
565        <xsd:simpleType name="nonNegativeFraction">
566                <xsd:annotation>
567                        <xsd:documentation>A floating point value between zero (inclusive) and one (inclusive)</xsd:documentation>
568                </xsd:annotation>
569                <xsd:restriction base="witsml:abstractDouble">
570                        <xsd:minInclusive value="0">
571                                <xsd:annotation>
572                                        <xsd:documentation>This value can be zero but cannot be negative.</xsd:documentation>
573                                </xsd:annotation>
574                        </xsd:minInclusive>
575                        <xsd:maxInclusive value="1">
576                                <xsd:annotation>
577                                        <xsd:documentation>This value can not be greater than one.</xsd:documentation>
578                                </xsd:annotation>
579                        </xsd:maxInclusive>
580                </xsd:restriction>
581        </xsd:simpleType>
582
583        <xsd:complexType name="densityMeasure">
584                <xsd:simpleContent>
585                        <xsd:extension base="witsml:abstractMeasure">
586                                <xsd:attribute name="uom" type="witsml:densityUom" use="required" />
587                        </xsd:extension>
588                </xsd:simpleContent>
589        </xsd:complexType>
590
591        <xsd:simpleType name="densityUom">
592                <xsd:restriction base="witsml:abstractUomEnum">
593                        <xsd:enumeration value="kg/m3" />
594                </xsd:restriction>
595        </xsd:simpleType>
596
597        <xsd:complexType name="workMeasure">
598                <xsd:simpleContent>
599                        <xsd:extension base="witsml:abstractMeasure">
600                                <xsd:attribute name="uom" type="witsml:workUom" use="required"/>
601                        </xsd:extension>
602                </xsd:simpleContent>
603        </xsd:complexType>
604
605        <xsd:simpleType name="workUom">
606                <xsd:restriction base="witsml:abstractUomEnum">
607                        <xsd:enumeration value="MJ"/>
608                        <xsd:enumeration value="kW.h"/>
609                </xsd:restriction>
610        </xsd:simpleType>
611
612        <xsd:complexType name="massMeasure">
613                <xsd:simpleContent>
614                        <xsd:extension base="witsml:abstractMeasure">
615                                <xsd:attribute name="uom" type="witsml:massUom" use="required"/>
616                        </xsd:extension>
617                </xsd:simpleContent>
618        </xsd:complexType>
619
620        <xsd:simpleType name="massUom">
621                <xsd:restriction base="witsml:abstractUomEnum">
622                        <xsd:enumeration value="kg"/>
623                        <xsd:enumeration value="t"/>
624                </xsd:restriction>
625        </xsd:simpleType>
626
627        <xsd:complexType name="volumeMeasure">
628                <xsd:simpleContent>
629                        <xsd:extension base="witsml:abstractMeasure">
630                                <xsd:attribute name="uom" type="witsml:volumeUom" use="required"/>
631                        </xsd:extension>
632                </xsd:simpleContent>
633        </xsd:complexType>
634
635        <xsd:simpleType name="volumeUom">
636                <xsd:restriction base="witsml:abstractUomEnum">
637                        <xsd:enumeration value="m3"/>
638                </xsd:restriction>
639        </xsd:simpleType>
640
641        <xsd:simpleType name="commentString">
642                <xsd:annotation>
643                        <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.
644                        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>
645                </xsd:annotation>
646                <xsd:restriction base="witsml:abstractCommentString" />
647        </xsd:simpleType>
648
649        <xsd:simpleType name="kindString">
650                <xsd:annotation>
651                        <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
652                        enumerated list.</xsd:documentation>
653                </xsd:annotation>
654                <xsd:restriction base="witsml:abstractTypeEnum" />
655        </xsd:simpleType>
656
657        <xsd:simpleType name="nameString">
658                <xsd:annotation>
659                        <xsd:documentation>A user assigned human recognizable contextual name of something. There should be no assumption that (interoperable) semantic information will be
660                        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
661                        enumeration.</xsd:documentation>
662                </xsd:annotation>
663                <xsd:restriction base="witsml:abstractNameString" />
664        </xsd:simpleType>
665
666        <xsd:complexType name="nameStruct">
667                <xsd:annotation>
668                        <xsd:documentation>The name of something within a naming system.</xsd:documentation>
669                </xsd:annotation>
670                <xsd:simpleContent>
671                        <xsd:extension base="witsml:abstractNameString">
672                                <xsd:attribute name="namingSystem" type="witsml:nameString" use="optional">
673                                        <xsd:annotation>
674                                        <xsd:documentation>The naming system within the name is (hopefully) unique.</xsd:documentation>
675                                        </xsd:annotation>
676                                </xsd:attribute>
677                        </xsd:extension>
678                </xsd:simpleContent>
679        </xsd:complexType>
680
681        <xsd:simpleType name="schemaVersionString" final="#all">
682                <xsd:annotation>
683                        <xsd:documentation>The version of the schema.
684                        The first three levels are fixed. The fourth level can vary
685                        to represent on the constraints defined in enumerations and
686                        XML loader files. </xsd:documentation>
687                </xsd:annotation>
688                <xsd:restriction base="witsml:abstractString">
689                        <xsd:maxLength value="16"/>
690                        <xsd:pattern value="1\.3\.1\.[1-9]?[0-9]"/>
691                </xsd:restriction>
692        </xsd:simpleType>
693
694        <xsd:simpleType name="timestamp">
695                <xsd:annotation>
696                        <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
697                        each date time value.</xsd:documentation>
698                </xsd:annotation>
699                <xsd:restriction base="witsml:abstractDateTime" />
700        </xsd:simpleType>
701
702        <xsd:simpleType name="uidString">
703                <xsd:annotation>
704                        <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
705                        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
706                        value unless enforced by the source of the document (e.g., a document server).</xsd:documentation>
707                </xsd:annotation>
708                <xsd:restriction base="witsml:abstractUidString" />
709        </xsd:simpleType>
710
711        <xsd:simpleType name="YearMonthType">
712                <xsd:annotation>
713                        <xsd:documentation>Year and month type in the format of YYYY-MM</xsd:documentation>
714                </xsd:annotation>
715                <xsd:restriction base="xsd:gYearMonth">
716                        <xsd:pattern value="[1-9][0-9]{3}\-.*" />
717                </xsd:restriction>
718        </xsd:simpleType>
719
720        <xsd:simpleType name="abstractCommentString">
721                <xsd:annotation>
722                        <xsd:documentation>The intended abstract supertype of all comments or remarks intended for human consumption. There should be no assumption that semantics can be
723                        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
724                        interoperable).</xsd:documentation>
725                </xsd:annotation>
726                <xsd:restriction base="witsml:abstractMaximumLengthString" />
727        </xsd:simpleType>
728
729        <xsd:simpleType name="abstractDateTime">
730                <xsd:annotation>
731                        <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
732                        derived from this type rather than using xsd:dateTime.</xsd:documentation>
733                </xsd:annotation>
734                <xsd:restriction base="xsd:dateTime">
735                        <xsd:pattern value=".+" />
736                </xsd:restriction>
737        </xsd:simpleType>
738
739        <xsd:simpleType name="abstractDate">
740                <xsd:annotation>
741                        <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
742                        from this type rather than using xsd:dateTime.</xsd:documentation>
743                </xsd:annotation>
744                <xsd:restriction base="xsd:date">
745                        <xsd:pattern value=".+" />
746                </xsd:restriction>
747        </xsd:simpleType>
748
749        <xsd:simpleType name="abstractTypeEnum">
750                <xsd:annotation>
751                        <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.
752                        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
753                        future date.</xsd:documentation>
754                </xsd:annotation>
755                <xsd:restriction base="witsml:abstractString">
756                        <xsd:maxLength value="40" />
757                </xsd:restriction>
758        </xsd:simpleType>
759
760        <xsd:simpleType name="abstractDouble">
761                <xsd:annotation>
762                        <xsd:documentation>This type disallows an "empty" double value. This type should not be used directly except to derive another type.</xsd:documentation>
763                </xsd:annotation>
764                <xsd:restriction base="xsd:double">
765                        <xsd:pattern value=".+" />
766                </xsd:restriction>
767        </xsd:simpleType>
768
769        <xsd:simpleType name="abstractMaximumLengthString">
770                <xsd:annotation>
771                        <xsd:documentation>This defines the maximum acceptable length of a string that can be stored in a data base.</xsd:documentation>
772                </xsd:annotation>
773                <xsd:restriction base="witsml:abstractString">
774                        <xsd:maxLength value="4000">
775                                <xsd:annotation>
776                                        <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
777                                        VARCHAR2 in Oracle 8.</xsd:documentation>
778                                </xsd:annotation>
779                        </xsd:maxLength>
780                </xsd:restriction>
781        </xsd:simpleType>
782
783        <xsd:complexType name="abstractMeasure">
784                <xsd:annotation>
785                        <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
786                        subtypes. This type allows all quantities to be profiled to be a 'float' instead of a 'double'.</xsd:documentation>
787                </xsd:annotation>
788                <xsd:simpleContent>
789                        <xsd:extension base="witsml:abstractDouble" />
790                </xsd:simpleContent>
791        </xsd:complexType>
792
793        <xsd:simpleType name="abstractNameString">
794                <xsd:annotation>
795                        <xsd:documentation>The intended abstract supertype of all user assigned human recognizable contextual name types. There should be no assumption that (interoperable)
796                                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
797                                by an enumeration.</xsd:documentation>
798                </xsd:annotation>
799                <xsd:restriction base="witsml:abstractString">
800                        <xsd:maxLength value="64" />
801                </xsd:restriction>
802        </xsd:simpleType>
803
804        <xsd:simpleType name="abstractString">
805                <xsd:annotation>
806                        <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.
807                        This type should not be used directly except to derive another type.</xsd:documentation>
808                </xsd:annotation>
809                <xsd:restriction base="xsd:string">
810                        <xsd:whiteSpace value="collapse">
811                                <xsd:annotation>
812                                        <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
813                                        trailing spaces.</xsd:documentation>
814                                </xsd:annotation>
815                        </xsd:whiteSpace>
816                        <xsd:minLength value="1">
817                                <xsd:annotation>
818                                        <xsd:documentation>The empty string is not allowed. This constraint conbined with the whiteSpace collapse constraint means that a blank value is not
819                                        allowed.</xsd:documentation>
820                                </xsd:annotation>
821                        </xsd:minLength>
822                </xsd:restriction>
823        </xsd:simpleType>
824
825        <xsd:simpleType name="abstractUidString">
826                <xsd:annotation>
827                        <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
828                        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
829                        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>
830                </xsd:annotation>
831                <xsd:restriction base="witsml:abstractString">
832                        <xsd:maxLength value="64" />
833                                <xsd:pattern value="[^ ]*" />
834                </xsd:restriction>
835        </xsd:simpleType>
836
837        <xsd:simpleType name="abstractUomEnum">
838                <xsd:annotation>
839                        <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.
840                        This type is abstract in the sense that it should not be used directly except to derive another type.</xsd:documentation>
841                </xsd:annotation>
842                <xsd:restriction base="witsml:abstractString">
843                        <xsd:maxLength value="24" />
844                </xsd:restriction>
845        </xsd:simpleType>
846
847</xsd:schema>
Note: See TracBrowser for help on using the browser.