Skip to content
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

Search only existing items with P31=Q5 #10

Open
framawiki opened this issue Jul 14, 2023 · 1 comment
Open

Search only existing items with P31=Q5 #10

framawiki opened this issue Jul 14, 2023 · 1 comment

Comments

@framawiki
Copy link
Contributor

In new item creation, may I suggest to use a search that restrict to human items, instead of plain text as actually? For example researchers often are in plaintext author list of papers items in WD but don't have items themselves.
I've used something like:

generator = pagegenerator.SearchPageGenerator(f'"{name}" haswbstatement:P31=Q5', total=50, site=site, namespaces=[0])

Thank you for this script, which is an incredible service to the community!

@mpeel
Copy link
Owner

mpeel commented Aug 27, 2023

I've not seen this causing a problem in practice, but it does sound reasonable. If you want to submit a pull request, I'll check through and implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants