add dcterms:title and dcterms:description to the ResourceShape class
jadelkhoury opened this issue · comments
OSLC Resource Shapes are described using dcterms:title and dcterms:description. For example, see ChangeNoticeShape under https://docs.oasis-open-projects.org/oslc-op/cm/v3.0/os/change-mgt-shapes.ttl
But these 2 properties are not exposed in the java model for shapes.
https://github.com/eclipse/lyo/blob/master/core/oslc4j-core/src/main/java/org/eclipse/lyo/oslc4j/core/model/ResourceShape.java
Add these 2 properties to the model.
@jadelkhoury @jamsden !
This seems obvious to me, and would need to fix it soon. Unless you see that I am missing something?
These properties aren't inherited somehow?
Nop! Check the code above. The Shape class inherits from AbstractResource, and that doesn't have such properties either.
Could it be that dcterms:title and dcterms:description were not actually part of the Shape definition before? Could it be a recent addition?
Correction: The Shape class already contains the Title property. It is however missing the name & Description properties.
Resource Shape classes are normally annotated with OslcName, but this annotation is not captured in the instance of REsourceShape. We need an attribute to be able to capture the annotation information