Skip to content

Commit

Permalink
Merge pull request #806 from NASA-PDS/240624_Missing_schematron_rule_…
Browse files Browse the repository at this point in the history
…bundle_to_target_

Add missing standard values for relating a bundle to targets
  • Loading branch information
jordanpadams authored Aug 13, 2024
2 parents bfe8ad5 + 10754d9 commit 850cef8
Show file tree
Hide file tree
Showing 4 changed files with 273 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,48 @@ public void insertValueMeaning() {
"pds:DD_Attribute/pds:Internal_Reference.reference_type.attribute_to_document",
"attribute_to_document", "The attribute is associated to a document");
masterValueMeaningMap.put(lPVD.identifier, lPVD);


lPVD = new PermValueDefn(
"pds:Product_Observational/pds:Observation_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference.reference_type.data_to_target",
"data_to_target", "The observational product is associated to a target product");
masterValueMeaningMap.put(lPVD.identifier, lPVD);

lPVD = new PermValueDefn(
"pds:Product_Bundle/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference.reference_type.bundle_to_target",
"bundle_to_target", "The bundle product is associated to a target product");
masterValueMeaningMap.put(lPVD.identifier, lPVD);

lPVD = new PermValueDefn(
"pds:Product_Collection/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference.reference_type.collection_to_target",
"collection_to_target", "The collection product is associated to a target product");
masterValueMeaningMap.put(lPVD.identifier, lPVD);

lPVD = new PermValueDefn(
"pds:Product_Browse/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference.reference_type.browse_to_target",
"browse_to_target", "The browse product is associated to a target product");
masterValueMeaningMap.put(lPVD.identifier, lPVD);

lPVD = new PermValueDefn(
"pds:Product_External/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference.reference_type.external_to_target",
"external_to_target", "The external product is associated to a target product");
masterValueMeaningMap.put(lPVD.identifier, lPVD);

lPVD = new PermValueDefn(
"pds:Product_Native/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference.reference_type.native_to_target",
"native_to_target", "The native product is associated to a target product");
masterValueMeaningMap.put(lPVD.identifier, lPVD);

lPVD = new PermValueDefn(
"pds:Product_SPICE_Kernel/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference.reference_type.data_to_target",
"data_to_target", "The SPICE kernel product is associated to a target product");
masterValueMeaningMap.put(lPVD.identifier, lPVD);

lPVD = new PermValueDefn(
"pds:Product_XML_Schema/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference.reference_type.schema_to_target",
"schema_to_target", "The XML schema product is associated to a target product");
masterValueMeaningMap.put(lPVD.identifier, lPVD);


return;
}
Expand Down
205 changes: 204 additions & 1 deletion model-ontology/src/ontology/Data/UpperModel.pins
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; Mon Jun 24 20:07:52 EDT 2024
; Thu Aug 08 12:01:13 EDT 2024
;
;+ (version "3.5")
;+ (build "Build 663")
Expand Down Expand Up @@ -1582,6 +1582,31 @@
"ancillary_to_document"
"ancillary_to_browse"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Browse%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004864] of Schematron_Rule

