【发布时间】:2016-08-15 04:50:27
【问题描述】:
我想查找与特定网站对应的 Wikidata 资源。这是我的查询
SELECT DISTINCT ?resource ?instanceOfLabel ?website
WHERE
{
?resource wdt:P856 ?website.
FILTER (REGEX(str(?website), 'http(s)?://(\\w.)?smh.com.au/$')) .
}
}
(链接here) 它不返回任何结果。这不是我所期望的,因为
SELECT DISTINCT ?resource ?instanceOfLabel ?website
WHERE
{
?resource wdt:P856 ?website.
FILTER (REGEX(str(?website), 'http(s)?://www.smh.com.au/$')) .
}
(链接here)
【问题讨论】:
-
你猜
(\\w.)是什么意思?我的意思是您希望与它匹配什么?它如何反映网站场景?