Property talk:P2271

From Wikidata
Jump to navigation Jump to search

Documentation

Wikidata property example for properties
examples of using a property in an item statement
[create Create a translatable help page (preferably in English) for this property to be included here]
Value type “Wikidata property (Q18616576): This property should use items as value that contain property “instance of (P31)”. On these, the value for instance of (P31) should be an item that uses subclass of (P279) with value Wikidata property (Q18616576) (or a subclass thereof). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P2271#Value type Q18616576, SPARQL
Scope is as main value (Q54828448): the property must be used by specified way only (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P2271#Scope, SPARQL
Multi value: this property generally contains two or more values. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P2271#Multi value, SPARQL
Item “property constraint (P2302): Items with this property should also have “property constraint (P2302)”. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P2271#Item P2302, search, SPARQL
Allowed entity types are Wikibase property (Q29934218): the property may only be used on a certain entity type (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P2271#Entity types
Non-existent examples
Properties with examples that do not exist at the target properties (Help)
Violations query: SELECT ?item WHERE { ?item p:P2271 ?example . ?example ps:P2271 ?targetitem . ?example ?pq ?value . ?prop wikibase:qualifier ?pq . ?prop wikibase:propertyType ?dt . ?item wikibase:propertyType ?dt . FILTER NOT EXISTS { { ?prop wikibase:claim ?p } UNION { ?item wikibase:claim ?p } . ?ip wikibase:claim ?p . ?targetitem ?p ?statement . ?ip wikibase:statementProperty ?ps . ?statement ?ps ?value . } . }
List of this constraint violations: Database reports/Complex constraint violations/P2271#Non-existent examples

Purpose[edit]

What is the difference of this property from P1863 (P1863) and Wikidata property example (P1855)? May be to create some help page where to describe documentation model... --Infovarius (talk) 20:42, 3 November 2015 (UTC)[reply]

It's the same as P1855, except that the datatype allows property-entities, not item-entities. In a few cases, this is needed.
Both can use P1863 as qualifier. --- Jura 20:58, 3 November 2015 (UTC)[reply]