Skip to content

Commit

Permalink
Fixed error message when using a namespace IRI
Browse files Browse the repository at this point in the history
  • Loading branch information
becker-al committed Jun 8, 2024
1 parent a619989 commit 8391efe
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ private static LinkedHashMap<String, Map<String, String>> replaceURIsWithPrefixe
}
}
if(property.contains("://")){
throw new IllegalArgumentException("LIMES does not support using URIs in the properties, optionalProperties, restrictions, or functions in the configuration file. " +
"Please define a prefix and use the prefix for the following URI: " + originalProp);
throw new IllegalArgumentException("LIMES does not support using namespace IRIs in the properties, optionalProperties, restrictions, or functions in the configuration file. " +
"Please define a prefix and use the prefix for the namespace of the following IRI: " + originalProp);
}

//Replace value map
Expand All @@ -113,8 +113,8 @@ private static LinkedHashMap<String, Map<String, String>> replaceURIsWithPrefixe
}
intermediateReplacement.put(subKey, stringEntry.getValue());
if(subKey.contains("://")){
throw new IllegalArgumentException("LIMES does not support using URIs in the properties, optionalProperties, restrictions, or functions in the configuration file. " +
"Please define a prefix and use the prefix for the following URI: " + origSubKey);
throw new IllegalArgumentException("LIMES does not support using namespace IRIs in the properties, optionalProperties, restrictions, or functions in the configuration file. " +
"Please define a prefix and use the prefix for the namespace of the following IRI: " + origSubKey);
}

}
Expand Down

0 comments on commit 8391efe

Please sign in to comment.