@prefix this: . @prefix sub: . @prefix schema: . @prefix gen: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix prov: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:paragraph a gen:Paragraph; schema:about nt:NanopubTemplate; schema:title "Dates and other typed values"; gen:hasContent """

nt:hasDatatype on a literal placeholder both constrains the value and changes the field. With xsd:date or xsd:dateTime, the form shows a date picker instead of a text field. For a point in time coarser than a day, the types xsd:gYear, xsd:gYearMonth, xsd:gMonth, xsd:gMonthDay and xsd:gDay are offered as parts to pick, such as a year alone.

The datatype is matched exactly. A placeholder with a datatype does not accept a plain, untyped value, so adding a datatype to a field of an existing template makes the older nanopublications, whose values are untyped, no longer fit it.

"""; gen:hasPositionString "090" . } sub:provenance { sub:assertion prov:wasAttributedTo . } sub:pubinfo { this: dct:created "2026-09-10T10:15:50Z"^^xsd:dateTime; dct:creator ; dct:license ; npx:introduces sub:paragraph; rdfs:label "Dates and other typed values"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl8cMusqtNyKA6UIsi3f7BAcZmHQXWxU0qk0PLsboMWQxYrGBfGgHTgRHJrBRxL+Zn9kJHKVmz2smDcjCBptXi/OwWy80gjsx+Pbe6IWz3zFPWF1UoFIKfPnC0slV67CQgdM853zW7Bmk9/uflCtK4EtZKmPdRGtUHVC7DTVvDBMDzLRGdE2KCBVN29EbM5GGVNvijYbaZQ9OFQPBkQshayqSIyGRr6rreJdkrRVLIzu3uuAjKYydaeXZWSN2JLnVBwrClKUxaEdCwhb5nXpMtKOMD+R+LgaXLeJUWM8BdRSYnta9ZqI5pHY4y3v+eW7J+HHeTvRbHvlik+Z4hFUXmQIDAQAB"; npx:hasSignature "SAmO/rNmDyDMztoyp9A0I+4ssHXuGpMVoAmg6CCdlSxIa+0KDtBRISXJPmq0wTpRJ+oxhNpq0tth/eZu1hgHv14QB1WTyN1UMLPwPHmBPezbx02QS8ADFUusfcCwbGN8KBRoRhX8/4Xm8cj3qJJCuqjK3fvM4NjinqWPM1dAp8ApgEpTtm9xdxmlGpnR28mWmHw1zZdjenPYNU57JbkDr9mgVWAR+JQwszznO1w9TFOfGHBxEuOhHxB4tvdwLHZoqJnpOoT/qRqenVbkAEILtojCuwoXkQNpbM5p1xpHMn9zsuloozqXvsrXoiXXIx2S4XGyybx6a4MrHX67M8rKMA=="; npx:hasSignatureTarget this:; npx:signedBy . }