Name

http_nt_triple — outputs next triple to ses in NT serialization.

Synopsis

http_nt_triple ( in env any ,
in arg1 any ,
in arg2 any ,
in arg3 any ,
in ses any );

Description

Outputs next triple to ses in NT serialization.

Parameters

env

An array of special format:

vector (0, 0, 0);

It is used solely as storage for intermediate data that should be freed by the interpreter in case of any error.

arg1

Triple subject.

arg2

Triple predicate.

arg3

Triple object.

ses

Session output.

Return Types

Any

Examples

Example24.290.Simple Use

create procedure dump_rdftriples_to_nt(inout triples any, inout ses any)
{
  declare env any;
  declare tcount, tctr integer;
  tcount := length (triples);
  if (0 = tcount)
    {
      http ('# Empty NT\n', ses);
      return;
    }
  env := vector (0, 0, 0);
  for (tctr := 0; tctr < tcount; tctr := tctr + 1)
    {
      http_nt_triple (env, triples[tctr][0], triples[tctr][1], triples[tctr][2], ses);
    }
}
;