URLDecodingRule rule = this.get(root);
if (rule != null) {
String entryIdentifier = url.get(0).decodedText();
int pos = entryIdentifier.indexOf(':');
if (pos != -1) {
if (entryIdentifier.substring(0, pos).equals(root.label())) {
entryIdentifier = entryIdentifier.substring(pos + 1);
} else {
throw new WikiDataException(WikiDataException.UnknownResource, url.toString());
}
}