Property talk:P9936
Latest comment: 3 years ago by Rachmat04 in topic Regex change
Documentation
Indonesian Museum National Registration System ID
identifiant of Indonesian Museum National Registration System by Ministry of Education, Culture, Research and Technology of Indonesia
identifiant of Indonesian Museum National Registration System by Ministry of Education, Culture, Research and Technology of Indonesia
[create Create a translatable help page (preferably in English) for this property to be included here]
Type “museum (Q33506)”: item must contain property “instance of (P31)” with classes “museum (Q33506)” 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/P9936#Type Q33506, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (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/P9936#Unique value, SPARQL (every item), SPARQL (by value)
Single value: this property generally contains a single value. (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/P9936#Single value, SPARQL
Format “
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). [A-Za-z0-9]{188,194}={0,2}
”: value must be formatted using this pattern (PCRE syntax). (Help)List of violations of this constraint: Database reports/Constraint violations/P9936#Format, 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/P9936#Scope, SPARQL
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/P9936#Entity types
Item “country (P17): Indonesia (Q252)”: Items with this property should also have “country (P17): Indonesia (Q252)”. (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/P9936#Item P17, search, SPARQL
|
|
Regex change
editHello @Pamputt, I changed regex format of this property to [A-Za-z0-9]{188,194}\=?\=?
I forgot to mention that some of the IDs are ending with double equal signs. For example, see this property's value on Q4271636. Hope it does not break anything. Best, ··· 🌸 Rachmat04 · ☕ 06:48, 20 October 2021 (UTC)
- After a moment later, @Raisha (WMID) has changed the format again to a better code. Thanks! ··· 🌸 Rachmat04 · ☕ 07:00, 20 October 2021 (UTC)
- I changed it so that it passes the regex only if the equal signs are at the end of the string. With the previous regex, it would accept also strings where = signs are present in the middle of the string, even more than 2 times. Pamputt (talk) 12:55, 20 October 2021 (UTC)
- @Pamputt: Thanks! ··· 🌸 Rachmat04 · ☕ 15:32, 20 October 2021 (UTC)
- I changed it so that it passes the regex only if the equal signs are at the end of the string. With the previous regex, it would accept also strings where = signs are present in the middle of the string, even more than 2 times. Pamputt (talk) 12:55, 20 October 2021 (UTC)