|
|
# WellLog entity : Meta only (record) consistency
|
|
|
|
|
|
- Check unicity of the CurveID attribute (mandatory in the schema)
|
|
|
- Check unicity of the [data.Curves.CurveID](https://community.opengroup.org/osdu/data/data-definitions/-/blob/v0.14.0/E-R/work-product-component/WellLog.1.2.0.md#L168) attribute (mandatory in the schema)
|
|
|
|
|
|
- Check that ReferenceCurveID value exists in the list of Curves.CurveID
|
|
|
- Check that [data.ReferenceCurveID](https://community.opengroup.org/osdu/data/data-definitions/-/blob/v0.14.0/E-R/work-product-component/WellLog.1.2.0.md#L191)value exists in the list of Curves.CurveID
|
|
|
|
|
|
example:
|
|
|
|
|
|
````python
|
|
|
````json
|
|
|
{
|
|
|
"id": "...",
|
|
|
"data": {
|
|
|
"ReferenceCurveID": "MD",
|
|
|
"SamplingStart": 7627.0,
|
|
|
"SamplingStopt": 7627.7,
|
|
|
"Curves": [
|
|
|
{
|
|
|
"CurveID": "ZONE_NAME",
|
|
|
"CurveUnit": null,
|
|
|
"Mnemonic": "ZONE_NAME",
|
|
|
"LogCurveFamilyID": "data-partition-id:reference-data--LogCurveFamily:Zone%20Name:",
|
|
|
"NumberOfColumns": 1
|
|
|
"CurveID": "CSHG",
|
|
|
"Mnemonic": "CSHG",
|
|
|
"LogCurveFamilyID": "data-partition-id:reference-data--LogCurveFamily:Core%20Mercury%20Saturation:",
|
|
|
"NumberOfColumns": 4
|
|
|
},
|
|
|
{
|
|
|
"CurveID": "MD",
|
... | ... | @@ -23,20 +28,22 @@ example: |
|
|
"NumberOfColumns": 1
|
|
|
}
|
|
|
],
|
|
|
"ReferenceCurveID": "MD"
|
|
|
|
|
|
}
|
|
|
````
|
|
|
|
|
|
`ReferenceCurveID` is set and each `Curves.CurveID` is unique.
|
|
|
In the example, `ReferenceCurveID` is set to `MD` and `MD` exists `Curves.CurveID` list.
|
|
|
Each `Curves.CurveID` is unique, here `MD` and `CSHG`.
|
|
|
|
|
|
|
|
|
|
|
|
# WellLog entity : Meta data (record) & Bulk consistency
|
|
|
|
|
|
WellLog record can exist without bulk data
|
|
|
WellLog record can exist without bulk data.
|
|
|
|
|
|
When bulk is added\edited or meta data is changed following checks to be done :
|
|
|
When bulk is added\edited following checks to be done :
|
|
|
|
|
|
- Ensure **exact match** between **column name** and **curveID** attributes in the record.
|
|
|
- Ensure **exact match** between **column names** in the bulk and **curveID** attributes in the record.
|
|
|
|
|
|
- Identify in the bulk which column is associated to a **ReferenceCurveID** in the record.
|
|
|
|
... | ... | |