Skip to content

Commit 9835dff

Browse files
committed
Fixed URIResource check
1 parent bf6f056 commit 9835dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/atomgraph/linkeddatahub/server/io/ValidatingModelProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public static Function<Model, Model> hashMboxes(MessageDigest messageDigest)
301301
*/
302302
public static Statement mboxHashStmt(Statement stmt, MessageDigest messageDigest)
303303
{
304-
if (!stmt.getObject().isResource()) return stmt; // don't hash if the mbox value is not a URI
304+
if (!stmt.getObject().isURIResource()) return stmt; // don't hash if the mbox value is not a URI
305305

306306
try (InputStream is = new ByteArrayInputStream(stmt.getResource().getURI().getBytes(StandardCharsets.UTF_8));
307307
DigestInputStream dis = new DigestInputStream(is, messageDigest))

0 commit comments

Comments
 (0)