diff --git a/examples/Training/java/src/training/ReadData.java b/examples/Training/java/src/training/ReadData.java index 3d76df1e6b4..683b8884319 100644 --- a/examples/Training/java/src/training/ReadData.java +++ b/examples/Training/java/src/training/ReadData.java @@ -293,6 +293,7 @@ private void loadMapAnnotations(long imageId) throws Exception { MapAnnotationData mapAnnotation = (MapAnnotationData) annotation; List list = (List) mapAnnotation .getContent(); + System.out.println("\nMapAnnotation ID: "+mapAnnotation.getId()); for (NamedValue namedValue : list) System.out.println(namedValue.name + ": " + namedValue.value); } diff --git a/examples/Training/training_setup.sh b/examples/Training/training_setup.sh index 95fb1b64aae..08298fd4d02 100644 --- a/examples/Training/training_setup.sh +++ b/examples/Training/training_setup.sh @@ -61,6 +61,11 @@ touch "test&sizeT=10&sizeZ=5&sizeC=3.fake" bin/omero import "test&sizeT=10&sizeZ=5&sizeC=3.fake" > image_import.log 2>&1 imageid=$(sed -n -e 's/^Image://p' image_import.log) +# Add a Map annotation +MAP=$(bin/omero obj new MapAnnotation) +bin/omero obj map-set $MAP mapValue testkey testvalue +bin/omero obj new ImageAnnotationLink parent=$imageid child=$MAP + # Create screen/plate screen=$(bin/omero obj new Screen name='Screen') plate=$(bin/omero obj new Plate name='Plate')