@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 { 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.

A fixed datatype suits a field whose precision the template can decide. Where it is the author's to decide — one person knows only the year, another the hour — use nt:DatePlaceholder instead (Nanodash 5.20 and later). It offers year, month, day, time and timezone, and the published value is typed by what was entered: \"2026\"^^xsd:gYear, \"2026-11\"^^xsd:gYearMonth, \"2026-11-16\"^^xsd:date, or a full xsd:dateTime. On this placeholder, nt:hasDatatype lists the precisions accepted instead of fixing one.

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-11-18T12:45:49.175+01:00"^^xsd:dateTime; dct:creator ; dct:license ; npx:introduces ; rdfs:label "Editing a paragraph"; prov:wasDerivedFrom ; 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 "HfIVPzKKz0AbyM5XcwZnfcmuZEJMCXKgYeSBaQZezwTcH4JDjvx7FmiNcK3Fyj1TUR2938IzrnVKY6SewRrtPFVb0ShH7kKnJCA5SV3DYdEAbzfxGqogBWC3vmqkpyGx+/som+X+jRbzkMmx1lspGPH8YFt3+jOOWNAqEbW3RSOaWKi7YIvfLp1NJciJcCpNlq7ICL3OVD577UJVEIsDaYc54nkpQFZ6vpnYnEw+ohB3I/IZHWPikAjL4vZ4F9AF0jdTvvhb/gw1OLxeTuW/0zCAwQCV+SLcf7Beq61GQV0jO1KarvVMUKCuJbQVRyi1ZXPEPRMMM2p/C4T6/SQLvQ=="; npx:hasSignatureTarget this:; npx:signedBy . }