(alwaysInclude "false")
(attrNameSpaceNC "pds")
(attrTitle "reference_type")
(classNameSpaceNC "pds")
(classSteward "pds")
(classTitle "Internal_Reference")
(has_Schematron_Assert [http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Browse%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004864.101])
(identifier "pds:Product_Browse/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference")
(isMissionOnly "false")
(roleId "TBD_roleId")
(type "TBD_type")
(xpath "pds:Product_Browse/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Browse%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004864.101] of Schematron_Assert

(assertMsg " must be set to one of the following values ")
(assertStmt "every $ref in (pds:reference_type) satisfies $ref = ('browse_to_target')")
(assertType "EVERY")
(attrTitle "reference_type")
(identifier "reference_type")
(specMesg "TBD")
(testValArr "browse_to_target"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Browse%2Fpds%3AIdentification_Area%2Fpds%3ALicense_Information%2Fpds%3AInternal_Reference.100002548] of Schematron_Rule

(alwaysInclude "false")
Expand Down Expand Up @@ -1837,6 +1862,31 @@
(specMesg "TBD")
(testValArr "bundle_to_investigation"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Bundle%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004862] of Schematron_Rule

(alwaysInclude "false")
(attrNameSpaceNC "pds")
(attrTitle "reference_type")
(classNameSpaceNC "pds")
(classSteward "pds")
(classTitle "Internal_Reference")
(has_Schematron_Assert [http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Bundle%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004862.101])
(identifier "pds:Product_Bundle/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference")
(isMissionOnly "false")
(roleId "TBD_roleId")
(type "TBD_type")
(xpath "pds:Product_Bundle/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Bundle%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004862.101] of Schematron_Assert

(assertMsg " must be set to one of the following values ")
(assertStmt "every $ref in (pds:reference_type) satisfies $ref = ('bundle_to_target')")
(assertType "EVERY")
(attrTitle "reference_type")
(identifier "reference_type")
(specMesg "TBD")
(testValArr "bundle_to_target"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Bundle%2Fpds%3AIdentification_Area.100002531] of Schematron_Rule

(alwaysInclude "true")
Expand Down Expand Up @@ -2086,6 +2136,31 @@
(specMesg "TBD")
(testValArr "collection_to_investigation"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Collection%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004863] of Schematron_Rule

(alwaysInclude "false")
(attrNameSpaceNC "pds")
(attrTitle "reference_type")
(classNameSpaceNC "pds")
(classSteward "pds")
(classTitle "Internal_Reference")
(has_Schematron_Assert [http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Collection%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004863.101])
(identifier "pds:Product_Collection/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference")
(isMissionOnly "false")
(roleId "TBD_roleId")
(type "TBD_type")
(xpath "pds:Product_Collection/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Collection%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004863.101] of Schematron_Assert

(assertMsg " must be set to one of the following values ")
(assertStmt "every $ref in (pds:reference_type) satisfies $ref = ('collection_to_target')")
(assertType "EVERY")
(attrTitle "reference_type")
(identifier "reference_type")
(specMesg "TBD")
(testValArr "collection_to_target"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Collection%2Fpds%3AIdentification_Area.100002535] of Schematron_Rule

(alwaysInclude "true")
Expand Down Expand Up @@ -2480,6 +2555,31 @@
"document_to_target"
"document_to_data"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_External%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004865] of Schematron_Rule

(alwaysInclude "false")
(attrNameSpaceNC "pds")
(attrTitle "reference_type")
(classNameSpaceNC "pds")
(classSteward "pds")
(classTitle "Internal_Reference")
(has_Schematron_Assert [http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_External%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004865.101])
(identifier "pds:Product_External/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference")
(isMissionOnly "false")
(roleId "TBD_roleId")
(type "TBD_type")
(xpath "pds:Product_External/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_External%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004865.101] of Schematron_Assert

(assertMsg " must be set to one of the following values ")
(assertStmt "every $ref in (pds:reference_type) satisfies $ref = ('external_to_target')")
(assertType "EVERY")
(attrTitle "reference_type")
(identifier "reference_type")
(specMesg "TBD")
(testValArr "external_to_target"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_External%2Fpds%3AIdentification_Area%2Fpds%3ALicense_Information%2Fpds%3AInternal_Reference.100002548] of Schematron_Rule

(alwaysInclude "false")
Expand Down Expand Up @@ -2579,6 +2679,31 @@
(specMesg "TBD")
(testValArr "product_to_license"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Native%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004866] of Schematron_Rule

(alwaysInclude "false")
(attrNameSpaceNC "pds")
(attrTitle "reference_type")
(classNameSpaceNC "pds")
(classSteward "pds")
(classTitle "Internal_Reference")
(has_Schematron_Assert [http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Native%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004866.101])
(identifier "pds:Product_Native/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference")
(isMissionOnly "false")
(roleId "TBD_roleId")
(type "TBD_type")
(xpath "pds:Product_Native/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Native%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004866.101] of Schematron_Assert

(assertMsg " must be set to one of the following values ")
(assertStmt "every $ref in (pds:reference_type) satisfies $ref = ('native_to_target')")
(assertType "EVERY")
(attrTitle "reference_type")
(identifier "reference_type")
(specMesg "TBD")
(testValArr "native_to_target"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Native%2Fpds%3AIdentification_Area%2Fpds%3ALicense_Information%2Fpds%3AInternal_Reference.100002548] of Schematron_Rule

(alwaysInclude "false")
Expand Down Expand Up @@ -2827,6 +2952,31 @@
(specMesg "TBD")
(testValArr "data_to_target"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Observational%2Fpds%3AObservation_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004861] of Schematron_Rule

(alwaysInclude "false")
(attrNameSpaceNC "pds")
(attrTitle "reference_type")
(classNameSpaceNC "pds")
(classSteward "pds")
(classTitle "Internal_Reference")
(has_Schematron_Assert [http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Observational%2Fpds%3AObservation_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004861.101])
(identifier "pds:Product_Observational/pds:Observation_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference")
(isMissionOnly "false")
(roleId "TBD_roleId")
(type "TBD_type")
(xpath "pds:Product_Observational/pds:Observation_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Observational%2Fpds%3AObservation_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004861.101] of Schematron_Assert

(assertMsg " must be set to one of the following values ")
(assertStmt "every $ref in (pds:reference_type) satisfies $ref = ('data_to_target')")
(assertType "EVERY")
(attrTitle "reference_type")
(identifier "reference_type")
(specMesg "TBD")
(testValArr "data_to_target"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Observational%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100002553] of Schematron_Rule

(alwaysInclude "false")
Expand Down Expand Up @@ -2944,6 +3094,31 @@
(identifier "x")
(specMesg "In Product_SPICE_Kernel the Time_Coordinates, Investigation_Area, Target_Identification, and Observing_System classes must be present"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_SPICE_Kernel%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004867] of Schematron_Rule

(alwaysInclude "false")
(attrNameSpaceNC "pds")
(attrTitle "reference_type")
(classNameSpaceNC "pds")
(classSteward "pds")
(classTitle "Internal_Reference")
(has_Schematron_Assert [http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_SPICE_Kernel%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004867.101])
(identifier "pds:Product_SPICE_Kernel/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference")
(isMissionOnly "false")
(roleId "TBD_roleId")
(type "TBD_type")
(xpath "pds:Product_SPICE_Kernel/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_SPICE_Kernel%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004867.101] of Schematron_Assert

(assertMsg " must be set to one of the following values ")
(assertStmt "every $ref in (pds:reference_type) satisfies $ref = ('data_to_target')")
(assertType "EVERY")
(attrTitle "reference_type")
(identifier "reference_type")
(specMesg "TBD")
(testValArr "data_to_target"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Thumbnail%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100002529] of Schematron_Rule

(alwaysInclude "false")
Expand Down Expand Up @@ -2997,6 +3172,31 @@
(specMesg "TBD")
(testValArr "update_to_collection"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_XML_Schema%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004868] of Schematron_Rule

(alwaysInclude "false")
(attrNameSpaceNC "pds")
(attrTitle "reference_type")
(classNameSpaceNC "pds")
(classSteward "pds")
(classTitle "Internal_Reference")
(has_Schematron_Assert [http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_XML_Schema%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004868.101])
(identifier "pds:Product_XML_Schema/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference")
(isMissionOnly "false")
(roleId "TBD_roleId")
(type "TBD_type")
(xpath "pds:Product_XML_Schema/pds:Context_Area/pds:Target_Identification/pds:Reference_List/pds:Internal_Reference"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_XML_Schema%2Fpds%3AContext_Area%2Fpds%3ATarget_Identification%2Fpds%3AReference_List%2Fpds%3AInternal_Reference.100004868.101] of Schematron_Assert

(assertMsg " must be set to one of the following values ")
(assertStmt "every $ref in (pds:reference_type) satisfies $ref = ('schema_to_target')")
(assertType "EVERY")
(attrTitle "reference_type")
(identifier "reference_type")
(specMesg "TBD")
(testValArr "schema_to_target"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_Zipped%2Fpds%3AInternal_Reference.100002558] of Schematron_Rule

(alwaysInclude "false")
Expand Down Expand Up @@ -3963,6 +4163,9 @@
([upper_110812b_Class0] of %3APAL-CONSTRAINT
)

([UpperModel_bundle_to_target_Class16] of Schematron_Assert
)

([Waves] of Group_Facet2

(facet2 "Waves"))
2 changes: 1 addition & 1 deletion model-ontology/src/ontology/Data/UpperModel.pont
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; Mon Jun 24 20:07:52 EDT 2024
; Thu Aug 08 12:01:12 EDT 2024
;
;+ (version "3.5")
;+ (build "Build 663")
Expand Down
Loading

0 comments on commit 850cef8

Please sign in to comment.