File size: 414 Bytes
38b6321
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
##
# banner No literal should contain trailing 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 trailing space(s):") AS ?warning)
}