Skip to main content

countRelationshipInstance
countRelationshipInstance

This article explains how you can count concept instances or facts in knowledge maps, using a "countRelationshipInstance" expression. It also gives you an example knowledge map to explore "countRelationshipInstance" expressions inside the Rainbird Studio.

The countRelationshipInstance expression is used to count concept instances/facts either within the map or entered when querying the map. The countRelationship expression (or countRel for short) can be used with string, number and date instances. The expression can not be directly used with a boolean function. However, by using a comparative expression in combination with the countRel expression, a boolean function can be used to answer a yes or no question.

Click on one of the links below for more information on the countRelationshipInstance expression:

  1. countRelationshipInstance - Example Map
  2. countRelationshipInstance - Variations
  3. countRelationshipInstance - Downloadable Map
0 followers
0 questions
0 posts

You will need to register to be able to post or comment on a topic.  

countRelationshipInstance - Downloadable Model

When viewing the knowledge map generated by the .rbird file below, please see the list below for which query you will need to run to see each countRelationshipExpression Variation in action:

  • Subject CONCEPT variable counting ANY Object instance - '... (More)

countRelationshipInstance - Variation: Subject CONCEPT variable counting Object specific INSTANCE

This article will focus on the 'Subject CONCEPT variable counting Object specific INSTANCE' countRelationshipInstance variation.

Variation Overview

STRUCTURE: (subjectConceptVariable, countRel, object_specific_instance)

Example: countRelationshipInstance(%VEHICLE, car type, ‘SUV’)

This version of the countRelationshipExpression will count the relationship instances between a concept instance... (More)

countRelationshipInstance - Variations: ANY Subject counting Object specific INSTANCE

This article will focus on the 'ANY Subject counting Object specific INSTANCE' countRelationshipInstance variation.

Variation Overview

STRUCTURE: (ANY_subject, countRel, object_specific_concept)

Example: countRelationshipInstance(*, owns car of specific type, ‘Middle Class’)

This variant of the countRelationshipInstance expression is used to count the... (More)

countRelationshipInstance - Variations: ANY Subject counting Object CONCEPT variable

This article will focus on the 'ANY Subject counting Object CONCEPT variable' countRelationshipInstance variation.

Variation Overview

STRUCTURE: (ANY_subject, countRel, objectConceptVariable)

Example: e.g. countRelationshipInstance*, available in, %COLOURS)

This variant of the countRelationshipInstance expression will count the relationship instances that exist between... (More)

.menu.bell.icon {color: #1c083b;}