eggbird
software development and
knowledge engineering

Mail

ROIS

System.getTails

In a ROIS model a link runs from the tail to the head. For example, in the link

Bird.hasFeature.Feathers

the node class Bird is the tail, and the node class Feathers is the head.

// returns the tails of the incoming links at %node
CLIENT TASK getTails @model %node %link :`tails;
BEGIN
  #inheritance off;
  #transitivity off;
  FROM @model TO `tails
    SELECT NODES ?tail.%link.*.%node;
  #transitivity on;
  #inheritance on;
END getTails;

The statements preceded by a # are ROIS NPL pragma's. These statements toggle flags in the ROIS Virtual Machine. In this case, the VM should not use inheritance or transitivity to collect the tails.