Datasets:
| prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
| prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
| prefix owl: <http://www.w3.org/2002/07/owl#> | |
| prefix xsd: <http://www.w3.org/2001/XMLSchema#> | |
| ## | |
| # banner No resource should have more than one label per language tag. | |
| SELECT DISTINCT (concat ("WARN: IRI ", str(?resource), " has multiple labels.") AS ?error) | |
| WHERE | |
| { | |
| ?resource rdfs:label ?label. | |
| FILTER NOT EXISTS {?resource owl:deprecated "true"^^xsd:boolean} . | |
| FILTER regex(str(?resource), <HYGIENE_TESTS_FILTER_PARAMETER>) | |
| } | |
| GROUP BY ?resource LANG(?label) | |
| HAVING (COUNT(STR(?label)) > 1) | |