Giter Club home page Giter Club logo

wikidata-spiral's Introduction

View it here. Only tested on latest version of Google Chrome!

Demo image

Originally created as a means to explore Wikidata's subclass hierarchy, Wikidata Spiral proved to be more useful in visualizing art. However it is generic enough to explore almost any property. One limitation of this view is that it depends on the presence of the image property on entities (which is why it works so well for artists). Hopefully this will promote the addition of more images to Wikidata.

Usage

  • Use the left/right or up/down arrows to scroll through the slices.
  • Hovering over a slice will display its label.
  • Clicking one a slice will attempt to set the slice as the root, finding new slices which have CLAIM[$property:$newRoot]. This is useful for properties such as P279 (subclass of), P171 (parent taxon), or P131 (located in the administrative territorial entity).
  • Double clicking on a slice will open its corresponding Wikidata page.

Parameters

(Accessible as URL parameters)

Name Type Default Description
root QID Q5582 The item displayed as root
property PID P170 The property to follow. The spiral's slices are determined by CLAIM[$property:$root]
langs CSV en,fr The language(s) to pull label names as.
slices Integer 12 The number of slices to display at a time.
autoScroll Boolean false Whether the spiral should automatically scroll.
query WDQ CLAIM[$property:$root] The Wikidata Query used to determine slices. See WDQ's Documentation for help. The variables $property and $root are available for use in the query.
unicodeIcons Boolean false Whether to use unicode characters (P487) instead of label's first letter as an icon for each slice. Also forces the letters to show above images.

Examples

Credits

APIs/resources

Third party libraries

wikidata-spiral's People

Contributors

cdrini avatar

Watchers

James Cloos avatar  avatar

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.