Property talk:P11707

From Wikidata
Jump to navigation Jump to search

Documentation

location URL match pattern
regex pattern of URL that individual shops/amenity within a chain can be matched against
Data typeString
Domainchain (Q65553774)
Allowed values.+\(.+\).*\$?
Example
According to this template:
According to statements in the property:
Greggs (Q3403981)^https:\/\/www\.greggs\.co\.uk\/shop-finder\?shop-code=(\d+)$
Sainsbury's (Q152096)[-\w+)$ ^https:\/\/stores\.sainsburys\.co\.uk\/(\d+)\/([-\w]+)$]
Bupa (Q931628)[-\w+)$ ^https:\/\/www\.bupa\.co\.uk\/dental\/dental-care\/practices\/([-\w]+)$]
When possible, data should only be stored as statements
Formatter URLhttps://regex101.com/?regex=$1
See alsoURL match pattern (P8966)
Lists
Proposal discussionProposal discussion
Current uses
Total25
Main statement2288% of uses
Qualifier312% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Format “.+\(.+\).*\$?: 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/P11707#Format, SPARQL
Type “chain (Q65553774): item must contain property “instance of (P31)” with classes “chain (Q65553774)” 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/P11707#Type Q65553774, 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/P11707#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/P11707#Scope, SPARQL

format constraint[edit]

The format constraint of .+\(.+\)\$? is too strict, the group shouldn't be required to be at the end. CjMalone (talk) 11:15, 17 April 2024 (UTC)[reply]