How to serialize the RDF type for resource annotated properties ? [message #1064947] |
Fri, 21 June 2013 19:25 |
Givanildo Alves Messages: 4 Registered: June 2013 |
Junior Member |
|
|
I have a resource class with the following annotated property
@OslcPropertyDefinition("http:/purl.org/dc/terms/aBoolean")
@OslcName("aBoolean")
@OslcOccurs(Occurs.ExactlyOne)
@OslcValueType(ValueType.Boolean)
public Boolean getABoolean() {
return true;
}
The serialized rdf xml for an instance of the resource:
<rdf:RDF xmlns:dcterms="http:/purl.org/dc/terms/" xmlns:rdf="http:/www.w3.org/1999/02/22-rdf-syntax-ns#">
<dcterms:Resource>
<dcterms:aBoolean>true</dcterms:aBoolean>
</dcterms:Resource>
</rdf:RDF>
Is it possible to enforce OSLC4J to make the rdf type explicit for the property (in other words, having the rdf:datatype="http:/www.w3.org/2001/XMLSchema#boolean") in the XML ?
Thanks
[Updated on: Fri, 21 June 2013 19:26] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04581 seconds