harvesttemplates icon indicating copy to clipboard operation
harvesttemplates copied to clipboard

[Enhancement] Limit to instances of X

Open nicolas-raoul opened this issue 7 years ago • 2 comments

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.

nicolas-raoul avatar Oct 20 '17 06:10 nicolas-raoul

Why not using property constraints?

matejsuchanek avatar Oct 20 '17 07:10 matejsuchanek

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.

nicolas-raoul avatar Oct 20 '17 07:10 nicolas-raoul