jakobw / wd-query-builder Goto Github PK
View Code? Open in Web Editor NEWPrototype of the Wikidata Query Builder for generating lists from Wikidata
Home Page: https://tools.wmflabs.org/wd-query-builder/
License: GNU General Public License v2.0
Prototype of the Wikidata Query Builder for generating lists from Wikidata
Home Page: https://tools.wmflabs.org/wd-query-builder/
License: GNU General Public License v2.0
Currently, it is already possible to combine multiple values for a property, e.g. using the "any item matching" option in the dropdown menu.
It would be nice to have a way to also combine properties using such an "any" relationship, i.e. combining different properties with OR rather than AND.
For example, I'd like to query for items that have either the "country" or "country of origin" property set to a specific country.
FILTER NOT EXISTS would be what I this option to output into the query but it just looks for any object with that value which is excatly what it isn't supposed to do
When "x" (delete) a property value pair, nothing happens and console shows an error of Error in event handler for "remove": "TypeError: _vm.statements.splice is not a function
The autosuggest for properties results in "No properties found" and spawns an error on the console: Loading failed for the <script> with source “https://www.wikidata.org/w/api.php?action=wbsearchentities&continue=0&format=json&language=en&search=a&type=property&uselang=en&callback=__jp0”.
(Firefox 56, Linux, npm run dev
)
There should be a link on the tool's page (https://tools.wmflabs.org/wd-query-builder/) to this repository, and likewise, the README in the repo and the url (editable in the settings in the github interface) should link to the live tool page.
I can contribute the changes to the README and to the html page, but the repository settings can only be changed by the repo owner.
There's no easy way currently to clear the current query. I think there would be two options to make this possible:
Expected: results show up. (In this case, 0 results, but something should still happen.)
Actual: Nothing happens (no WDQS embed), and there are two errors in the console:
[Vue warn]: Error in callback for watcher "valueType": "TypeError: specialValue.classConstructor is not a constructor"
found in
---> at src/components/ValueSelector.vue
at src/components/Qualifier.vue
at src/components/Statement.vue
at src/components/StatementList.vue
at src/App.vue
vue.esm.js:578
TypeError: specialValue.classConstructor is not a constructor
Stack trace:
newValue@webpack-internal:///22:21:16
valueType@webpack-internal:///41:126:26
run@webpack-internal:///1:3207:11
flushSchedulerQueue@webpack-internal:///1:2955:5
nextTick/<@webpack-internal:///1:1814:9
flushCallbacks@webpack-internal:///1:1735:5
[Vue warn]: Error in nextTick: "TypeError: qualifier.getValue(...) is undefined"
vue.esm.js:578
TypeError: qualifier.getValue(...) is undefined
Stack trace:
addQualifierTriples@webpack-internal:///142:59:87
generateQuery@webpack-internal:///142:25:7
generateQuery@webpack-internal:///51:56:14
boundFn@webpack-internal:///1:192:9
showResults/<@webpack-internal:///51:72:24
nextTick/<@webpack-internal:///1:1814:9
flushCallbacks@webpack-internal:///1:1735:5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.