RDF Datatype (archived)

By Daniel Berthereau Implement the main W3C RDF datatypes (html, xml, boolean, integer, decimal and date/time) in order to simplify user input and to give more semanticity to values of resources.

RDF Datatype (module for Omeka S) [archived]

IMPORTANT This module is deprecated and replaced by the modules Data Type RDF, that manages html, xml, and boolean, and Numeric Data Types, that manages integer and date/time. Install them for an automatic upgrade. Other data types are converted into literal.

RDF Datatype is a module for Omeka S that implements the main RDF datatypes and XSD datatypes that are recommended by the World Wide Web consortium W3C in order to simplify user input and to give a better semanticity to the values of the properties.

Default Omeka datatypes: - text - Omeka resource (item, item set, media) - uri

Added rdf and xsd datatypes: - rdf:HTML: an html fragment - rdf:XMLLiteral: an xml fragment - xsd:boolean: true or false - xsd:integer: a simple number - xsd:decimal: a decimal number - xsd:dateTime: a full ISO 8601 date time - xsd:date: an ISO 8601 date - xsd:time: an ISO 8601 time - xsd:gYear: a Gregorian year - xsd:gYearMonth: a Gregorian year and month - xsd:gMonth: a Gregorian month - xsd:gMonthDay: a Gregorian month and day - xsd:gDay: a Gregorian day of month


Uncompress files and rename plugin folder RdfDatatype.

See general end user documentation for Installing a module and follow the config instructions.


The data types that are set in the config of the module are automatically available in all the resource forms. It is advisable to avoid to overload the user interface.

In all cases, it is recommended to create resources templates in order to simplify the use of the datatypes and to normalize all the metadata of all the records.

Note: the datatypes xsd:gMonth, xsd:gMonthDay and xsd:gDay may not be intuitive. To be compliant with the standard, they should be prepended with -- for months, and --- for day. They are not added automatically. Furthermore, sparql cannot request any of the the Gregorian datatypes.


  • Use a javascript for xsd:dateTime.
  • Use a purifier for rdf:XMLLiteral.
  • Add a batch process to change the type of a property for a list of resources.
  • Add xsd:token or a derivative for standard or custom enumerations (language, etc.).
  • Add xsd:anyURI for uris.
  • Normalize Zend form for xsd:time, that requires seconds.
  • Simplify search (Omeka S issue #1241).
  • Manage restrictions via the resource templates (default value for boolean, range, default tokens, with or without seconds, css for html, xsl for xml…).
  • Allow to attach multiple selected datatypes to resource templates (in particular for subjects).


Use it at your own risk.

It’s always recommended to backup your files and your databases and to check your archives regularly so you can roll back if needed.


See online issues on the module issues page on GitHub.


This module is published under the CeCILL v2.1 license, compatible with GNU/GPL and approved by FSF and OSI.

This software is governed by the CeCILL license under French law and abiding by the rules of distribution of free software. You can use, modify and/ or redistribute the software under the terms of the CeCILL license as circulated by CEA, CNRS and INRIA at the following URL "http://www.cecill.info".

As a counterpart to the access to the source code and rights to copy, modify and redistribute granted by the license, users are provided only with a limited warranty and the software’s author, the holder of the economic rights, and the successive licensors have only limited liability.

In this respect, the user’s attention is drawn to the risks associated with loading, using, modifying and/or developing or reproducing the software by the user in light of its specific status of free software, that may mean that it is complicated to manipulate, and that also therefore means that it is reserved for developers and experienced professionals having in-depth computer knowledge. Users are therefore encouraged to load and test the software’s suitability as regards their requirements in conditions enabling the security of their systems and/or data to be ensured and, more generally, to use and operate it in the same conditions as regards security.

The fact that you are presently reading this means that you have had knowledge of the CeCILL license and that you accept its terms.


  • Copyright Daniel Berthereau, 2018
Version Released Minimum Omeka version 19, 2020 [info]^1.1.0 || ^2.0.0
3.0.4November 03, 2019 [info]^1.1.0 || ^2.0.0
3.0.2September 02, 2018 [info]^1.1.0