@@ -219,13 +219,13 @@ public List<String> getClassUriRestrictions(String classUri, String propertyUri)
219219 if (classUri .endsWith ("GenericSpdxElement" )) {
220220 ontClass = model .getOntClass (SpdxConstants .SPDX_NAMESPACE + SpdxConstants .CLASS_SPDX_ELEMENT );
221221 } else {
222- logger .error (classUri + " is not an SPDX class" );
222+ logger .warn (classUri + " is not an SPDX class" );
223223 throw new SpdxRdfException (classUri + " is not an SPDX class" );
224224 }
225225 }
226226 OntProperty property = model .getOntProperty (checkGetOwlUriFromRenamed (propertyUri ));
227227 if (Objects .isNull (property )) {
228- logger .error (propertyUri + " is not an SPDX property" );
228+ logger .warn (propertyUri + " is not an SPDX property" );
229229 throw new MissingDataTypeAndClassRestriction (propertyUri + " is not an SPDX property" );
230230 }
231231 List <Statement > propertyRestrictions = new ArrayList <Statement >();
@@ -253,13 +253,13 @@ public List<String> getDataUriRestrictions(String classUri, String propertyUri)
253253 if (classUri .endsWith ("GenericSpdxElement" )) {
254254 ontClass = model .getOntClass (SpdxConstants .SPDX_NAMESPACE + SpdxConstants .CLASS_SPDX_ELEMENT );
255255 } else {
256- logger .error (classUri + " is not an SPDX class" );
256+ logger .warn (classUri + " is not an SPDX class" );
257257 throw new SpdxRdfException (classUri + " is not an SPDX class" );
258258 }
259259 }
260260 OntProperty property = model .getOntProperty (checkGetOwlUriFromRenamed (propertyUri ));
261261 if (Objects .isNull (property )) {
262- logger .error (propertyUri + " is not an SPDX property" );
262+ logger .warn (propertyUri + " is not an SPDX property" );
263263 throw new SpdxRdfException (propertyUri + " is not an SPDX property" );
264264 }
265265 List <Statement > propertyRestrictions = new ArrayList <Statement >();
@@ -287,13 +287,13 @@ public boolean isList(String classUri, String propertyUri) throws SpdxRdfExcepti
287287 if (classUri .endsWith ("GenericSpdxElement" )) {
288288 ontClass = model .getOntClass (SpdxConstants .SPDX_NAMESPACE + SpdxConstants .CLASS_SPDX_ELEMENT );
289289 } else {
290- logger .error (classUri + " is not an SPDX class" );
290+ logger .warn (classUri + " is not an SPDX class" );
291291 throw new SpdxRdfException (classUri + " is not an SPDX class" );
292292 }
293293 }
294294 OntProperty property = model .getOntProperty (checkGetOwlUriFromRenamed (propertyUri ));
295295 if (Objects .isNull (property )) {
296- logger .error (propertyUri + " is not an SPDX property" );
296+ logger .warn (propertyUri + " is not an SPDX property" );
297297 throw new SpdxRdfException (propertyUri + " is not an SPDX property" );
298298 }
299299 List <Statement > propertyRestrictions = new ArrayList <Statement >();
0 commit comments