Property talk:P1208

From Wikidata
Jump to navigation Jump to search

Documentation

[create Create a translatable help page (preferably in English) for this property to be included here]
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/P1208#Single value, 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/P1208#Unique value, SPARQL (every item), SPARQL (by value)
Type “creative work (Q17537576): item must contain property “instance of (P31)” with classes “creative work (Q17537576)” or their subclasses (defined using subclass of (P279)). (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/P1208#Type Q17537576, SPARQL
Format “(979((0\d{8})|(-0-\d{4}-\d{4}-)|(\s0\s\d{4}\s\d{4}\s))\d)|(M(\d{9}|(-\d{4}-\d{4}-\d)|(-\d{3}-\d{5}-\d)|(\s\d{4}\s\d{4}\s\d))): 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/P1208#Format, SPARQL
Format “M?[0-9-]+: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P1208#Format, 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/P1208#Entity types
Scope is as main value (Q54828448): 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/P1208#Scope, SPARQL
Invalid ISMN
ISMN numbers that have wrong checksum (Help)
Violations query: SELECT ?item #?value ?checksum { { ?item wdt:P1208 ?value } UNION { ?statement pq:P1208 ?value . ?item ?p ?statement . ?prop wikibase:claim ?p } UNION { ?ref pr:P1208 ?value . ?statement prov:wasDerivedFrom ?ref . ?item ?p ?statement . ?prop wikibase:claim ?p } . BIND( REPLACE(STR(?value), "-", "") AS ?nohyphen ) . FILTER( STRLEN(?nohyphen) = 13 ) . BIND( xsd:integer(SUBSTR(?nohyphen, 1, 1)) + xsd:integer(SUBSTR(?nohyphen, 3, 1)) + xsd:integer(SUBSTR(?nohyphen, 5, 1)) + xsd:integer(SUBSTR(?nohyphen, 7, 1)) + xsd:integer(SUBSTR(?nohyphen, 9, 1)) + xsd:integer(SUBSTR(?nohyphen, 11, 1)) + xsd:integer(SUBSTR(?nohyphen, 13, 1)) + ( xsd:integer(SUBSTR(?nohyphen, 2, 1)) + xsd:integer(SUBSTR(?nohyphen, 4, 1)) + xsd:integer(SUBSTR(?nohyphen, 6, 1)) + xsd:integer(SUBSTR(?nohyphen, 8, 1)) + xsd:integer(SUBSTR(?nohyphen, 10, 1)) + xsd:integer(SUBSTR(?nohyphen, 12, 1)) ) * 3 AS ?checksum ) . FILTER( FLOOR(?checksum / 10) != (?checksum / 10) ) } ORDER BY ?nohyphen
List of this constraint violations: Database reports/Complex constraint violations/P1208#Invalid ISMN

Format

[edit]

I've switched this to use the "979-0-" prefix as discussed in the property proposal; that's what en.Wikipedia uses in its citation templates, and is what the cited en.Wikipedia article uses as an example. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:44, 18 May 2017 (UTC)[reply]

Format constraint

[edit]

The format constraint is too strict: not all ISMNs have groups of three then five digits in the middle. —Galaktos (talk) 19:27, 24 September 2018 (UTC)[reply]