Property talk:P1586

From Wikidata
Jump to navigation Jump to search

Documentation

Catalan object of cultural interest ID
no description
DescriptionCultural property identifier for Cultural Asset of National Interest (Q1019352) in Catalonia. See also: Property:P1600 (talk)
Associated itemGeneralitat of Catalonia (Q8022)
Data typeExternal identifier
Template parameterfield "identificador" in ca:Plantilla:Infotaula patrimoni cultural
Domaingeographical feature (Q618123)
Allowed values[1-9]\d{0,3}\-((MH|CH|JH|LH|ZIE)(\-ZA)?|ZA|ZP)(\-EN)?
ExampleSagrada Família (Q48435) → 53-MH
Besalú (Q12586) → 69-CH-EN
Sourcehttps://ca.wikipedia.org/wiki/Portal:Wiki_Loves_Monuments
Related to country Spain (Q29) (See 149 others) (Catalonia (Q5705))
See alsoInventari del Patrimoni Arquitectònic de Catalunya code (P1600), Asset of cultural interest code (P808), ID of Inventory of the Archaeological and Paleontological Heritage of Catalonia (P5957), IGPCV ID (P2473), IEC commemorative monument of Catalonia ID (P6239), Barcelona Public art ID (P8601)
Lists
Proposal discussionProposal discussion
Current uses
Total2,215
Main statement2,213>99.9% of uses
Qualifier2<0.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
List of violations of this constraint: Database reports/Constraint violations/P1586#Entity types, hourly updated report
Scope is as main value (Q54828448): the property must be used by specified way only (Help)
List of violations of this constraint: Database reports/Constraint violations/P1586#Scope, hourly updated report, SPARQL
Format “[1-9]\d{0,3}\-((MH|CH|JH|LH|ZIE)(\-ZA)?|ZA|ZP)(\-EN)?: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P1586#Format, hourly updated report, SPARQL
Single value: this property generally contains a single value. (Help)
List of violations of this constraint: Database reports/Constraint violations/P1586#Single value, hourly updated report, SPARQL
Qualifiers “start time (P580): this property should be used only with the listed qualifiers. (Help)
List of violations of this constraint: Database reports/Constraint violations/P1586#allowed qualifiers, hourly updated report, SPARQL
Type “geographical feature (Q618123): item must contain property “instance of (P31)” with classes “geographical feature (Q618123)” or their subclasses (defined using subclass of (P279)). (Help)
List of violations of this constraint: Database reports/Constraint violations/P1586#Type Q618123, hourly updated report, SPARQL
Item “country (P17): Spain (Q29): Items with this property should also have “country (P17): Spain (Q29)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P1586#Item P17, hourly updated report, search, SPARQL
Item “coordinate location (P625): Items with this property should also have “coordinate location (P625)”. (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/P1586#Item P625, SPARQL
Item “image (P18): Items with this property should also have “image (P18)”. (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/P1586#Item P18, SPARQL
Label required in languages: ca: Entities using this property should have labels in one of the following languages: ca (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/P1586#Label in 'ca' language, search, SPARQL
BCIN sense IPAC ni IPAPC
element amb codi BCIN sense identificador IPAC ni identificador IPAPC (Help)
Violations query: SELECT ?item WHERE { ?item wdt:P1586 ?bcin . MINUS { ?item wdt:P1600 ?ipac . } MINUS { ?item wdt:P5957 ?ipapc . } }
List of this constraint violations: Database reports/Complex constraint violations/P1586#BCIN sense IPAC ni IPAPC
BCIN sense codi
element amb estatus patrimonial BCIN sense codi BCIN (Help)
Violations query: SELECT ?item WHERE { ?item wdt:P1435 wd:Q1019352 . MINUS { ?item wdt:P1586 [] } }
List of this constraint violations: Database reports/Complex constraint violations/P1586#BCIN sense codi
No localitzat a un municipi de Catalunya
element amb codi BCIN però no localitzat a un municipi de Catalunya (o una subdivisió seva, o una subdivisió d'una subdivisió seva) (Help)
Violations query: select ?item where { ?item wdt:P1586 [] . minus { ?item wdt:P131?/wdt:P131?/wdt:P131?/wdt:P31 wd:Q33146843 } }
List of this constraint violations: Database reports/Complex constraint violations/P1586#No localitzat a un municipi de Catalunya
Estatus patrimonial sense el rol corresponent
element amb estatus patrimonial BCIN però on el rol de l'estatus i el codi BCIN no coincideixen (Help)
Violations query: select ?item where { ?item p:P1435 ?s . ?s ps:P1435 wd:Q1019352 . { ?item wdt:P1586 ?codi . filter regex(str(?codi), "MH") minus { ?s pq:P2868 wd:Q907116 } } union { ?s pq:P2868 wd:Q907116 . minus { ?item wdt:P1586 ?codi . filter regex(str(?codi), "MH") } } union { ?item wdt:P1586 ?codi . filter regex(str(?codi), "CH") minus { ?s pq:P2868 wd:Q3317612 } } union { ?s pq:P2868 wd:Q3317612 . minus { ?item wdt:P1586 ?codi . filter regex(str(?codi), "CH") } } union { ?item wdt:P1586 ?codi . filter regex(str(?codi), "JH") minus { ?s pq:P2868 wd:Q14946335 } } union { ?s pq:P2868 wd:Q14946335 . minus { ?item wdt:P1586 ?codi . filter regex(str(?codi), "JH") } } union { ?item wdt:P1586 ?codi . filter regex(str(?codi), "LH") minus { ?s pq:P2868 wd:Q48892005 } } union { ?s pq:P2868 wd:Q48892005 . minus { ?item wdt:P1586 ?codi . filter regex(str(?codi), "LH") } } union { ?item wdt:P1586 ?codi . filter regex(str(?codi), "ZIE") minus { ?s pq:P2868 wd:Q108596845 } } union { ?s pq:P2868 wd:Q108596845 . minus { ?item wdt:P1586 ?codi . filter regex(str(?codi), "ZIE") } } union { ?item wdt:P1586 ?codi . filter regex(str(?codi), "ZA") minus { ?s pq:P2868 wd:Q48794661 } } union { ?s pq:P2868 wd:Q48794661 . minus { ?item wdt:P1586 ?codi . filter regex(str(?codi), "ZA") } } union { ?item wdt:P1586 ?codi . filter regex(str(?codi), "ZP") minus { ?s pq:P2868 wd:Q108596884 } } union { ?s pq:P2868 wd:Q108596884 . minus { ?item wdt:P1586 ?codi . filter regex(str(?codi), "ZP") } } union { ?s pq:P2868 ?tipus . filter(?tipus not in (wd:Q907116, wd:Q3317612, wd:Q14946335, wd:Q48794661, wd:Q48892005, wd:Q108596845, wd:Q108596884)) } }
List of this constraint violations: Database reports/Complex constraint violations/P1586#Estatus patrimonial sense el rol corresponent

Discussion

[edit]

@KRLS, Pigsonthewing, Micru, Davidpar: -Tobias1984 (talk) 16:58, 31 October 2014 (UTC)[reply]

Unused !

[edit]

@KRLS, Pigsonthewing, Micru, Davidpar:

It's unused! Why did you ask for this to be created? --- Jura 13:02, 17 November 2014 (UTC)[reply]

@Jura1:It will be used soon. I'm working in a bot.--KRLS (talk) 14:42, 17 November 2014 (UTC)[reply]
Now, it's used in La Pedrera (Q207870), Sagrada Família (Q48435), Sagrada Família (Q48435). In few weeks, it will be in several hundreds.--KRLS (talk) 14:48, 17 November 2014 (UTC)[reply]
Good. BTW, you might want to use http://tools.wmflabs.org/wikidata-todo/quick_statements.php --- Jura 19:53, 17 November 2014 (UTC)[reply]

Wrong contstraint

[edit]

One of the constraints is quite wrong, at least in its wording: "items with this property should also have estatus patrimonial (P1435) = Bé Cultural d'Interès Nacional (Q1019352), Bé Cultural d'Interès Local (Q11910250)" is false because most buildings with this property don't have any heritage status (heritage designation (P1435)). However, it's true that all (or nearly all) items with both heritage designation (P1435) and Catalan object of cultural interest ID (P1586) should have heritage designation (P1435) equal to only Cultural Asset of National Interest (Q1019352) or Cultural Asset of Local Interest (Q11910250).--Pere prlpz (talk) 22:21, 10 October 2015 (UTC)[reply]