From 449f380fdcd39dcf3395bdfad6eae3f29e4f080c Mon Sep 17 00:00:00 2001 From: Twan Goosen Date: Thu, 15 Jan 2026 15:51:33 +0200 Subject: [PATCH] Add validation rules for Wikidata entity URIs --- .../src/main/resources/conceptUriRules.json | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ComponentRegistry/src/main/resources/conceptUriRules.json b/ComponentRegistry/src/main/resources/conceptUriRules.json index d611ec9f..b81a80eb 100644 --- a/ComponentRegistry/src/main/resources/conceptUriRules.json +++ b/ComponentRegistry/src/main/resources/conceptUriRules.json @@ -59,6 +59,26 @@ ] } }] + }, { + "types": ["*"], + "rules": [{ + "reason": "Not a valid Wikidata entity URI (check documentation)", + "warning": { + "regex": [ + "^http(s?):\\/\\/.*wikidata.org\\/([^e]|e[^n]|en[^t]|ent[^i]|enti[^t]|entit[^y]|entity[^\\/])" + ] + } + }] + }, { + "types": ["*"], + "rules": [{ + "reason": "Wikidata entity URIs start with http: (check documentation)", + "warning": { + "regex": [ + "^https:\\/\\/.*wikidata.org\\/entity" + ] + } + }] } ] }