harvesttemplates
harvesttemplates copied to clipboard
[Enhancement] Limit to instances of X
The book infobox is sometimes used for a list of books. Example: https://fr.wikipedia.org/wiki/Liste_des_romans_de_SAS
To prevent against adding non-applicable statements, how about a filter to make sure the item is a book? That way, we can be sure the statement is applicable.
It should allow instances of subclasses too (for instance instances of recipes books), maybe with something like ?item p:P31/ps:P31/wdt:P279* wd:Q571
.
Why not using property constraints?
Many properties do not have constraints so that people can use their judgement and use them if they fit a new situation. As HarvestTemplate is an automated tool, it is not designed for situations where case-per-case human judgement is necessary. So, better be safe and place more limits than defined by the property constraints.