On 17/05/13 02:48, arterisk wrote:
> Thank you Richard for the reply.
> However , i still have a doubt about the third answer which is :
> 3) /qb:ObservationGroup relates with qb:Observation with qb:observation
> property. (qb:ObservationGroup -- qb:observation --- qb:Observation )/
> /I believe the relation is 1:many.
> /
> >>Correct.
>> /Can I link qb:Slice with qb:ObservationGroup ? It is something like
>> this? /
>> /(qb:Slice1 -- qb:observation -- qb:ObservationGroup1)/
>> /(qb:ObservationGroup1 -- qb:observation --- qb:Observation1 )/
>> /(qb:ObservationGroup1 -- qb:observation --- qb:Observation2 )/
> >>No. This kind of nesting is not supported.
> My question: Since that qb:ObservationGroup relates with qb:Observation
> with qb:observation property. (qb:ObservationGroup -- qb:observation ---
> qb:Observation ) and the relation is one to many. Then, these triples is
> allowed right:
> /(qb:ObservationGroup1 -- qb:observation --- qb:Observation1 )/
> /(qb:ObservationGroup1 -- qb:observation --- qb:Observation2 )/
Correct.
> /How to link a Slice to this ObservationGroup? Should it be like this?/
> /(qb:Slice1 -- qb:observation -- qb:ObservationGroup1)/
No. As Richard said, that kind of nesting is not supported.
There is qb:observationGroup which has an open domain and range
qb:ObservationGroup. So you could have:
eg:slice1 qb:observationGroup eg:observationGroup1.
eg:observationGroup1 qb:observation eg:observation1, ex:observation2 .
Not sure why you would want to do that but it is legal. However, note
that does not itself tell you that that eg:observation1 and
eg:observation2 are in eg:slice1, it is just annotating the slice with
some Observation Group and has no semantic implications for the contents
of the slice. If these observations are indeed in the slice then you
will still have to directly assert that:
eg:slice1 qb:observation eg:observation1, eg:observation2 .
> I have an additional questions:
> /Property:/ |*qb:componentRequired*| (
> /Domain:/|qb:ComponentSpecification
> <
http://www.w3.org/TR/vocab-data-cube/#dfn-qb-componentspecification>|
> -> /Range:/|xsd:boolean| )
> Indicates whether a component property is required (true) or
> optional (false) in the context of a DSD. Only applicable to
> components corresponding to an attribute. Defaults to false (optional).
> My question: Why it only applicable to attribute components? Cant it be
> apply to measure & dimension component as well?
No, those are always required. See IC-11 and IC-14.
There are ways of working around that for measures.
Dave