Skip to content
Alpha: see what works today →
Menu

cascade:paddedDateTime padded date-time

https://ns.cascadeprotocol.org/cascade#paddedDateTime

Of a version, the node saying that one of its times was written short of the second, one for each such property.

Type
owl:ObjectProperty
Range
cascade:PaddedDateTime
Shapes
  • cascade:VersionWithPaddedDateTimeShape: nodeKind sh:IRI A version's padded time is a node of the version.

cascade:VersionWithPaddedDateTimeShape checks the subject of any cascade:paddedDateTime.

On the whole node: sparql [ a sh:SPARQLConstraint; message "A padded time is the node <version>#padded- and its property's local name, or, of a view's entry or a member's values in a view, whose IRIs have a fragment already, <entry>-padded- and the local name; and its subject holds one xsd:dateTime under that property: {?node} is not."; severity sh:Violation; select

SELECT $this ?node WHERE {
  $this <https://ns.cascadeprotocol.org/cascade#paddedDateTime> ?node .
  OPTIONAL { ?node <https://ns.cascadeprotocol.org/cascade#paddedDateTimeProperty> ?property }
  FILTER (!BOUND(?property)
          || STR(?node) != CONCAT(STR($this), IF(CONTAINS(STR($this), "#"), "-padded-", "#padded-"), REPLACE(STR(?property), "^.*[#/]", ""))
          || NOT EXISTS { $this ?property ?time .
                          FILTER (isLiteral(?time) && DATATYPE(?time) = <http://www.w3.org/2001/XMLSchema#dateTime>) })
}
]

Where it comes from and what uses it
Queries
15 queries