Property talk:P2623

Latest comment: 8 years ago by Tacsipacsi in topic Format

Documentation

MEK ID
identifier of a book or translation in the Hungarian Electronic Library
[create Create a translatable help page (preferably in English) for this property to be included here]
Distinct 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/P2623#Unique value, hourly updated report, 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). Known exceptions: The Yellow Rose (Q1314849)
List of violations of this constraint: Database reports/Constraint violations/P2623#Single value, SPARQL
Format “(\d{3})00\/\1\d{2}: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P2623#Format, hourly updated report, SPARQL
Type “written work (Q47461344), translated text (Q21112633): item must contain property “instance of (P31)” with classes “written work (Q47461344), translated text (Q21112633)” 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/P2623#Type Q47461344, Q21112633, 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/P2623#Entity types
Scope is as main value (Q54828448), as reference (Q54828450): 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/P2623#Scope, SPARQL
 
This property is being used by:

Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.)

Format edit

The current format is redundant: e.g. Q435703 has 07500/07542, however, 07542 would also be accurate (the first part is the hundreds from the second part). So I propose to change the format before too many items use it. --Tacsipacsi (talk) 22:39, 19 March 2016 (UTC)Reply

On the one hand, sure, let's have as little redundancy as possible, while on the other hand, that would make the usage of this property a lot harder, as it would require JavaScript or something similar for every time we'd want to link to it. (If we don't change the forrmat, the regex can be refined to reflect this [(\d{3})00/\1\d{2}].) – Máté (talk) 23:15, 19 March 2016 (UTC)Reply
I don’t know how to specify the formatter URL, but in wikitext we can use {{padleft:{{#expr:( floor({{{1}}}/100) )*100}}|5}}/{{{1}}} which ends up in 07500/07542 in this case. --Tacsipacsi (talk) 12:04, 20 March 2016 (UTC)Reply
Return to "P2623" page.