[16] | 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" |
---|
| 6 | xmlns:witsml="http://www.witsml.org/schemas/131" |
---|
| 7 | xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
---|
| 8 | version="1.3.1"> |
---|
| 9 | <!-- --> |
---|
| 10 | <!-- POSC License Agreement |
---|
| 11 | This file is distributed under the POSC License Agreement at |
---|
| 12 | http://www.posc.org/about/license.shtml. |
---|
| 13 | Use of this file constitutes agreement with the POSC License Agreement. |
---|
| 14 | --> |
---|
| 15 | <!-- --> |
---|
| 16 | <xsd:include schemaLocation="cs_logCurveInfo.xsd"/> |
---|
| 17 | <xsd:include schemaLocation="cs_logData.xsd"/> |
---|
| 18 | <!-- --> |
---|
| 19 | <xsd:group name="grp_log"> |
---|
| 20 | <xsd:annotation> |
---|
| 21 | <xsd:documentation>The non-contextual content of a WITSML Log.</xsd:documentation> |
---|
| 22 | </xsd:annotation> |
---|
| 23 | <xsd:sequence> |
---|
| 24 | <xsd:element name="objectGrowing" type="witsml:logicalBoolean" minOccurs="0" maxOccurs="1"> |
---|
| 25 | <xsd:annotation> |
---|
| 26 | <xsd:documentation>Whether or not the log is growing. |
---|
| 27 | True ("true" or "1") indicates the that the log is still growing |
---|
| 28 | in size (that is, logData values are still being added). |
---|
| 29 | For example, it may be connected to a realtime stream. |
---|
| 30 | False ("false" or "0") indicates that the log is |
---|
| 31 | closed (that is, no further logData values will be added). |
---|
| 32 | Not given indicates that the status of the log is not known. |
---|
| 33 | This value is only relevant within the context of a server.</xsd:documentation> |
---|
| 34 | </xsd:annotation> |
---|
| 35 | </xsd:element> |
---|
| 36 | <xsd:element name="dataRowCount" type="witsml:positiveBigCount" minOccurs="0" maxOccurs="1"> |
---|
| 37 | <xsd:annotation> |
---|
| 38 | <xsd:documentation>The number of data rows in the persistent log. |
---|
| 39 | If a value is specified for this element in a query then the |
---|
| 40 | server will limit the number of data rows in the result |
---|
| 41 | but the return value will still be the number of data rows in |
---|
| 42 | the persistent log.</xsd:documentation> |
---|
| 43 | </xsd:annotation> |
---|
| 44 | </xsd:element> |
---|
| 45 | <xsd:element name="serviceCompany" type="witsml:nameString" minOccurs="0" maxOccurs="1"> |
---|
| 46 | <xsd:annotation> |
---|
| 47 | <xsd:documentation>Name of contractor who provided the service. </xsd:documentation> |
---|
| 48 | </xsd:annotation> |
---|
| 49 | </xsd:element> |
---|
| 50 | <xsd:element name="runNumber" type="witsml:str16" minOccurs="0" maxOccurs="1"> |
---|
| 51 | <xsd:annotation> |
---|
| 52 | <xsd:documentation>Log run number. This should normally be a number; however |
---|
| 53 | some legacy systems encode other information in this value.</xsd:documentation> |
---|
| 54 | </xsd:annotation> |
---|
| 55 | </xsd:element> |
---|
| 56 | <xsd:element name="bhaRunNumber" type="witsml:positiveCount" minOccurs="0" maxOccurs="1"> |
---|
| 57 | <xsd:annotation> |
---|
| 58 | <xsd:documentation>The bottom hole assembly run number associated with this log.</xsd:documentation> |
---|
| 59 | </xsd:annotation> |
---|
| 60 | </xsd:element> |
---|
| 61 | <xsd:element name="pass" type="witsml:str16" minOccurs="0" maxOccurs="1"> |
---|
| 62 | <xsd:annotation> |
---|
| 63 | <xsd:documentation>Identifies the pass within the run.</xsd:documentation> |
---|
| 64 | </xsd:annotation> |
---|
| 65 | </xsd:element> |
---|
| 66 | <xsd:element name="creationDate" type="witsml:timestamp" minOccurs="0" maxOccurs="1"> |
---|
| 67 | <xsd:annotation> |
---|
| 68 | <xsd:documentation>Date and time that the log was created. </xsd:documentation> |
---|
| 69 | </xsd:annotation> |
---|
| 70 | </xsd:element> |
---|
| 71 | <xsd:element name="description" type="witsml:commentString" minOccurs="0" maxOccurs="1"> |
---|
| 72 | <xsd:annotation> |
---|
| 73 | <xsd:documentation>Description of item and details. </xsd:documentation> |
---|
| 74 | </xsd:annotation> |
---|
| 75 | </xsd:element> |
---|
| 76 | <xsd:element name="indexType" type="witsml:LogIndexType" minOccurs="1" maxOccurs="1"> |
---|
| 77 | <xsd:annotation> |
---|
| 78 | <xsd:documentation>Primary index type. </xsd:documentation> |
---|
| 79 | </xsd:annotation> |
---|
| 80 | </xsd:element> |
---|
| 81 | <xsd:sequence minOccurs="1" maxOccurs="1"> |
---|
| 82 | <xsd:annotation> |
---|
| 83 | <xsd:documentation>The index may be a quantity type or it may be a dateTime type. |
---|
| 84 | At least one of the index sets must be given. If both are given then "indexType" and |
---|
| 85 | "indexCurve" must represent an elapsed time from "startDateTimeIndex". |
---|
| 86 | The start and end indexes are server query parameters and will be |
---|
| 87 | populated with valid values in a GetFromStore result.</xsd:documentation> |
---|
| 88 | </xsd:annotation> |
---|
| 89 | <xsd:element name="startIndex" type="witsml:genericMeasure" minOccurs="0" maxOccurs="1"> |
---|
| 90 | <xsd:annotation> |
---|
| 91 | <xsd:documentation>When the log header defines the direction as "Increasing", |
---|
| 92 | the startIndex is the starting (minimum) index value at which the first valid data point |
---|
| 93 | is located. When the log header defines the direction as "Decreasing", the startIndex |
---|
| 94 | is the starting (maximum) index value at which the first valid data point is located.</xsd:documentation> |
---|
| 95 | </xsd:annotation> |
---|
| 96 | </xsd:element> |
---|
| 97 | <xsd:element name="endIndex" type="witsml:genericMeasure" minOccurs="0" maxOccurs="1"> |
---|
| 98 | <xsd:annotation> |
---|
| 99 | <xsd:documentation>When the log header defines the direction as "Increasing", the endIndex |
---|
| 100 | is the ending (maximum) index value at which the last valid data point is located. |
---|
| 101 | When the log header defines the direction as Decreasing, the endIndex is the ending |
---|
| 102 | (minimum) index value at which the last valid data point is located.</xsd:documentation> |
---|
| 103 | </xsd:annotation> |
---|
| 104 | </xsd:element> |
---|
| 105 | <xsd:element name="stepIncrement" type="witsml:ratioGenericMeasure" minOccurs="0" maxOccurs="1"> |
---|
| 106 | <xsd:annotation> |
---|
| 107 | <xsd:documentation>The sampling increment. Set to zero for unequal sampling. |
---|
| 108 | This would only apply if the curve was sorted on its own values. |
---|
| 109 | For curves that are originally sampled at a constant increment, this value should |
---|
| 110 | be retained because the calculated values may have cumulative errors.</xsd:documentation> |
---|
| 111 | </xsd:annotation> |
---|
| 112 | </xsd:element> |
---|
| 113 | <xsd:element name="startDateTimeIndex" type="witsml:timestamp" minOccurs="0" maxOccurs="1"> |
---|
| 114 | <xsd:annotation> |
---|
| 115 | <xsd:documentation>When the log header defines the direction as "Increasing", |
---|
| 116 | the startIndex is the starting (minimum) index value at which the first valid data point |
---|
| 117 | is located. When the log header defines the direction as "Decreasing", the startIndex |
---|
| 118 | is the starting (maximum) index value at which the first valid data point is located. </xsd:documentation> |
---|
| 119 | </xsd:annotation> |
---|
| 120 | </xsd:element> |
---|
| 121 | <xsd:element name="endDateTimeIndex" type="witsml:timestamp" minOccurs="0" maxOccurs="1"> |
---|
| 122 | <xsd:annotation> |
---|
| 123 | <xsd:documentation>When the log header defines the direction as "Increasing", the endIndex |
---|
| 124 | is the ending (maximum) index value at which the last valid data point is located. |
---|
| 125 | When the log header defines the direction as Decreasing, the endIndex is the ending |
---|
| 126 | (minimum) index value at which the last valid data point is located. </xsd:documentation> |
---|
| 127 | </xsd:annotation> |
---|
| 128 | </xsd:element> |
---|
| 129 | </xsd:sequence> |
---|
| 130 | <xsd:element name="direction" type="witsml:LogIndexDirection" minOccurs="0" maxOccurs="1"> |
---|
| 131 | <xsd:annotation> |
---|
| 132 | <xsd:documentation>The sort order of the data row index values in the XML instance. |
---|
| 133 | For an "Increasing" direction the index value of consecutive data nodes are ascending. |
---|
| 134 | For a "Decreasing" direction the index value of consecutive data nodes are descending. |
---|
| 135 | The default direction is "Increasing". The direction of a log cannot be changed |
---|
| 136 | once it has been created. That is, this value cannot be updated in a server.</xsd:documentation> |
---|
| 137 | </xsd:annotation> |
---|
| 138 | </xsd:element> |
---|
| 139 | <xsd:element name="indexCurve" type="witsml:indexCurve" minOccurs="1" maxOccurs="1"> |
---|
| 140 | <xsd:annotation> |
---|
| 141 | <xsd:documentation>The mnemonic of the index curve plus the column index. |
---|
| 142 | A column index of zero indicates an implied trace whose values start at startIndex |
---|
| 143 | and increment by stepIncrement for each row.</xsd:documentation> |
---|
| 144 | </xsd:annotation> |
---|
| 145 | </xsd:element> |
---|
| 146 | <xsd:element name="nullValue" type="witsml:encodedValueString" minOccurs="0" maxOccurs="1"> |
---|
| 147 | <xsd:annotation> |
---|
| 148 | <xsd:documentation>An empty string is the default representation of a null value for a |
---|
| 149 | curve (i.e. when the null value representation is not explicitly defined). |
---|
| 150 | If a null value representation is defined for a log, this becomes the default for all curves |
---|
| 151 | in that log (but can be overridden at the curve level). |
---|
| 152 | An empty string is always a valid null value representation in the comma delimited list. |
---|
| 153 | An empty string is not a valid null value representation within a space delimited array. |
---|
| 154 | Specifying a null value also makes it easier to transform data back to a |
---|
| 155 | legacy format without having to scan the data to insure that the null pattern |
---|
| 156 | does not exist in the data. |
---|
| 157 | </xsd:documentation> |
---|
| 158 | </xsd:annotation> |
---|
| 159 | </xsd:element> |
---|
| 160 | <xsd:element name="logParam" type="witsml:indexedObject" minOccurs="0" maxOccurs="unbounded"> |
---|
| 161 | <xsd:annotation> |
---|
| 162 | <xsd:documentation>Log parameters. </xsd:documentation> |
---|
| 163 | </xsd:annotation> |
---|
| 164 | </xsd:element> |
---|
| 165 | <xsd:element name="logCurveInfo" type="witsml:cs_logCurveInfo" minOccurs="0" maxOccurs="unbounded"> |
---|
| 166 | <xsd:annotation> |
---|
| 167 | <xsd:documentation>Container element for the log curve information. </xsd:documentation> |
---|
| 168 | </xsd:annotation> |
---|
| 169 | </xsd:element> |
---|
| 170 | <xsd:element name="logData" type="witsml:cs_logData" minOccurs="0" maxOccurs="1"> |
---|
| 171 | <xsd:annotation> |
---|
| 172 | <xsd:documentation>Container for one or more "rows" of log data. </xsd:documentation> |
---|
| 173 | </xsd:annotation> |
---|
| 174 | </xsd:element> |
---|
| 175 | </xsd:sequence> |
---|
| 176 | </xsd:group> |
---|
| 177 | </xsd:schema> |
---|