@Test void testGetBinary() { assertNotNull(DBUtils.getBinaryMetadata(LDP.NonRDFSource, "file: assertNull(DBUtils.getBinaryMetadata(LDP.RDFSource, "file: assertNull(DBUtils.getBinaryMetadata(LDP.NonRDFSource, null, "text/plain")); }
static BinaryMetadata getBinaryMetadata(final IRI ixnModel, final String location, final String format) { if (LDP.NonRDFSource.equals(ixnModel) && location != null) { return BinaryMetadata.builder(rdf.createIRI(location)).mimeType(format).build(); } return null; }
DBUtils { static BinaryMetadata getBinaryMetadata(final IRI ixnModel, final String location, final String format) { if (LDP.NonRDFSource.equals(ixnModel) && location != null) { return BinaryMetadata.builder(rdf.createIRI(location)).mimeType(format).build(); } return null; } }
DBUtils { static BinaryMetadata getBinaryMetadata(final IRI ixnModel, final String location, final String format) { if (LDP.NonRDFSource.equals(ixnModel) && location != null) { return BinaryMetadata.builder(rdf.createIRI(location)).mimeType(format).build(); } return null; } private  DBUtils(); }
DBUtils { static BinaryMetadata getBinaryMetadata(final IRI ixnModel, final String location, final String format) { if (LDP.NonRDFSource.equals(ixnModel) && location != null) { return BinaryMetadata.builder(rdf.createIRI(location)).mimeType(format).build(); } return null; } private  DBUtils();  }
DBUtils { static BinaryMetadata getBinaryMetadata(final IRI ixnModel, final String location, final String format) { if (LDP.NonRDFSource.equals(ixnModel) && location != null) { return BinaryMetadata.builder(rdf.createIRI(location)).mimeType(format).build(); } return null; } private  DBUtils();   }