Property talk:P7352

Latest comment: 4 years ago by Eihel in topic RegEx

Documentation

GENUKI ID
identifier for a UK or Irish place on the GENUKI.org.uk website
Applicable "stated in" valueGENUKI (Q5513177)
Data typeExternal identifier
Domainphysical location (Q17334923), architectural structure (Q811979) or organization (Q43229)
Allowed values^(wal|sct|eng|iom|irl|chi)?(\/?[A-Z]{3}){0,3}(\/\w{0,256}){0,4}$
ExampleScotland (Q22)sct
Middlesex (Q19186)eng/MDX
Glencairn (Q5568223)sct/DFS/Glencairn
Churchyard of Glencairn Parish Church (Q17802721)sct/DFS/Glencairn/GlencairnChurchofScotland
Republic of Ireland (Q27)irl
Sourcehttp://www.genuki.org.uk/
Formatter URLhttps://www.genuki.org.uk/big/$1
Related to country  United Kingdom (Q145) (See 327 others)
See alsoPOWiS ID (P7659)
Lists
Proposal discussionProposal discussion
Current uses
Total2,085
Main statement2,07499.5% of uses
Qualifier50.2% of uses
Reference60.3% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Format “(wal|sct|eng|iom|irl|chi)?(\/?[A-Z]{3}){0,3}(\/[\w\-]{0,256}){0,4}: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P7352#Format, hourly updated report, SPARQL
Scope is as main value (Q54828448), as reference (Q54828450): the property must be used by specified way only (Help)
List of violations of this constraint: Database reports/Constraint violations/P7352#Scope, hourly updated report, 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/P7352#Entity types

RegEx edit

Bonjour Manu1400, c'est quoi tous ces RegEx ? Pouvez-vous m'expliquer ? Cordialement. —Eihel (talk) 19:29, 7 March 2020 (UTC)Reply

@Eihel: Bonjour, tu veux la signification des différentes RegEx ou tu te pose la question de l'utilité d'avoir plusieurs RegEx ? Cordialement --Manu1400 (talk) 01:47, 9 March 2020 (UTC)Reply
@Manu1400: La RegEx que j'avais introduite englobe les votres. Il n'y en avait aucune au départ. Mais au lieu d'attendre une réponse, j'ai ajouté un identifiant sur Church of St Peter in the Wood (Q26568440) : CHI/GSY/StPeterWood. Vos RegEx ne réalisent pas cet identifiant, donc j'ai précisé ma RegEx et j'ai supprimé vos RegEx devenues inutiles. Une propriété avec plusieurs RegEx est une aberration : l'un est juste, alors qu'un autre peut être faux. Rien ne sert de remplir "Format" violations s'il n'y a pas d'erreur. Il ne faut qu'une RegEx réalise toutes les entrées. Suivant les entrées ici et la structure des données (ajouté en réf), ça fonctionne. —Eihel (talk) 06:53, 9 March 2020 (UTC)Reply
nb.: Plusieurs Regex peuvent être mises dans une propriété pour exclure des valeurs d'entrées (caractères, string, etc.) —Eihel (talk) 09:03, 10 March 2020 (UTC)Reply
Return to "P7352" page.