Skip to content

Commit

Permalink
Merge pull request #488 from NASA-PDS/revert434
Browse files Browse the repository at this point in the history
Revert "Issue #434 ASCII_Date_Time_* - Schematron (#462)"
  • Loading branch information
jordanpadams committed Jun 3, 2022
2 parents 525c2a0 + 1c9e3aa commit 9e298d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 58 deletions.
58 changes: 1 addition & 57 deletions model-ontology/src/ontology/Data/UpperModel.pins
@@ -1,4 +1,4 @@
; Tue Apr 12 17:27:40 EDT 2022
; Thu Mar 24 08:27:10 EDT 2022
;
;+ (version "3.5")
;+ (build "Build 663")
Expand Down Expand Up @@ -3299,62 +3299,6 @@
(identifier "TBD_Identifier")
(specMesg "TBD_SpecMesg"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3ATime_Coordinates%2Fpds%3Astart_date_time.100004629] of Schematron_Rule

(alwaysInclude "false")
(attrNameSpaceNC "pds")
(attrTitle "TBD_AttrTitle")
(classNameSpaceNC "pds")
(classSteward "pds")
(classTitle "Time_Coordinates")
(has_Schematron_Assert [http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3ATime_Coordinates%2Fpds%3Astart_date_time.100004629.101])
(identifier "pds:Time_Coordinates/pds:start_date_time")
(isMissionOnly "false")
(roleId "TBD_roleId")
(schematronAssign
"name=\"leapsecs\" value=\"contains(.,'60')\""
"name=\"type-date\" value=\"if (contains(.,'T')) then (xs:dateTime(.)) else (xs:date(.))\""
"name=\"date-sansZ\" value=\"translate(., 'Z', '')\"")
(type "TBD_type")
(xpath "pds:Time_Coordinates/pds:start_date_time"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3ATime_Coordinates%2Fpds%3Astart_date_time.100004629.101] of Schematron_Assert

(assertMsg "The value for \"pds:Time_Coordinates/pds:start_date_time\" does not appear to be a valid date-time: '<sch:value-of select=\".\"/>' - '<sch:value-of select=\"$type-date\"/>'")
(assertStmt "if ($leapsecs) then ($type-date = .) else (true())")
(assertType "RAW")
(attrTitle "start_date_time")
(identifier "start_date_time")
(specMesg "TBD"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3ATime_Coordinates%2Fpds%3Astop_date_time.100004630] of Schematron_Rule

(alwaysInclude "false")
(attrNameSpaceNC "pds")
(attrTitle "TBD_AttrTitle")
(classNameSpaceNC "pds")
(classSteward "pds")
(classTitle "Time_Coordinates")
(has_Schematron_Assert [http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3ATime_Coordinates%2Fpds%3Astop_date_time.100004630.101])
(identifier "pds:Time_Coordinates/pds:stop_date_time")
(isMissionOnly "false")
(roleId "TBD_roleId")
(schematronAssign
"name=\"leapsecs\" value=\"contains(.,'60')\""
"name=\"type-date\" value=\"if (contains(.,'T')) then (xs:dateTime(.)) else (xs:date(.))\""
"name=\"date-sansZ\" value=\"translate(., 'Z', '')\"")
(type "TBD_type")
(xpath "pds:Time_Coordinates/pds:stop_date_time"))

([http%3A%2F%2Fpds.nasa.gov%2Finfomodel%2Fpds%23.pds%3ATime_Coordinates%2Fpds%3Astop_date_time.100004630.101] of Schematron_Assert

(assertMsg "The value for \"pds:Time_Coordinates/pds:stop_date_time\" does not appear to be a valid date-time: '<sch:value-of select=\".\"/>' - '<sch:value-of select=\"$type-date\"/>'")
(assertStmt "if ($leapsecs) then ($type-date = .) else (true())")
(assertType "RAW")
(attrTitle "stop_date_time")
(identifier "stop_date_time")
(specMesg "TBD"))

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

(alwaysInclude "false")
Expand Down
2 changes: 1 addition & 1 deletion model-ontology/src/ontology/Data/UpperModel.pont
@@ -1,4 +1,4 @@
; Tue Apr 12 17:27:39 EDT 2022
; Thu Mar 24 08:27:10 EDT 2022
;
;+ (version "3.5")
;+ (build "Build 663")
Expand Down

0 comments on commit 9e298d5

Please sign in to comment.