Property talk:P1256
Documentation
Iconclass code that corresponds with an artistic theme or concept. For artworks, use P1257 (depicts Iconclass notation)
Description | ID of a topic in Iconclass (Q1502787), a useful classification system for visual arts | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Associated item | Netherlands Institute for Art History (Q758610) | ||||||||||||
Applicable "stated in" value | Iconclass (Q1502787) | ||||||||||||
Data type | External identifier | ||||||||||||
Domain | anything with a Iconclass equivalent (note: this should be moved to the property statements) | ||||||||||||
Allowed values | \d{1,2}(([A-IK-Z])\2?\d{0,5})?(\([\p{Lu}0-9 -]+[\p{L}0-9&., ':-]*\))?\d{0,4}(\(\+\d{1,5}\))? | ||||||||||||
Example | According to this template:
milkmaid (Q1934482): Iconclass ID: 47I22311
According to statements in the property:
When possible, data should only be stored as statementsmilkmaid (Q1934482) → 47I22311 (RDF) Saints Cosmas and Damian (Q76486) → & DAMIAN) 11H(COSMAS & DAMIAN) (& DAMIAN) RDF) Japanese art (Q603399) → 48(+76112) (RDF) | ||||||||||||
Formatter URL | http://iconclass.org/$1 https://wikidata-externalid-url.toolforge.org/?url_prefix=http://iconclass.org/&id=$1 | ||||||||||||
See also | depicts Iconclass notation (P1257) | ||||||||||||
Lists |
| ||||||||||||
Proposal discussion | Proposal discussion | ||||||||||||
Current uses |
| ||||||||||||
Search for values |
^\d{1,2}(([A-IK-Z])\2?\d{0,5})?(\([\p{Lu}0-9 -]+[\p{L}0-9&., ':-]*\))?\d{0,4}(\(\+\d{1,5}\))?$
”: value must be formatted using this pattern (PCRE syntax). (Help)List of violations of this constraint: Database reports/Constraint violations/P1256#Format, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P1256#Unique value, SPARQL (every item), SPARQL (by value)
List of violations of this constraint: Database reports/Constraint violations/P1256#Single value, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P1256#Entity types
List of violations of this constraint: Database reports/Constraint violations/P1256#Conflicts with P31, search, SPARQL
Pattern ^(\d{1,2}(([A-IK-Z])\2?\d{0,5})?\([\p{Lu}0-9 -]+.*?)\+([^\)]+?\)\d{0,4}(\(\+\d{1,3}\))?)$ will be automatically replaced to \1 \4. Testing: TODO list |
Pattern ^(\d{1,2}(([A-IK-Z])\2?\d{0,5})?\([\p{Lu}0-9 -]+.*?)\+([^\)]+?)\+([^\)]+?\)\d{0,4}(\(\+\d{1,3}\))?)$ will be automatically replaced to \1 \4 \5. Testing: TODO list |
Pattern ^(\d{1,2}(([A-IK-Z])\2?\d{0,5})?\([\p{Lu}0-9 -]+.*?)\+([^\)]+?)\+([^\)]+?)\+([^\)]+?\)\d{0,4}(\(\+\d{1,3}\))?)$ will be automatically replaced to \1 \4 \5 \6. Testing: TODO list |
Pattern ^(\d{1,2}(([A-IK-Z])\2?\d{0,5})?\([\p{Lu}0-9 -]+.*?)\+([^\)]+?)\+([^\)]+?)\+([^\)]+?)\+([^\)]+?\)\d{0,4}(\(\+\d{1,3}\))?)$ will be automatically replaced to \1 \4 \5 \6 \7. Testing: TODO list |
For reference: regex extrema edit
Regex as of 10:28, 19 September 2021 (UTC): \d{1,2}(([A-IK-Z])\2?\d{0,5})?(\([\p{Lu}0-9 -]+[\p{L}0-9&., ':-]*\))?\d{0,4}(\(\+\d{1,5}\))?
- “bracketed text”:
- starting with digit: 49D11(2)
- more digits, colon: 71X1(Ps. 137:3A1)
- lowercase, Unicode characters: 83(SCHILLER, Mädchen aus der Fremde) ->
\p{L}
[1]
- (up to) 4 digits after bracket: 98B(ALEXANDER THE GREAT)5133
- (up to) 5 digits in bracket after "+": 48(+76112)
--Marsupium (talk) 02:36, 22 January 2019 (UTC), 10:28, 19 September 2021 (UTC)
Fix links with wikidata-externalid-url? edit
@ArthurPSmith: Obviously the standard link generation encodes a space as a plus character. This breaks links for this property. Could wikidata-externalid-url/[2] perhaps take care of it?
Example: Instead of http://iconclass.org/11H(COSMAS+&+DAMIAN) it should generate http://iconclass.org/rkd/11H(COSMAS%20&%20DAMIAN) from "11H(COSMAS & DAMIAN)" (from Q76486#P1256).
(MisterSynergy reports a similar problem for databaseOlympics.com athlete ID (archived) (P3520), cf. phab:T160281.)
Thanks in advance for any help, --Marsupium (talk) 20:15, 21 January 2019 (UTC)
- I think it would. I'll take a look. It shouldn't even require any coding (other than changing the formatter URL here) if it will work at all, I think. ArthurPSmith (talk) 21:11, 21 January 2019 (UTC)
- Done Thanks for your reply! Indeed it works now, I've tried it before, but obviously the tool was down and it wasn't my wrong approach. Thanks for the hint that the formatter URL alone can do it! Happy editing, --Marsupium (talk) 02:31, 22 January 2019 (UTC)