peterjohnlawrence / com.inova8.odata2sparql.v4

Part of the overall odata2sparql solution, this odata2sparql.v4 module containing the olingo4 dependencies. In other words specifically for odata v4
http://inova8.com/bg_inova8.com/offerings/odata2sparql/
Apache License 2.0
5 stars 5 forks source link

A super-property with a range as well as its sub-properties will create both super-property with range and super-property with complex range #110

Open peterjohnlawrence opened 5 years ago

peterjohnlawrence commented 5 years ago

When there is a super-property with a range, as well as sub-properties with ranges, the application will create a complex object that is the range of the super-property. However it will also create a super-property with the actual range, which is an OData error (only one range is alloweed)

Possible resolution:

1: Trap this condition and export only one of the super-property definitions: scalar range or complex range (and complex range makes more sense) 2: Add the super-property to the complex object along with the sub-properties (probably the most accurate interpretation)

Immediate work-arounds:

Remove the range from the super-property. This however will prevent the super-property having its own statements (object super-property value)