Top

Name

gz_file_open — returns the contents of a gzipped file

Synopsis

varchar gz_file_open ( in path varchar );
 

Description

Returns the contents of a file. The path is relative to the working directory of the database server.

Parameters

path

Path name of the file to read.

Examples

Example 24.122. Simple Use

For loading gzipped N3 and Turtle files you can use:

SQL>DB.DBA.TTLP_MT (gz_file_open('path/myfile.n3.gz'), 'base uri', 'graph uri', 255);

Note that the last parameter means the parser uses relaxed parsing rules, the default value of 0 means strict syntax rules.