Code Monkey home page Code Monkey logo

omeka-s-wikidata's Introduction

Wikidata Module for Omeka-S

An Omeka-S module based on ValueSuggest for auto-suggest Wikidata URIs and labels.

Autocomplete URIs and Label

This module adds an auto-complete feature to a specific property in a resource template and suggests items from Wikidata and auto-fills the URI with a label in the preferred language. Users will always have the option of creating custom values instead.

Item property Subject is typed in the field. A drop-down menu auto-suggests items

Multilingual

Helps to retrieve labels in different languages

Item property Subject is typed in the field. Language is set to Japanese. A drop-down menu auto-suggests items with Japanese label.

Installation

Uncompress files from release zip or clone repository and rename module folder to Wikidata. See general end user documentation for Installing a module

Installing from the latest release

Download zip or tar.gz file from the latest release and uncompress it to the Wikidata folder inside Omeka's modules. All module files should be inside /your-omeka-path/modules/Wikidata.

Installing latest development branch

Download latest development version as a zip file. Or use the following commands in your Linux/Mac environments.

cd /your-omeka-path/modules/
curl -L -o omeka-s-wikidata-master.zip https://github.com/nishad/omeka-s-wikidata/archive/master.zip
unzip omeka-s-wikidata-master.zip
mv omeka-s-wikidata-master Wikidata
rm omeka-s-wikidata-master.zip

Usage

Enabling Wikidata suggestion for properties

Wikidata URI suggestions are enabled through Resource Templates. For additional information on Resource Templates, see the Resource Template Documentation.

  1. From the Resources templates tab in the Admin Dashboard, add a new template or edit an existing one.
  2. Add the property to which you want to apply Wikidata URI suggestion.
  3. Once the property is added to the template, click the pencil/edit icon for that property.
  4. At the bottom of the drawer, which opens on the right, open the Data type drop-down. Below the standard options, you will see the Wikidata options. Select the type of suggestion you want to use from the drop-down.
    • Note that you can also add alternate labels and comments for the property in this drawer.
  5. Click the Set changes button at the bottom of the drawer to assign the Values to the property.
  6. Save changes to the resource template.

Editing the property place, and the drop-down is open to show the Wikidate suggestion for locations

When you click the Resource Template title to see its details, the Wikidata suggestion type will appear under the Data Type table heading.

A red rectangle highlights the fact that the data type for subject and place

Adding Wikidata URI to an Item

When this Resource Template is used in an Item or Item Set, the designated properties will auto-suggest values from the type of Wikidta item specified in the template.

Users must start typing in the open text box of that specific property to prompt the auto-suggest feature. There may be a slight delay, but a drop-down menu will appear with choices drawn directly from Wikidata.

Item property Subject is typed in the field. A drop-down menu auto-suggests items

Hover over selections in the drop-down menu for a preview of that Wikidata item.

Citation

If our work is helpful to you, please kindly cite our paper as:

Thalhath N., Nagamori M., Sakaguchi T., Sugimoto S. (2021) Wikidata Centric Vocabularies and URIs for Linking Data in Semantic Web Driven Digital Curation. In: Garoufallou E., Ovalle-Perandones MA. (eds) Metadata and Semantic Research. MTSR 2020. Communications in Computer and Information Science, vol 1355. Springer, Cham. https://doi.org/10.1007/978-3-030-71903-6_31

@InProceedings{10.1007/978-3-030-71903-6_31,
author="Thalhath, Nishad
and Nagamori, Mitsuharu
and Sakaguchi, Tetsuo
and Sugimoto, Shigeo",
editor="Garoufallou, Emmanouel
and Ovalle-Perandones, Mar{\'i}a-Antonia",
title="Wikidata Centric Vocabularies and URIs for Linking Data in Semantic Web Driven Digital Curation",
booktitle="Metadata and Semantic Research",
year="2021",
publisher="Springer International Publishing",
address="Cham",
pages="336--344"}

Todo

  • Basic Configuration
  • Cache switching
  • Configuring from Omeka Admin section
  • Sample SPARQL filter
  • Sample Custom filters
  • Detailed documentation
  • Move some of the API access to browser

More Wikidata centric features and configuration options, including configurable filters and custom SPARQL queries, are being developed. This module is kept entirely independent from ValueSuggest to support future developments as a dedicated Wikidata addon.

Pull requests are more than welcome!

License

Usage is provided under the GNU General Public License version 3. See LICENSE for the full details.

omeka-s-wikidata's People

Contributors

atomotic avatar daniel-mietchen avatar nishad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

omeka-s-wikidata's Issues

Language selection not working

Hi,
I'm stuck with the language selection not working for the "Item" vocabulary, I always get the English one. For instance, if I want to insert "XIXe siècle" in French, typing "fr" in the language field, I get the English one for it, "19th century". I'm working with the latest version of Omeka S and of the plugin.
Thank you in advance

Error (update needed)

Hi, I'm using Omeka S 4.01 and I'm getting this error :

Error: Wikidata requires Omeka S ^3.0.0

Will there be an update for v4+ ?

Installation failed

Hi Nishhad,

I've just tried to install the wikidata module on a brand new Omeka S installation (3.0.1) and got the error message: Error: Wikidata requires Omeka S ^1.0.0 || ^2.0.0 Does that mean it will not run with version 3.x? Any plans to make it happen? Would be great to have a Wikidata connector for use in Omeka ...
Best Michael

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.