Skip to content

Commit

Permalink
Merge pull request #755 from NASA-PDS/240404_JIRA-CCB-356_Update_Auth…
Browse files Browse the repository at this point in the history
…or_Editor

Update Constraints on Author_Editor Lists (JIRA-CCB-356)
  • Loading branch information
jordanpadams committed Apr 15, 2024
2 parents e6aebe3 + 4983dc5 commit 1ba3eee
Show file tree
Hide file tree
Showing 7 changed files with 5,644 additions and 88 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/branch-cicd.yaml
Expand Up @@ -62,7 +62,11 @@ jobs:
java-version: ${{matrix.java-version}}
-
name: 🩺 Test Software
run: mvn site package
run: mvn install

-
name: 🩺 Test Site
run: mvn site

-
name: ∫ Smoke Tests with Discipline LDDs
Expand Down
103 changes: 99 additions & 4 deletions model-ontology/src/ontology/Data/UpperModel.pins
@@ -1,4 +1,4 @@
; Wed Feb 14 12:30:04 CST 2024
; Fri Apr 12 11:20:19 EDT 2024
;
;+ (version "3.5")
;+ (build "Build 663")
Expand Down Expand Up @@ -992,12 +992,12 @@

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AIdentification_Area.100002521.103] of Schematron_Assert

(assertMsg "The value of the attribute logical_identifier must start with either: <sch:value-of select=\"$urn_nasa\"/> or <sch:value-of select=\"$urn_esa\"/> or <sch:value-of select=\"$urn_jaxa\"/> or <sch:value-of select=\"$urn_ros\"/> or <sch:value-of select=\"$urn_isro\"/> or <sch:value-of select=\"$urn_kari\"/>")
(assertStmt "if (pds:logical_identifier) then starts-with(pds:logical_identifier, $urn_nasa) or starts-with(pds:logical_identifier, $urn_esa) or starts-with(pds:logical_identifier, $urn_jaxa) or starts-with(pds:logical_identifier, $urn_ros) or starts-with(pds:logical_identifier, $urn_isro) or starts-with(pds:logical_identifier, $urn_kari) else true()")
(assertMsg "The parent-value of the attribute logical_identifier must start with either: <sch:value-of select=\"$urn_nasa\"/> or <sch:value-of select=\"$urn_esa\"/> or <sch:value-of select=\"$urn_jaxa\"/> or <sch:value-of select=\"$urn_ros\"/> or <sch:value-of select=\"$urn_isro\"/> or <sch:value-of select=\"$urn_kari\"/>")
(assertStmt "if (not ($parentObj) and pds:logical_identifier) then starts-with(pds:logical_identifier, $urn_nasa) or starts-with(pds:logical_identifier, $urn_esa) or starts-with(pds:logical_identifier, $urn_jaxa) or starts-with(pds:logical_identifier, $urn_ros) or starts-with(pds:logical_identifier, $urn_isro) or starts-with(pds:logical_identifier, $urn_kari) else true()")
(assertType "RAW")
(attrTitle "logical_identifier")
(identifier "logical_identifier")
(specMesg "The parent-value of the attribute logical_identifier must start with either: <sch:value-of select=\"$urn_nasa\"/> or <sch:value-of select=\"$urn_esa\"/> or <sch:value-of select=\"$urn_jaxa\"/> or <sch:value-of select=\"$urn_ros\"/> or <sch:value-of select=\"$urn_isro\"/>"))
(specMesg "The parent-value of the attribute logical_identifier must start with either: <sch:value-of select=\"$urn_nasa\"/> or <sch:value-of select=\"$urn_esa\"/> or <sch:value-of select=\"$urn_jaxa\"/> or <sch:value-of select=\"$urn_ros\"/> or <sch:value-of select=\"$urn_isro\"/> or <sch:value-of select=\"$urn_kari\"/>"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AIdentification_Area.100002521.104] of Schematron_Assert

Expand Down Expand Up @@ -1355,6 +1355,101 @@
"is_telescope"
"is_airborne"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AOrganization.100004777] of Schematron_Rule

