Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
wikidata-query-gui
Advanced tools
This repository contains the GUI for the [Wikidata Query Service](https://query.wikidata.org/).
#Wikibase Query Service GUI
This repository contains the GUI for the Wikidata Query Service.
Please see more details about the service in the User Manual.
#Download & setup
Clone git repo, go into created folder and then pull all dependencies via npm package manager.
$ git clone https://gerrit.wikimedia.org/r/wikidata/query/gui
$ cd gui
$ npm install
Alternative use npm install
npm install wikidata-query-gui
#Run tests
Run JSHint, JSCS and QUnit tests.
$ grunt test
#Build Create a build with bundled and minified files.
$ grunt build
#Deploy Creates a build and pushes it to the deployment branch via git review
$ grunt deploy
Please make sure you have defined a gitreview username:
git config --global --add gitreview.username "[username]"
#Components
A CodeMirror based SPARQL editor with code completion (ctrl+space) and tooltips (hover)
var editor = new wikibase.queryService.ui.editor.Editor();
editor.fromTextArea( $( '.editor' )[0] );
See examples/editor.html
A dialog that allows browsing of SPARQL examples
new wikibase.queryService.ui.QueryExampleDialog( $element, querySamplesApi, callback, previewUrl );
See examples/dialog.html
var api = new wikibase.queryService.api.Sparql();
api.query( query ).done( function(){
var json = JSON.parse( api.getResultAsJson() );
} );
See examples/sparql.html JSFiddle.net
Views that allow rendering SPARQL results see documentation.
var api = new wikibase.queryService.api.Sparql();
api.query( query ).done(function() {
var result = new wikibase.queryService.ui.resultBrowser.CoordinateResultBrowser();
result.setResult( api.getResultRawData() );
result.draw( element );
} );
See examples/result.html JSFiddle.net
Unfortunately there are no releases and the provided code and interfaces are not considered to be stable. Also the dist/ folder contains a build that may not reflect the current code on master branch.
FAQs
This repository contains the GUI for the [Wikidata Query Service](https://query.wikidata.org/).
The npm package wikidata-query-gui receives a total of 1 weekly downloads. As such, wikidata-query-gui popularity was classified as not popular.
We found that wikidata-query-gui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.