Wikibase EDTF

Adds support for the Extended Date/Time Format (EDTF) Specification to Wikibase via a new data type.

On this page

External links

EDTF for Wikibase

Professional Wiki created Wikibase EDTF. We are Wikibase developers that provide professional Wikibase software development and Wikibase hosting.

We thank das Ministerium für Kultur in Luxemburg for funding initial development.

Nutzungsdokumentation

RDF export

Wikibase EDTF gives its value to the native RDF export mechanism using the datatypes xsd:EDTF datatype (e.g. "1867-05-26"^^xsd:edtf) and xsd:dateTime. For the latter datatype it turns EDTF values into standard Wikibase time (xsd:dateTime) values. Because Wikibase time values are a lot less expressive, the EDTF values are simplified in this process:

  • EDTF date or time: Precision and time zone are retained. Qualifications and unspecified digits are discarded.
  • EDTF Set: Each date in the set is exported.
  • EDTF Season: One date for each month is exported, each having month precision.
  • EDTF Interval: Nothing is exported (since there does not seem to be a reasonable default).

For cases where multiple dates are put in the RDF export, like with seasons and sets, there is nothing in the RDF indicating these values logically belong together.

If you can read PHP, you can see the simplification code in TimeValueBuilder.php.

Apparent duplicate results using SPARQL / Blazegraph

Because EDTF exposes the values as both xsd:edtf and a dumbed down xsd:dateTime you will get two values when querying properties with this datatype. using a filter in your SPARQL query can remove the value that you are not interested in:

#shows only the raw EDTF string from the query results, in this case ?date
FILTER ( datatype(?date) = xsd:edtf )
#shows only the dumbed down EDTF strings from the query results, in this case ?date
FILTER ( datatype(?date) = xsd:dateTime )

Note that if you are using OPTIONAL on the property, then you need to move the FILTER within the OPTIONAL statement.

Installation

Requirements

Load and enable

Load the extension using Composer:

COMPOSER=composer.local.json composer require --no-update professional-wiki/wikibase-edtf:^2.0

Enable the extension by adding the following to your LocalSettings.php:

wfLoadExtension( 'WikibaseEdtf' );

You can verify the installation by checking your wiki's Special:Version page.

Wikibase Hosting

Check out our tailored Wikibase hosting and Wikibase cloud hosting services.
Both include Wikibase EDTF and many other MediaWiki extensions.

Wikibase configuration section on the ProWiki Admin Panel

Weitere MediaWiki-Erweiterungen

View all our extensions

Professionelle MediaWiki-Dienstleistungen

MediaWiki services by the authors of Wikibase EDTF

Softwareentwicklung Symbol
Softwareentwicklung

Erzielen Sie hervorragende Ergebnisse mit erfahrenen MediaWiki-Entwicklern, die Erfahrung beim Entwickeln von MediaWiki-Erweiterungen und -Integrationen haben.

Theme-Entwicklung Symbol
Theme-Entwicklung

Lassen Sie Ihr Wiki großartig aussehen! Verwenden Sie ein erprobtes responsives MediaWiki-Theme oder lassen Sie uns ein individuelles MediaWiki-Skin für Sie erstellen.

MediaWiki-Hosting Symbol
MediaWiki-Hosting

Lassen Sie uns Ihr Wiki betreuen und hosten. Wir sind Experten für MediaWiki-Hosting und bieten Cloud-Hosting, dediziertes Hosting und Hosting vor Ort (On-Premises) an.

MediaWiki-Beratung Symbol
MediaWiki-Beratung

Steigern Sie Wert und Qualität Ihres Wikis, indem Sie unsere MediaWiki-Expertise nutzen. Von der Planung bis zur konkreten Implementierung haben wir alles im Griff.

MediaWiki-Migration Symbol
MediaWiki-Migration

Wechseln Sie sorglos zu einem neuen Hosting. Wir migrieren Ihr MediaWiki auf einen neuen Server, oder wir unterstützen Sie beim Umzug von einem anderen Wiki-System zu MediaWiki.

MediaWiki-Upgrades Symbol
MediaWiki-Upgrades

Wir sorgen dafür, dass Ihr MediaWiki auf dem neuesten Stand und geschützt bleibt. Wir bieten Wartung und Aktualisierung für MediaWiki, damit Ihr Wiki störungsfrei läuft.