Property talk:P9734

Latest comment: 2 years ago by Pamputt in topic format constraint (Q21502404)

Documentation

Treccani's Enciclopedia Dantesca ID
identifier for an item in the Enciclopedia Dantesca
Associated itemInstitute of the Italian Encyclopaedia (Q3803714)
Applicable "stated in" valueEnciclopedia Dantesca (Q5375442)
Data typeExternal identifier
Allowed values[a-z]+(-[a-z]+)*(_res-[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12})?
ExampleDante Alighieri (Q1067)dante
no label (Q86679765)visio-eynsham
Francesco Alighieri (Q55833105)francesco-alighieri_res-aec00cd3-87ee-11dc-8e9d-0016357eee51
Sourcehttps://www.treccani.it/enciclopedia/elenco-opere/Enciclopedia_Dantesca
Formatter URLhttps://www.treccani.it/enciclopedia/$1_(Enciclopedia-Dantesca)
Related to country  Italy (Q38) (See 396 others)
Lists
Proposal discussionProposal discussion
Current uses
Total239
Main statement231 out of 11,796 (2% complete)96.7% of uses
Qualifier31.3% of uses
Reference52.1% of uses
Search for values
[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)
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/P9734#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). Known exceptions: anagoge (Q484026)
List of violations of this constraint: Database reports/Constraint violations/P9734#Single value, SPARQL
Format “[a-z]+(-[a-z]+)*(_res-[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12})?: value must be formatted using this pattern (PCRE syntax). (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/P9734#Format, SPARQL
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/P9734#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/P9734#Entity types
Label required in languages: it: Entities using this property should have labels in one of the following languages: it (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/P9734#Label in 'it' language, search, SPARQL
  Pattern ^(.*)_+(?:\(Enciclopedia[_\-]Dantesca\))?$ will be automatically replaced to \1.
Testing: TODO list

format constraint (Q21502404) edit

@Epìdosis: Hi! Why did you set this format constraint?

I did not found any example in which occurs an underscore (why just one?) nor a digit (why only after the underscore?).

Furthermore, the one-or-more quantifier (+) and the parentheses are redundant if you also use the zero-or-more quantifier (*). --Horcrux (talk) 19:33, 16 July 2021 (UTC)Reply

@Horcrux: I modified the regex so that it matches all value currently present in Wikidata. Pamputt (talk) 00:13, 17 July 2021 (UTC)Reply
Hi @Horcrux, Pamputt:! I edited the constraint in order to match values such as the ones in Francesco Alighieri (Q55833105) ("francesco-alighieri_res-aec00cd3-87ee-11dc-8e9d-0016357eee51") and in Donati (Q287327) ("donati_res-35515c14-87ef-11dc-8e9d-0016357eee51"), but probably I did something imprecise. Thanks for noticing the problem and fixing it! Bye, --Epìdosis 07:44, 17 July 2021 (UTC)Reply
@Epìdosis: I see, I missed it! For the future (just to remark it :-)), ([...]*)+ and [...]* are perfectly equivalent. The meaning of (-[a-z]+)* was that two hypens cannot appear next to each other (because each hypen must be followed by at least a letter).
@Pamputt: Great, thanks! But why have you made optional the first part? I think that should be mandatory, while the second part is correctly optional. Currently, that regex matches also empty strings. --Horcrux (talk) 08:50, 17 July 2021 (UTC)Reply
@Horcrux: indeed, thanks for the remark. Probably too late when I changed it (I cannot remember why I wanted to make it optionnal). The first part is now mandatory. Pamputt (talk) 12:53, 17 July 2021 (UTC)Reply
Return to "P9734" page.