[SCAL] - Update RCA content schema

Schema with below additions:

Click to expand
{
    "$id": "RoutineCoreAnalysis.json",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "definitions": {
        "Conditions": {
            "type": "object",
            "properties": {
                "Pressure": {
                    "type": "object",
                    "properties": {
                        "Value": {
                            "type": "number"
                        },
                        "UnitOfMeasure": {
                            "type": "string",
                            "pattern": "^[\\w\\-\\.]+:reference-data\\-\\-UnitOfMeasure:[\\w\\-\\.\\:\\%]+:[0-9]*$"
                        },
                        "Type": {
                            "type": "string",
                            "pattern": "^[\\w\\-\\.]+:reference-data\\-\\-PressureMeasurementType:[\\w\\-\\.\\:\\%]+:[0-9]*$"
                        }
                    },
                    "additionalProperties": false
                },
                "Temperature": {
                    "type": "object",
                    "properties": {
                        "Value": {
                            "type": "number"
                        },
                        "UnitOfMeasure": {
                            "type": "string",
                            "pattern": "^[\\w\\-\\.]+:reference-data\\-\\-UnitOfMeasure:[\\w\\-\\.\\:\\%]+:[0-9]*$"
                        }
                    },
                    "additionalProperties": false
                }
            },
            "additionalProperties": false
        }
    },
    "properties": {
        "SamplesAnalysisID": {
            "type": "string",
            "pattern": "^[\\w\\-\\.]+:work-product-component\\-\\-SamplesAnalysis:[\\w\\-\\.\\:\\%]+:[0-9]*$"
          },
        "SampleID": {
            "type": "string",
            "pattern": "^[\\w\\-\\.]+:master-data\\-\\-Sample:[\\w\\-\\.\\:\\%]+:[0-9]*$"
        },
		"TestSteps": {
			"type":"array",
			"items": {
			   "NetConfiningStress": {
					"type": "object",
					"properties": {
						"Value": {
							"type": "number"
						},
						"UnitOfMeasure": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-UnitOfMeasure:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						}
					},
					"additionalProperties": false
				},				
				"Permeability": {
					"type": "object",
					"properties": {
						"Value": {
							"type": "number"
						},
						"UnitOfMeasure": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-UnitOfMeasure:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						},
						"Type": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-PermeabilityMeasurementType:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						},
						"Orientation": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-SampleOrientationType:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						},
						"Conditions": {
							"$ref": "#/definitions/Conditions"
						}
					},
					"additionalProperties": false
				},
				"Porosity": {
					"type": "object",
					"properties": {
						"Value": {
							"type": "number"
						},
						"UnitOfMeasure": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-UnitOfMeasure:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						},
						"Type": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-PorosityMeasurementType:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						},
						"Orientation": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-SampleOrientationType:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						},
						"Conditions": {
							"$ref": "#/definitions/Conditions"
						}
					},
					"additionalProperties": false
				},
				"GrainDensity": {
					"type": "object",
					"properties": {
						"Value": {
							"type": "number"
						},
						"UnitOfMeasure": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-UnitOfMeasure:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						},
						"Type": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-GrainDensityMeasurementType:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						},
						"Conditions": {
							"$ref": "#/definitions/Conditions"
						}
					},
					"additionalProperties": false
				},
				"GrainVolume": {
					"type": "object",
					"properties": {
						"Value": {
							"type": "number"
						},
						"UnitOfMeasure": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-UnitOfMeasure:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						},
						"Conditions": {
							"$ref": "#/definitions/Conditions"
						}
					},
					"additionalProperties": false						
				},
				"PoreVolume": {
					"type": "object",
					"properties": {
						"Value": {
							"type": "number"
						},
						"UnitOfMeasure": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-UnitOfMeasure:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						},
						"Conditions": {
							"$ref": "#/definitions/Conditions"
						}
					},					
					"additionalProperties": false
				},				
				"Saturation": {
					"type": "object",
					"properties": {
						"Value": {
							"type": "number"
						},
						"UnitOfMeasure": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-UnitOfMeasure:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						},
						"Type": {
							"type": "string"
						},
						"Method": {
							"type": "string",
							"pattern": "^[\\w\\-\\.]+:reference-data\\-\\-SaturationMethodType:[\\w\\-\\.\\:\\%]+:[0-9]*$"
						},
						"Conditions": {
							"$ref": "#/definitions/Conditions"
						}
					},
					"additionalProperties": false
				},
				"LithologyDescription": {
				  "type": "string"
				},
				"Remarks": {
				  "type": "string"
				}
			},
			"additionalProperties": false
		},
    "required": [
        "SamplesAnalysisID",
        "SampleID"
		]
	}
}	


  • Add NetConfiningStress to TestSteps array of objects to RCA content schema

NetConfiningStress - objectname

Object

  • Value
  • UnitOfMeasure

  • Add PoreVolume to TestSteps array of objects to RCA content schema

PoreVolume - object name

Object

  • Value
  • UnitOfMeasure

  • Add GrainVolume to TestSteps array of objects to RCA content schema

GrainVolume - object name

Object

  • Value
  • UnitOfMeasure
Edited by Michael Jones