Skip to content

Commit

Permalink
Adding RDF namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Oct 4, 2023
1 parent a03e63c commit 962dbff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ void testToMap() {
expectedMap.put("iptc", List.of(new DataSet(
edu.illinois.library.cantaloupe.image.iptc.Tag.CITY,
"Urbana".getBytes()).toMap()));
expectedMap.put("xmp_string", "<rdf:RDF></rdf:RDF>");
expectedMap.put("xmp_string", "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"></rdf:RDF>");
expectedMap.put("native", Map.of("key1", "value1", "key2", "value2"));

// assemble the Metadata
Expand All @@ -422,7 +422,7 @@ void testToMap() {
"Urbana".getBytes()));
instance.setIPTC(iptc);
// XMP
instance.setXMP("<rdf:RDF></rdf:RDF>");
instance.setXMP("<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"></rdf:RDF>");
// native
instance.setNativeMetadata(Map.of("key1", "value1", "key2", "value2"));

Expand Down

0 comments on commit 962dbff

Please sign in to comment.