DataConservancy / dcs-packaging-osf

Open Science Framework packaging model, client, and utilities.
2 stars 3 forks source link

java.util.Map instances are not considered for annotation processing #4

Open emetsger opened 7 years ago

emetsger commented 7 years ago

The osf-core employs an annotation framework that allows the programmer to easily map an instance of a Java model class to RDF. Within the annotation framework exists an annotation processor meant to discover annotations on Java model classes at runtime (e.g. given an instance of a model class, discover all the annotations on that instance and its object graph). The processor includes logic to discover annotations on instances of Arrays and Collections, but does not include logic to discover annotations on Maps (e.g. annotations that may be present on a Map key or value).

The upshot is that contents of a map cannot be emitted as RDF within this annotation framework until this issue is addressed.

See OwlAnnotationProcessor.getAnnotationsForInstance(...)