Property talk:P1612
Latest comment: 9 years ago by Ivan A. Krestinin in topic Validation
Documentation
Commons Institution page
name of the institutions's page on Wikimedia Commons (without the prefix "Institution")
name of the institutions's page on Wikimedia Commons (without the prefix "Institution")
Description | Commons has an individual "Institution" template for many GLAM institutions, for example Commons:Institution:Louvre. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Represents | Commons Institution page (Q48552277) | ||||||||||||
Has quality | MediaWiki page title (Q83336425) | ||||||||||||
Data type | String | ||||||||||||
Domain | organization (Q43229), architectural structure (Q811979), collection (Q2668072) or facility (Q13226383) | ||||||||||||
Allowed values | According to this template:
Institution-space page on Commons
According to statements in the property:
When possible, data should only be stored as statements(?![Ii]nstitution\s*:)[^][|]+ | ||||||||||||
Example | Louvre Museum (Q19675) → Louvre Hermitage Museum (Q132783) → Hermitage Museum San Telmo Museoa (Q3329346) → San Telmo Museoa Baranagore Ramakrishna Mission Ashrama High School (Q19882251) → Baranagore Ramakrishna Mission Ashrama High School | ||||||||||||
Format and edit filter validation | Institution-space page on Commons; Format "(?![Ii]nstitution\s*:)[^][|]+" | ||||||||||||
Source | Institution-space page on Commons (note: this information should be moved to a property statement; use property source website for the property (P1896)) | ||||||||||||
Formatter URL | https://commons.wikimedia.org/wiki/Institution:$1 | ||||||||||||
Robot and gadget jobs | About half of Institution templates already have a Wikidata link, so it should be possible for a bot to populate the property for those institutions very directly. Exceptions are listed at c:Category:Institution templates without Wikidata link. Semi-automation of an effort to identify corresponding Wikidata items for these should be possible, similar to work currently being done on Creator templates without a Wikidata link. | ||||||||||||
See also | Commons gallery (P935), Commons category (P373), Commons Creator page (P1472) | ||||||||||||
Lists |
| ||||||||||||
Proposal discussion | Proposal discussion | ||||||||||||
Current uses |
| ||||||||||||
Search for values |
[create Create a translatable help page (preferably in English) for this property to be included here]
Single value: this property generally contains a single value. (Help)
List of violations of this constraint: Database reports/Constraint violations/P1612#Single value, hourly updated report, SPARQLDistinct values: this property likely contains a value that is different from all other items. (Help)
List of violations of this constraint: Database reports/Constraint violations/P1612#Unique value, hourly updated report, SPARQL (every item), SPARQL (by value)Format “
List of violations of this constraint: Database reports/Constraint violations/P1612#Format, hourly updated report, SPARQL(?![Ii]nstitution\s*:)[^\]\[\|]+
”: value must be formatted using this pattern (PCRE syntax). (Help)Type “organization (Q43229), architectural structure (Q811979), collection (Q2668072), facility (Q13226383)”: item must contain property “instance of (P31)” with classes “organization (Q43229), architectural structure (Q811979), collection (Q2668072), facility (Q13226383)” or their subclasses (defined using subclass of (P279)). (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/P1612#Type Q43229, Q811979, Q2668072, Q13226383, SPARQL
Conflicts with “instance of (P31): Wikimedia disambiguation page (Q4167410), Wikimedia category (Q4167836), Wikimedia list article (Q13406463)”: this property must not be used with the listed properties and values. (Help)
List of violations of this constraint: Database reports/Constraint violations/P1612#Conflicts with P31, hourly updated report, SPARQLItem “Commons category (P373)”: Items with this property should also have “Commons category (P373)”. (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/P1612#Item P373, search, SPARQL
Link to Commons namespace “Institution”: this property should contain a well-formed link to an existing page on Wikimedia Commons. (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/P1612#Commons link
Allowed entity types are Wikibase item (Q29934200): 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/P1612#Entity types
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/P1612#Scope, SPARQL
Untitled
editThis is the kind of property we ought to have anyway, to express relations between items and a particular set of wiki pages, in the same way that we now have Commons Creator page (P1472) for the Creator namespace. Jheald (talk) 16:39, 20 September 2014 (UTC)
Validation
editCan we add a check for the prefix "Institution:" and throw a warning if one is found? (Better still: automatically remove it?) Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 09:44, 13 February 2015 (UTC)
- @Pigsonthewing: the format constraint does exactly that and it's set to mandatory. Multichill (talk) 19:17, 13 February 2015 (UTC)
- Thanks, but nonetheless I was allowed to save such a value, with no notification. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:19, 13 February 2015 (UTC)
- You could make an abusefilter, but I'm afraid that's not going to be very user friendly at all. Multichill (talk) 12:10, 14 February 2015 (UTC)
- Thanks, but nonetheless I was allowed to save such a value, with no notification. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:19, 13 February 2015 (UTC)
- My bot fixes "Institution:" prefix and some other unwanted values. — Ivan A. Krestinin (talk) 15:29, 14 February 2015 (UTC)
- Awesome! Is this documented somewhere? Would be nice to have it on this page or link from this page. Multichill (talk) 17:49, 14 February 2015 (UTC)
- It is mentioned on bot`s page. Bot process all Commons-related properties. The job was started at summer 2013. — Ivan A. Krestinin (talk) 18:14, 14 February 2015 (UTC)
- Awesome! Is this documented somewhere? Would be nice to have it on this page or link from this page. Multichill (talk) 17:49, 14 February 2015 (UTC)