Hi,
Here I have a resource shape property from DOORS:
<oslc:property>
<oslc:Property>
<oslc:propertyDefinition rdf:resource="https://192.168.99.3:9443/rm/types/AD_cJ08jZbBEeyYHZXkfFQaAg"/>
<oslc:occurs rdf:resource="http://open-services.net/ns/core#Zero-or-one"/>
<oslc:defaultValue rdf:resource="https://192.168.99.3:9443/rm/types/AT_cJ08q5bBEeyYHZXkfFQaAg#_cJ08rpbBEeyYHZXkfFQaAg"/>
<oslc:allowedValues>
<oslc:AllowedValues>
<oslc:allowedValue rdf:resource="https://192.168.99.3:9443/rm/types/AT_cJ08q5bBEeyYHZXkfFQaAg#_cJ08rpbBEeyYHZXkfFQaAg"/>
<oslc:allowedValue rdf:resource="https://192.168.99.3:9443/rm/types/AT_cJ08q5bBEeyYHZXkfFQaAg#_cJ08rZbBEeyYHZXkfFQaAg"/>
<oslc:allowedValue rdf:resource="https://192.168.99.3:9443/rm/types/AT_cJ08q5bBEeyYHZXkfFQaAg#_cJ08rJbBEeyYHZXkfFQaAg"/>
</oslc:AllowedValues>
</oslc:allowedValues>
<oslc:name>AD_cJ08jZbBEeyYHZXkfFQaAg</oslc:name>
<oslc:valueType rdf:resource="http://open-services.net/ns/core#Resource"/>
<dcterms:title rdf:parseType="Literal">Risk Status</dcterms:title>
<dcterms:description rdf:parseType="Literal"></dcterms:description>
<oslc:range rdf:resource="https://192.168.99.3:9443/rm/types/AT_cJ08q5bBEeyYHZXkfFQaAg"/>
</oslc:Property>
</oslc:property>
This really represents a kind of enumeration property which, I think, can only be determined by recognizing the hash character in the AllowedValue URIs.
But this far I don’t come with Lyo. All the Properties of the ResourceShape are missing both the entire allowed values information. Property.getAllowedValuesRef() always returns null, Property.getAllowedValuesCollection() always returns an empty collection, and Property.getAllowedValues() is deprecated (looking at the implementation it must return an empty String array).
Am I doing something wrong?
How can I get access to the AllowedValues information?