query-c241674624190448290669c3b873e198
Generate URL match pattern (P8966) from formatter URL (P1630) instead.the WikiProject's talk page. Please post on couldn't be pinged has more than 50 participants and WikiProject Properties : Lockal, Jura1, BrokenSegue, Shisma, ArthurPSmith, Uzume@Although I've participated in many prop proposals, I wasn't familiar with this prop. uses this to a great degree." (Q99894727)Wikidata for Web : was so kind to explain its purpose to me: "URL match pattern is more for helping of automated scraping of IDs from URLs. It doesn't automatically convert a URL string into the corresponding ID if you input that URL directly into the property's field on Wikidata. However, there is potential for tools to automatically extract the proper IDs to append to the items. Currently right now, Btcprox@, and the latter should be usable to generate (a draft version of) the former. Here is a sample of 50 rows: (P1630)formatter URL and (P8966)URL match pattern I thought there's got to be a strong link between
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select ?x ?xLabel ?fmt ?re ?pat {
?x wikibase:propertyType wikibase:ExternalId.
?x wdt:P1630 ?fmt; p:P2302/pq:P1793 ?re
filter not exists {?x wdt:P8966 []}
bind(replace(?fmt,"([^a-zA-Z0-9$])","\\\\$1") as ?fmt1) # escape regex-special chars
bind(replace(?re,"\\\","\\\\\\\") as ?re1) # double up backslashes
bind(replace(?fmt1,"\\$1",concat("(",?re1,")")) as ?pat)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} limit 50