-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trial and write documentation about whether custom Wikibase instructions can also be used to customize Wikidata queries #184
Comments
This looks like it will work and will make it into the documentation. Unfortunately I am hitting up against Wikidata rate limiting today. Connect string:
{
"PronomProp": "http://www.wikidata.org/entity/Q35432091",
"BofProp": "http://www.wikidata.org/entity/Q35436009",
"EofProp": "http://www.wikidata.org/entity/Q1148480"
} TrID query:
Example output: ---
siegfried : 1.9.2
scandate : 2022-09-07T11:55:20+02:00
signature : default.sig
created : 2022-09-07T11:55:18+02:00
identifiers :
- name : 'wikidata'
details : 'wikidata-definitions-3.0.0 (2022-09-07)'
---
filename : 'trid'
filesize : 6
modified : 2022-09-07T11:55:14+02:00
errors :
matches :
- ns : 'wikidata'
id : 'Q100137240'
format : 'VariCAD Drawing'
URI : 'http://www.wikidata.org/entity/Q100137240'
permalink : 'https://www.wikidata.org/w/api.php/w/index.php?oldid=1423314911&title=Q100137240'
mime : 'application/octet-stream'
basis : 'byte match at 0, 3 (TrID)'
warning : 'extension mismatch' Filter the signature file by format type, raster-graphics:
---
siegfried : 1.9.2
scandate : 2022-09-07T12:30:19+02:00
signature : default.sig
created : 2022-09-07T12:30:16+02:00
identifiers :
- name : 'wikidata'
details : 'wikidata-definitions-3.0.0 (2022-09-07)'
---
filename : 'trid'
filesize : 10
modified : 2022-09-07T12:29:20+02:00
errors :
matches :
- ns : 'wikidata'
id : 'Q1143961'
format : 'JBIG2'
URI : 'http://www.wikidata.org/entity/Q1143961'
permalink : 'https://www.wikidata.org/w/api.php/w/index.php?oldid=1526516378&title=Q1143961'
mime :
basis : 'byte match at 0, 8 (Gary Kessler''s File Signature Table (source date: 2017-08-08))'
warning : 'extension mismatch' |
May still be some typos here and there, but documentation here (feature complete! 🤘): |
This came up in the #AusPreserves meeting. If a SPARQL query can be customized then there is additional flexibility for users. Related to #183 it can also reduce the load on Wikidata during
-harvest
where they already have a lot of stress on their back-end to deliver results.It dawned on me that while the Wikidata query is compiled with Siegfried, the custom Wikibase effort could potentially be used to connect to Wikidata proper but using a slightly modified query. Those instructions are here:
We'd just need to change the query to match that expected by the WDQS and make sure the URIs we connect to are correct, including port information.
Potential customization would rely on only reducing what is output from the existing SPARQL query, i.e. filtering.
Examples may be:
Recording that idea here as a potential docs improvement.
The text was updated successfully, but these errors were encountered: