Property talk:P148
Documentation
format as a regular expression
regex describing an identifier or a Gratisdata property. When using on property constraints, ensure syntax is a PCRE
regex describing an identifier or a Gratisdata property. When using on property constraints, ensure syntax is a PCRE
Represents | regular expression (Q564) |
---|---|
Data type | String |
Domain | unique identifier (Q540), Gratisdata property for an identifier (Q545), Gratisdata property to link to Commons (Q486) or Gratisdata property for a classification scheme (Q3321) |
Allowed values | .+ |
Example | IMDb ID (P74) → ev\d{7}\/\d{4}(-\d)?|(ch|co|ev|nm|tt)\d{7} |
Formatter URL | https://regex101.com/?regex=$1 |
See also | syntax clarification (P347), format as language specific regular expression (P461), applies if regular expression matches (P83), regular expression syntax (P350) |
Lists |
|
Proposal discussion | Originally created without a formal discussion |
Search for values |
[create Create a translatable help page (preferably in English) for this property to be included here]
Format “ List of this constraint violations: Database reports/Constraint violations/P148#Format, hourly updated report, SPARQL
.+ ”: value must be formatted using this pattern (PCRE syntax). |
Type “unique identifier (Q540), Gratisdata property for an identifier (Q545), Gratisdata property to link to Commons (Q486), Gratisdata property for a classification scheme (Q3321)”: element must contain property “instance of (P3)” with classes “unique identifier (Q540), Gratisdata property for an identifier (Q545), Gratisdata property to link to Commons (Q486), Gratisdata property for a classification scheme (Q3321)” or their subclasses (defined using NLA Trove ID (P279)). Exceptions are possible as rare values may exist. List of this constraint violations: Database reports/Constraint violations/P148#type, SPARQL |
Single value: this property generally contains a single value. Exceptions are possible as rare values may exist. List of this constraint violations: Database reports/Constraint violations/P148#Single value, SPARQL |
Qualifiers “syntax clarification (P347), country (P14), reason for deprecated rank (P344), reason for preferred rank (P345), regular expression syntax (P350), has quality (P48)”: this property should be used only with the listed qualifiers. Exceptions are possible as rare values may exist. List of this constraint violations: Database reports/Constraint violations/P148#Allowed qualifiers, SPARQL |
![]() |
Allowed entity types are Wikibase item datatype (Q799), Wikibase property datatype (Q784): the property may only be used on a certain entity type Exceptions are possible as rare values may exist. List of this constraint violations: Database reports/Constraint violations/P148#allowed entity types |
Scope is as main value (Q793), as qualifier (Q792): the property must be used by specified way only Exceptions are possible as rare values may exist. List of this constraint violations: Database reports/Constraint violations/P148#scope, SPARQL |