Property talk:P4645

Latest comment: 2 years ago by VIGNERON in topic Contrainte et import

Documentation

RCR number
national identifier of a library in France assigned by Abes
Descriptionnational identifier of a library in France assigned by Abes
Data typeExternal identifier
Domain
According to this template: library (Q7075)
According to statements in the property:
library (Q7075), archive (Q166118) or documentation centre (Q2945282)
When possible, data should only be stored as statements
Allowed values
According to this template: \d{9} : INSEE municipality code (P374) (5 digits) + type of library (2 digits) + sequential number (2 digits)
According to statements in the property:
\d{9}
When possible, data should only be stored as statements
ExampleBibliothèque municipale de Nancy (Q630448)543956101
École Nationale des Chartes' library (Q42346825)751022302
Sourcehttp://ccfr.bnf.fr/portailccfr/jsp/public/index.jsp?action=public_formsearch_institution
https://data.culturecommunication.gouv.fr/explore/dataset/ccfr-repertoire-des-bibliotheques/
Formatter URLhttp://www.sudoc.abes.fr//DB=2.2/SET=1/TTL=3/CMD?ACT=SRCHA&IKT=8888&SRT=RLV&TRM=$1
Related to country  France (Q142) (See 638 others)
See alsoCCFr library ID (P8719)
Lists
Proposal discussionProposal discussion
Current uses
Total173
Main statement17098.3% of uses
Qualifier21.2% of uses
Reference10.6% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Format “\d{9}: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P4645#Format, hourly updated report, 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/P4645#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/P4645#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/P4645#Item P17, hourly updated report, search, SPARQL
Item “ISIL (P791): Items with this property should also have “ISIL (P791)”. (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/P4645#Item P791, search, 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/P4645#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/P4645#Scope, SPARQL
 
Id comparison with ISIL
RCR id for France should be the same as ISIL id (without the FR- prefix) ISIL (P791) (Help)
Violations query: SELECT * WHERE { ?item wdt:P4645 ?RCR; wdt:P791 ?ISIL. BIND(SUBSTR(?ISIL, 4 , 9 ) AS ?substr) FILTER(?RCR != ?substr) }
List of this constraint violations: Database reports/Complex constraint violations/P4645#Id comparison with ISIL
 
Id comparison with INSEE code
RCR id first 5 character for France should be the same as INSEE code INSEE municipality code (P374) (Help)
Violations query: SELECT * WHERE { ?item wdt:P4645 ?RCR ; wdt:P131/wdt:P374 ?codeINSEE . BIND(REPLACE(REPLACE(?codeINSEE,"A","0"),"B","0") AS ?substrINSEE) #for Corsica A and B is replace by 0 BIND(SUBSTR(?RCR, 0 , 6 ) AS ?substr) FILTER ( ?substr != ?substrINSEE ) }
List of this constraint violations: Database reports/Complex constraint violations/P4645#Id comparison with INSEE code

Contrainte et import edit

@Tubezlob, Symac:

Bonjour,

D'un part, je viens de modifier une et d'ajouter une contraintes complexes sur cette page (cf. supra), l'un pour comparer le RCR et l'ISIL (d'ailleurs @Manu1400: je pense que tu as fait une erreur sur l'ISIL de École Nationale des Chartes' library (Q42346825)) et et l'autre pour le code INSEE communal (d'ailleurs, le reste reste-t-il vraiment le même quand une bibliothèque déménage ?). Je ferais bien une contrainte sur les 6 et 7e chiffres (par exemple si "21" alors academic library (Q856234)) mais je ne suis pas sûr de moi, je veux bien des conseils si vous en avez.

D'autre part, je vois que l'identifiant est encore assez peu présent, un import de masse de l'id serait-il envisageable et pertinent ? sachant qu'il y a une liste complète ici https://www.idref.fr/services/listrcrisil (peut d'indice, juste le nom mais cela devrait déjà pouvoir permettre d'en raccrocher une partie).

Cdlt, VIGNERON en résidence (talk) 10:01, 7 January 2022 (UTC)Reply

@VIGNERON: pour l'import en masse je me demande dans quelle mesure ça matcherait correctement, on a souvent un niveau de granularité différent. Si je prends Q2420410 ça correspond plutôt au service commun de documentation, auquel sont rattachés plusieurs bibliothèques, 596062102 & 596062101 par exemple. Et j'ai peur qu'on soit dans la même situation pour pas mal de BU. En tout cas pour Bordeaux Montaigne quand j'avais voulu importer les RCR il y a quelques années j'avais créé les entités de chaque BU car ce niveau n'existait pas. C'est pas forcément problématique, mais ça veut dire qu'il y a un boulot conséquent de création à faire si l'on veut envisager d'importer les RCR. Est-ce que le jeu en vaut la chandelle je ne sais pas. Symac (talk) 08:14, 21 January 2022 (UTC)Reply
@Symac: oui effectivement je ne m'en étais pas rendu compte que tant de bibliothèques n'ont pas (encore) d'éléments. Ceci dit, on pourrait déjà se concentrer dans un premier temps sur les éléments existants sans identifiants :
SELECT * WHERE {
  ?q wdt:P31/wdt:P279* wd:Q7075 ; wdt:P17 wd:Q142 .
  MINUS { ?q wdt:P4645 [] }
}
Try it!
383 actuellement, cela permettrait déjà de quadrupler l'utilisation de cette propriété ;)
Pour les autres, on pourra voir dans un second temps.
Cdlt, VIGNERON (talk) 19:35, 21 January 2022 (UTC)Reply
Return to "P4645" page.