How to query container concept instance details by using contained concept property or attribute?

How to query container concept instance details by using contained concept property or attribute?

book

Article ID: KB0085606

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
===========
How to query container concept instance details by using contained concept property or attribute?

Environment:
===========
TIBCO BusinessEvents 3.0.1
All Operating Systems

Symptoms:
=========
n.a.

Cause:
======
n.a.

Resolution:
========
In containment relationship, where one concept is contained inside another concept, you can use the '@parent' attribute of the contained concept to to query the parent container concept instance.

Lets take the example of "Shop (Name, NoOfCars) contains Car (Make, Model)" containment relationship to understand this query.

"Shop" concept has "Name and NoOfCars" as the properties/attributes - Container concept or Parent "Car" has "Make" adn "Model" as the properties/attributes - Contained concept or child. So the query to retrieve shop concept instance details with the car attribute "Make" is as follows:

Select S.Name, S.NoOfCars from /Shop S, /Car C where C@parent@extId=S@extId and (C.Make=&ltvalue for make>)

Issue/Introduction

How to query container concept instance details by using contained concept property or attribute?