[Wikidata-bugs] [Maniphest] [Edited] T164744: Add violation type to restrict which entity types a property can be used

2018-04-17 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE updated the task description. (Show Details)
CHANGES TO TASK DESCRIPTION...Constraint statement on the property: "property constraint" -> "entity type constraint" with qualifier "TODO"item of property constraint" -> "[Wikibase item](https://www.wikidata.org/wiki/Q29934200)"/"[Wikibase property](https://www.wikidata.org/wiki/Q29934218)"/…


Examples where this is likely to be used:...TASK DETAILhttps://phabricator.wikimedia.org/T164744EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lucas_Werkmeister_WMDECc: PokestarFan, abian, Lucas_Werkmeister_WMDE, Aklapper, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Agabi10, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Edited] T164744: Add violation type to restrict which entity types a property can be used

2018-04-15 Thread Lydia_Pintscher
Lydia_Pintscher updated the task description. (Show Details)
CHANGES TO TASK DESCRIPTIONWe might want to consider a constraint on the entity type of a statement’s subjectSome properties are supposed to be used only on one or a few entity types. As an editor I want to be able to define which entity types a property can be used on so I can easily find cases where the property is used in a wrong context via the existing constraint system.

- We currently have no way to express the constraint “only properties should have //property constraint// statements”, which has already resulted in some misuse of the property: [example 1](https://www.wikidata.org/w/index.php?title=Q1667500&oldid=478113631#P2302), [example 2](https://www.wikidata.org/w/index.php?title=Q21126229&oldid=477738338#P2302).Violation message shown to the user on violating statements: "Entity type constraint: This property should only be used on "$entitytype"."
Constraint statement on the property: "property constraint" -> "entity type constraint" with qualifier "TODO"


Examples where this is likely to be used:
* indicating that "property constraint" should only be used on properties
- This would probably also be useful in connection with structured data on commons – there might be some properties that we only want on mediainfo entities (not sure), but much more importantly there are lots of properties that we //don’t// want on mediainfo entities (only on items).* restricting "rhymes with" and similar properties to LexemesTASK DETAILhttps://phabricator.wikimedia.org/T164744EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lydia_PintscherCc: PokestarFan, abian, Lucas_Werkmeister_WMDE, Aklapper, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Agabi10, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs