Property talk:P2916

Latest comment: 7 years ago by Jura1 in topic Scope

Documentation

syntax clarification
qualifier for P1793 (regular expression): to provide a textual description of the regex syntax of a value. Should be displayable after the text "The value for the property should match" and be followed by the regex.
Representssyntax (Q37437)
Data typeMonolingual text
DomainProperties with cryptic property values, in particular for property "format as regular expression", P1793. (note: this should be moved to the property statements)
Allowed values
According to this template: Any descriptive text
According to statements in the property:
.{2,2000}
When possible, data should only be stored as statements
Usage notesbrukast for å uttrykke ein tekstleg verdi for eigenskapen og skal følgjast av regulæuttrykket (regex)
Example
According to this template:

Yandex Music artist ID (P1553) : format as a regular expression (P1793) → "[1-9]\d{0,6}"

qualified with syntax clarification → "numeric string, 1 to 7 digits (English)"
According to statements in the property:
Yandex Music artist ID (P1553)numerisk streng, 1 til 7 tall
Norwegian historical register of persons ID (P4574)p etterfølgd av ein bokstav
When possible, data should only be stored as statements
See alsoformat as a regular expression (P1793), Wikidata usage instructions (P2559), constraint clarification (P6607), media legend (P2096)
Lists
Proposal discussionProposal discussion
Current uses
Total1,835
Main statement60.3% of uses
Qualifier1,79197.6% of uses
Reference382.1% of uses
[create Create a translatable help page (preferably in English) for this property to be included here]
Scope is as qualifier (Q54828449): the property must be used by specified way only (Help)
List of violations of this constraint: Database reports/Constraint violations/P2916#Scope, hourly updated report, SPARQL
Item “format as a regular expression (P1793): Items with this property should also have “format as a regular expression (P1793)”. (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/P2916#Item P1793, SPARQL
Conflicts with “instance of (P31): written work (Q47461344): 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/P2916#Conflicts with P31, SPARQL
Format “.{2,2000}: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P2916#Format, hourly updated report, SPARQL
Allowed entity types are Wikibase item (Q29934200), Wikibase property (Q29934218): 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/P2916#Entity types

Scope edit

Please see Wikidata:Property proposal/Property constraint comment.
--- Jura 12:37, 10 August 2016 (UTC)Reply

I updated the description per suggestion there.
--- Jura 12:35, 20 August 2016 (UTC)Reply
Return to "P2916" page.