fibo2023Q3 / src /etc /testing /hygiene_parameterized /testHygiene_literals_leading_blank.sparql
wikipunk's picture
add FIBO Q3 2023 release to src
38b6321
##
# banner No literal should contain leading space(s).
SELECT DISTINCT ?warning ?value
WHERE
{
?resource ?property ?value.
FILTER (ISLITERAL(?value))
FILTER (REGEX(?value, '^[\\u0020\\t]+.+'))
FILTER regex(str(?resource), <HYGIENE_TESTS_FILTER_PARAMETER>)
BIND (concat ("WARN: ", "Resource <", STR(?resource), "> has property <", STR(?property), "> whose value contains leading space(s):") AS ?warning)
}