(alwaysInclude "true")
(attrNameSpaceNC "pds")
(attrTitle "sequence_number")
(classNameSpaceNC "pds")
(classSteward "pds")
(classTitle "Organization")
(has_Schematron_Assert [http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AOrganization.100004777.101])
(identifier "pds:Organization")
(isMissionOnly "false")
(roleId "TBD_roleId")
(schematronAssign
"name=\"parentNode\" value=\"local-name(parent::*)\""
"name=\"parentObj\" value=\"$parentNode = ('Person', 'Organization', 'Parent_Organization', 'Affiliation')\"")
(type "TBD_type")
(xpath "pds:sequence_number"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AOrganization.100004777.101] of Schematron_Assert

(assertMsg "The minimum value of sequence_number within the context of 'Person' or 'Organization' or 'Parent_Organization' or 'Affiliation' is 1.")
(assertStmt "(not(. = 0 and $parentObj))")
(assertType "RAW")
(attrTitle "sequence_number")
(identifier "sequence_number")
(specMesg "The minimum value of sequence_number within the context of 'Person' or 'Organization' or 'Parent_Organization' or 'Affiliation' is 1."))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AOrganization.100004778] of Schematron_Rule

(alwaysInclude "true")
(attrNameSpaceNC "pds")
(attrTitle "contributor_type")
(classNameSpaceNC "pds")
(classSteward "pds")
(classTitle "Organization")
(has_Schematron_Assert [http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AOrganization.100004778.106])
(identifier "pds:Organization/pds:contributor_type")
(isMissionOnly "false")
(roleId "TBD_roleId")
(schematronAssign
"name=\"parentNode\" value=\"local-name(parent::*)\""
"name=\"parentObj\" value=\"$parentNode = ('List_Contributor')\""
"name=\"parentNode2\" value=\"local-name(parent::*/parent::*)\""
"name=\"parentObj2\" value=\"$parentNode2 = ('List_Contributor')\"")
(type "TBD_type")
(xpath "pds:Organization/pds:contributor_type"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AOrganization.100004778.101] of Schematron_Assert

(assertMsg "sequence_number = '<sch:value-of select=\".\" />'.")
(assertStmt "false()")
(assertType "RAW")
(attrTitle "contributor_type")
(identifier "contributor_type"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AOrganization.100004778.102] of Schematron_Assert

(assertMsg "parentObj = '<sch:value-of select=\"$parentObj\" />'.")
(assertStmt "false()")
(assertType "RAW")
(attrTitle "contributor_type")
(identifier "contributor_type"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AOrganization.100004778.103] of Schematron_Assert

(assertMsg "parentNode = '<sch:value-of select=\"$parentNode\" />'")
(assertStmt "false()")
(assertType "RAW")
(attrTitle "contributor_type")
(identifier "contributor_type"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AOrganization.100004778.104] of Schematron_Assert

(assertMsg "parentNode2 = '<sch:value-of select=\"$parentNode2\" />'.")
(assertStmt "false()")
(assertType "RAW")
(attrTitle "contributor_type")
(identifier "contributor_type"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AOrganization.100004778.105] of Schematron_Assert

(assertMsg "parentObj2 = '<sch:value-of select=\"$parentObj2\" />'.")
(assertStmt "false()")
(assertType "RAW")
(attrTitle "contributor_type")
(identifier "contributor_type"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AOrganization.100004778.106] of Schematron_Assert

(assertMsg "The atribute 'pds:Organization/pds:contributor_type' can only be used within the context of 'List_Contributor'.")
(assertStmt "($parentObj2)")
(assertType "RAW")
(attrTitle "contributor_type")
(identifier "contributor_type"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3AProduct_AIP%2Fpds%3AInformation_Package_Component%2Fpds%3AInternal_Reference.100002527] of Schematron_Rule

(alwaysInclude "false")
Expand Down

0 comments on commit 1ba3eee

Please sign in to comment.