Giter Club home page Giter Club logo

anvesha's Introduction

Anvesha

Drill-down browser for any installation of Wikibase, including Wikidata.

Installation and Usage

The project can be directly cloned using git and ran on any server.

https://github.com/sahajsk21/Anvesha.git

Setup the configuration file

Create a config.js file in the root("/") folder. Following parameters can be set in this file:-

  1. SITE_NAME : The title of the website. Takes a string value as input.
  2. PREFERRED_LANGUAGES : An array of language symbols to set the default languages for the website.
  3. RESULTS_PER_PAGE : Maximum number of results to be displayed on a page. Takes an integer value as input.
  4. FAVICON : Path for setting the favicon image. Enter the path as a string value.
  5. LOGO : Path for setting the logo image. Enter the path as a string value.
  6. SUGGESTED_CLASSES : Class suggestions to be displayed on the homepage. Takes an array of string values of item IDs (prefixed with Q).
  7. SPARQL_ENDPOINT : URL input as a string value for the Wikibase instance to be used to fetch data.
  8. INSTANCE_OF_PID : Property ID for instance of property. Takes a string value as input.
  9. PROPERTIES_FOR_THIS_TYPE_PID : Property ID for properties for this type property. Takes a string value as input.
  10. LINKS_IN_TOPNAV : Links to be added in the top navbar of the website. Takes an object as input with key-value pairs where the key represents the label and value represents the path.

Example :

SITE_NAME = "Anvesha"
PREFERRED_LANGUAGES = ["en","fr"]
RESULTS_PER_PAGE = 50
FAVICON = "images/favicon.png"
LOGO = "images/logo.png"
SUGGESTED_CLASSES = [ "Q5", "Q515", "Q523", "Q4022", "Q7366", "Q7397", "Q7889", "Q8502",
 "Q11303", "Q11424","Q16521", "Q43229", "Q178561", "Q188784", "Q215380", "Q746549", "Q3305213",
 "Q4830453", "Q5398426","Q7725634", "Q15632617"]
SPARQL_ENDPOINT = "https://query.wikidata.org/sparql?query="
INSTANCE_OF_PID = "P31"
PROPERTIES_FOR_THIS_TYPE_PID = "P1963"
LINKS_IN_TOPNAV = {
    "Source":"https://github.com/sahajsk21/Anvesha",
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GPL-3.0 License

Contact

Yaron koren ([email protected])

Sahaj Khandelwal ([email protected])

anvesha's People

Contributors

aftabuzzaman avatar naresh-kumar-babu avatar sahajsk21 avatar translatewiki avatar yaronkoren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

anvesha's Issues

Application crashes if language selected that has no JSON file

Some recent change - I'm guessing #31 - caused Anvesha/Wikidata Walkabout to crash when the user selects a language for which there is no language JSON file. (Instead of just using the English-language messages, as it's supposed to do.) Here is just one example:

https://wikidatawalkabout.org/?lang=hr

I put in a temporary fix on Wikidata Walkabout by greatly reducing the number of suggested languages, but obviously it would be better to support many more languages.

Selected filter values stay in "memory" even after you hit the back button

There are many ways to replicate this problem, but here is one. From the main page:

  • click "Film"
  • click "country of origin"
  • click "Italy"
  • hit "back"
  • hit "back"
  • click "director"

The display looks fine, but the URL now contains an extra "f.P495=Q38" - and will to continue to hold this string as you keep clicking on things. Which is not good, because then if you reload the page at any point, the "country of origin: Italy" filter will get added back in to the display.

Avoid display of "L..." items

I don't know how big a problem this is, but currently, in the first screen of values in the "Human" class, there are three items that look like "L" with 7 digits after it:

https://wikidatawalkabout.org/?c=Q5&lang=en

I'm guessing that there are more than just these three among Wikidata results, but I don't know for sure. Anyway, any item whose name starts with "L" (or maybe just any that doesn't start with "Q") should be ignored.

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.