20.01.2014 Views

SIS - Application Programmatic Interface, Reference Manual - ICS ...

SIS - Application Programmatic Interface, Reference Manual - ICS ...

SIS - Application Programmatic Interface, Reference Manual - ICS ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SIS</strong>-<strong>Application</strong> <strong>Programmatic</strong> <strong>Interface</strong>, <strong>Reference</strong> <strong>Manual</strong><br />

TABLE OF CONTENTS<br />

1 INTRODUCTION 5<br />

2 QUERYING MODELS 5<br />

2.1 Client-server model to access the <strong>SIS</strong> base 6<br />

2.2 Immediate access the <strong>SIS</strong> base 6<br />

3 FUNCTIONALITY OF THE QUERY AND UPDATE FUNCTIONS 7<br />

4 NAME STACK 7<br />

5 PROGRAMMATIC SCENARIO 8<br />

6 FUNCTIONS 8<br />

6.1 Query and transaction sessions 8<br />

6.1.1 Creating sessions to interact with a <strong>SIS</strong> data base 9<br />

6.1.2 Connecting to the database 10<br />

6.1.3 Performing queries and transactions 10<br />

6.1.4 Using the locking mechanism 11<br />

6.2 Set global parameters 11<br />

6.3 Queries 12<br />

6.3.1 Low level queries 12<br />

6.3.2 Simple queries 13<br />

6.3.3 Logical expressions - Object set filtering 18<br />

6.3.3.1 Expressions returning TRUE/FALSE 19<br />

6.3.3.2 Expressions returning an integer value 24<br />

6.3.3.3 Expressions returning a system identifier 24<br />

6.3.3.4 Expressions returning a set identifier 24<br />

6.3.3.5 An Example 27<br />

6.3.4 General recursive queries 27<br />

6.3.5 Conditions on recursive queries 28<br />

6.3.5.1 An Example 28<br />

6.3.6 Special recursive queries 29<br />

6.3.7 Pattern Matching queries 30<br />

6.3.7.1 An Example 31<br />

6.4 Set manipulation functions 31<br />

6.5 Read contents of answer sets 33<br />

6.5.1 Parametric projection 36<br />

6.6 Tuple handling functions 36<br />

6.7 Update Functions 37<br />

6.7.1 Addition Operations 38<br />

6.7.2 Delete Operations 39<br />

August 2002/v2.2.2 -3- <strong>ICS</strong>-FORTH

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!