Datasets:
File size: 852 Bytes
38b6321 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
prefix afn: <http://jena.apache.org/ARQ/function#>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
##
# banner Text should not use special characters
SELECT ?error
WHERE {
?subject ?p ?o .
FILTER NOT EXISTS {?o owl:deprecated "true"^^xsd:boolean} .
FILTER (DATATYPE(?o)=xsd:string)
FILTER regex(str(?subject), <HYGIENE_TESTS_FILTER_PARAMETER>)
BIND (afn:localname (?p) AS ?prop)
BIND ("[ÁáÇçÉéÍíÕõÖöäÄèÈμΜσΣʻa-zA-Z\\\\;'?@$%#&:/\"<*>,._+÷=)(\\[\\]{}0-9\n\t -]" AS ?reg)
BIND (REPLACE (xsd:string (?o), ?reg, "") AS ?bads)
FILTER (?bads != "")
BIND (concat ("PRODERROR:", xsd:string(?o), " has a bad character |", ?bads, "|")
AS ?error)
}
|