Property talk:P1529

From Wikidata
Jump to navigation Jump to search

Documentation

Gertrude ID
identifier for a cultural property per the Glad database of French cultural heritage
DescriptionIdentifier for Q18107552, restricted to the listed in the general inventory of cultural heritage (Q16739336) in Brittany (Q12130) (~100000)
Representslisted in the general inventory of cultural heritage (Q16739336)
Associated itemno label (Q18107552)
Applicable "stated in" valueno label (Q18107552)
Has qualityprefix (Q23585486)
Data typeExternal identifier
Template parameterfr:Modèle:Glad : Q22799809
Domaininstances of listed in the general inventory of cultural heritage (Q16739336) (note: this should be moved to the property statements)
Allowed valuesI[AM]\d{8} (10 characters : starts by IA or IM, followed by 8 digits (sometimes the number are the same as the Mérimée ID (P380) and Palissy ID (P481) but not always))
ExampleChâteau de Costaérès (Q1601882)IA22000298
Église Sainte-Thérèse de Rennes (Q16684501)IA35020139
Sourcehttp://patrimoine.region-bretagne.fr
http://patrimoine.bzh
Formatter URLhttps://patrimoine.bzh/gertrude-diffusion/dossier/$1
http://patrimoine.bzh/gertrude-diffusion/recherche/globale?texte=$1
http://patrimoine.region-bretagne.fr/gertrude-diffusion/recherche/globale?texte=$1
Tracking: usageCategory:Pages using Wikidata property P1529 (Q56117503)
Related to country France (Q142) (See 638 others) (Brittany (Q12130))
See alsoMérimée ID (P380), Palissy ID (P481), Auvergne-Rhône-Alpes Regional Inventory ID (P5517)
Lists
Proposal discussionProposal discussion
Current uses
Total1,341
Main statement1,324 out of 512,529 (0% complete)98.7% of uses
Qualifier20.1% of uses
Reference151.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Format “I[AM]\d{8}: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P1529#Format, hourly updated report, SPARQL
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/P1529#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: Rennes (Q647)
List of violations of this constraint: Database reports/Constraint violations/P1529#Single value, SPARQL
Item “country (P17): France (Q142): Items with this property should also have “country (P17): France (Q142)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P1529#Item P17, hourly updated report, search, SPARQL
Item “instance of (P31): Items with this property should also have “instance of (P31)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P1529#Item P31, hourly updated report, search, SPARQL
Item “coordinate location (P625): Items with this property should also have “coordinate location (P625)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P1529#Item P625, 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/P1529#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/P1529#Scope, SPARQL
Not located in Brittany
All items should have a P131 with a place in Britanny. (Help)
Violations query: SELECT DISTINCT ?item WHERE { ?item wdt:P1529 ?id. FILTER ( ?id NOT in ("IA00007694") ) #valid exceptions MINUS { ?item wdt:P131+ wd:Q12130 } . }
List of this constraint violations: Database reports/Complex constraint violations/P1529#Not located in Brittany
Inconsistency between the identifier and the location
Place with identifier prefix indicating a departement but located in another departement. (Help)
Violations query: SELECT DISTINCT ?item WHERE { ?item wdt:P1529 ?id; wdt:P131/wdt:P374 ?insee . FILTER( substr(?id, 3, 2) != '00' && substr(?id, 3, 2) != substr(?insee, 1, 2) ). FILTER( ?item NOT IN ( wd:Q2968767, wd:Q3215459 ) ) . }
List of this constraint violations: Database reports/Complex constraint violations/P1529#Inconsistency between the identifier and the location


Expression régulière[edit]

Hello,

Je ne comprends pas le choix de l'expression régulière « (MERIMEEIA\d{8}|PALISSYIM\d{8}) ». Le paramètre à passer dans l'URL est juste l'identifiant Mérimée ou Palissy qu'on distingue déjà par la deuxième lettre, pourquoi l'indiquer en toutes lettres ?

Je pense que l'expression (?:MERIMEE|PALISSY)(I[AM]\d{8}) devrait fonctionner tout en restant compatible avec les données présentes.  – The preceding unsigned comment was added by EdouardHue (talk • contribs).

@EdouardHue: alors, en prolégomène, tu as globalement raison mais tu as à peine effleuré la surface du problème (que j'ai lâchement abandonné depuis un an, ne voyant pas de solution claire).
Déjà avec (?:MERIMEE|PALISSY)(I[AM]\d{8}), cela me semble une fausse bonne idée car cela autorise des identifiants commençant par MERIMEEIM alors qu'il est trivial qu'ils n'existent pas.
Ensuite, le vrai problème est qu'actuellement le lien ne fonctionne pas ! Au moment où cette propriété a été crée, les URLs de la base Glad était de la forme :
http://patrimoine.region-bretagne.fr/main.xsp?execute=show_document&id=MERIMEEIA22000298
C'était clair, simple, pratique et même un peu documenté. Depuis l'été dernier (en gros), les URLS ressemblent à ça (pour le même monument) :
http://patrimoine.region-bretagne.fr/gertrude-diffusion/dossier/maison-de-villegiature-dite-chateau-de-costaeres/3aa64500-a6f3-42d2-869b-ca818f23d3f4
C'est long, étrange et évidemment non documenté... (et au passage, la possibilité de faire des requête à disparu...) Je n'ai trouvé aucun moyen de mettre à jour (et ce malgré plusieurs mails envoyés au service responsable). Je n'ai trouvé qu'un moyen détourné en passant par le moteur de recherche, j'ai changé l'URL mais cela ne fonctionne qu'avec l'identifiant sans le préfixe MERIMEE ou PALISSY (donc pas le format actuel...). Si on continue sur cette solution « rustine », il faudrait changer tout les identifiants (mais je ne sais pas faire, c'est hors des capacités de Quickstatements).
Cdlt, VIGNERON (talk) 11:19, 31 October 2016 (UTC)[reply]
C'est tout l'intérêt de ma proposition : elle reste rétrocompatible avec le préfixe en place (que l'on pourrait même rendre optionnel avec (?:MERIMEE|PALISSY)?(I[AM]\d{8})) tout en n'utilisant que l'identifiant dans la construction de l'URL --EdouardHue (talk) 11:30, 31 October 2016 (UTC)[reply]

Dropping the prefix MERIMEE[edit]

I propose to drop the prefix MERIMEE. The current formatter URL only works without this prefix. --Pasleim (talk) 11:03, 13 February 2017 (UTC)[reply]

@Pasleim, Gzen92: I agree, there has been change on the website but I didn't took the time to make the changes here too. Cdlt, VIGNERON (talk) 08:53, 14 February 2017 (UTC)[reply]
Ok, I removed the prefix. --Pasleim (talk) 15:17, 18 February 2017 (UTC)[reply]
Thank you Pasleim. For information, a notification for others people who used this property : @EdouardHue, Nono314, Ayack: (thanks to NavelGazer). Cdlt, VIGNERON (talk) 15:00, 19 February 2017 (UTC)[reply]

Lien mort ?[edit]

@EdouardHue, Nono314, VIGNERON: Bonjour, j'ai une erreur 403 quand j'essaye d'accéder à http://patrimoine.region-bretagne.fr/. Rencontrez-vous le même problème ? Merci. Ayack (talk) 17:21, 21 June 2022 (UTC)[reply]

@Ayack: oui, l'erreur 403 est étrange mais le lien correct est http://patrimoine.bzh (depuis un certain temps). Bien vu, je pensais que le remplacement avait été déjà fait, je viens de mettre à jour le formatter URL (P1630), merci du signalement. Cdlt, VIGNERON (talk) 19:19, 23 June 2022 (UTC)[reply]
@VIGNERON Merci. J'avais fais une recherche Google (un peu trop) rapide, étais tombé sur https://patrimoine.bretagne.bzh/ qui évidemment ne fournit pas le lien de la base Gertrude... Ayack (talk) 07:05, 24 June 2022 (UTC)[reply]
@S. DÉNIEL, FHd, GOUPILLEAU J-Y, Ayack: pour information, le site a été mis à jour, les URLs mènent désormais directement aux notices (au lieu des résultats de recherche comme avant). Normalement, j'ai corrigé l'URL de base et a priori tout le contenu de l'ancien site est toujours là, mais si vous voyez des erreurs, problèmes, etc. n'hésitez pas à le signaler. Cdlt, VIGNERON (talk) 14:28, 16 April 2024 (UTC)[reply]
Bonjour, oui merci beaucoup. J'ai fait la modif similaire dans la wiki fr dès le 24 mars pour le lien depuis Base architecture. Par contre les nouvelles pages Gertrude sont un peu moins bien faites. Cordialement, FHd (talk) 18:42, 16 April 2024 (UTC)[reply]