linked-sdmx
linked-sdmx copied to clipboard
Datatypes in observation object resources
Add appropriate datatypes to the object resources in observations when they are not explicitly given via structure:TextFormat in KeyFamily. This is really about checking literals for known patterns.
See also Issue #2
Commit fca8e69562ea81dfa3097c92eff1ea06a333c95f detects xsd:decimal type and assigns rdf:datatype xsd:decimal . Otherwise left as literal.
Leaving this issue open for other enhancements.
For some of the Attributes e.g.:
<structure:Attribute isTimeFormat="true" assignmentStatus="Mandatory" attachmentLevel="Series" conceptAgency="ECB" conceptVersion="1.0" conceptRef="TIME_FORMAT">
<structure:TextFormat maxLength="3" minLength="3" textType="String"/>
</structure:Attribute>
if a URI is not used, the literal shouldn't be datatyped. In the case above, the datatype is xsd:string and that's not fun to query with.