Property talk:P1256

Latest comment: 5 years ago by Marsupium in topic For reference: regex extrema

Documentation

Iconclass notation
Iconclass code that corresponds with an artistic theme or concept. For artworks, use P1257 (depicts Iconclass notation)
DescriptionID of a topic in Iconclass (Q1502787), a useful classification system for visual arts
Associated itemNetherlands Institute for Art History (Q758610)
Applicable "stated in" valueIconclass (Q1502787)
Data typeExternal identifier
Domainanything 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

  • 4 Society, Civilization, Culture
  • 47 crafts and industries
  • 47I agriculture, cattle-breeding, horticulture, flowerculture, etc.
  • 47I2 cattle-breeding, livestock industry
  • 47I22 occupations ~ cattle
  • 47I223 milking
  • 47I2231 transportation of milk
  • 47I22311 milkmaid
  • 47I22311(+6) milkmaid (+ before and after production)
  • 47I22311(+64) milkmaid (+ storing, conserving, preserving of products ~ crafts, industries, agriculture)
  • 5(+4) Abstract Ideas and Concepts (+ emblematical representation of concept)
According to statements in the property:
milkmaid (Q1934482)47I22311 (RDF)
Saints Cosmas and Damian (Q76486)& DAMIAN) 11H(COSMAS & DAMIAN) (& DAMIAN) RDF)
Japanese art (Q603399)48(+76112) (RDF)
When possible, data should only be stored as statements
Formatter URLhttp://iconclass.org/$1
https://wikidata-externalid-url.toolforge.org/?url_prefix=http://iconclass.org/&id=$1
See alsodepicts Iconclass notation (P1257)
Lists
Proposal discussionProposal discussion
Current uses
Total4,222
Main statement4,18299.1% of uses
Qualifier3<0.1% of uses
Reference370.9% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Format “^\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)
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/P1256#Format, SPARQL
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: flight attendant (Q101539), match (Q37507), corset (Q180225), opera singer (Q2865819), The Decameron (Q16438), The Works of Ossian (Q503756), film actor (Q10800557)
List of violations of this constraint: Database reports/Constraint violations/P1256#Single value, 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/P1256#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/P1256#Entity types
Conflicts with “instance of (P31): painting (Q3305213): this property must not be used with the listed properties and values. (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/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}\))?

--Marsupium (talk) 02:36, 22 January 2019 (UTC), 10:28, 19 September 2021 (UTC)Reply

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)Reply

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)Reply
  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)Reply
Return to "P1256" page.