Download the PHP package professional-wiki/wikibase-edtf without Composer

On this page you can find all versions of the php package professional-wiki/wikibase-edtf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wikibase-edtf

Wikibase EDTF

GitHub Workflow Status Latest Stable Version Download count

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

Professional.Wiki created and maintains Wikibase EDTF. We provide Wikibase hosting, Wikibase development and Wikibase consulting.

Wikibase EDTF is an open source project that was made possible with the financial support of the Luxembourg Ministry of Culture. Contributions are welcome!

You can find a demo of this extension at https://edtf.wikibase.wiki

Usage

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:

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.

apparant 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:

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

Installation

Platform requirements:

See the release notes for more information on the different versions of this extension.

First install MediaWiki and Wikibase Repository.

The recommended way to install Wikibase EDTF is using Composer with MediaWiki's built-in support for Composer.

On the commandline, go to your wikis root directory. Then run these two commands:

If you have MediaWiki 1.36 and earlier, use ^1.2.0 instead of ^2.0.0

Enabling the extension

Then enable the extension by adding the following to the bottom of your wikis "LocalSettings.php" file:

You can verify the extension was enabled successfully by opening your wiki's "Special:Version" page in your browser.

Running the tests

Release notes

Version 2.1.1 - 2023-03-31

Version 2.1.0 - 2023-01-18

Version 2.0.1 - 2022-03-26

Version 2.0.0 - 2022-01-23

Version 1.2.0 - 2021-04-28

Version 1.1.0 - 2021-04-04

Version 1.0.0 - 2021-03-19


All versions of wikibase-edtf with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
composer/installers Version ^2|^1.0.1
professional-wiki/edtf Version ^3.0.0|^2.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package professional-wiki/wikibase-edtf contains the following files

Loading the files please wait ....