• Antelope Release 5.5 Mac OS X 10.8.5 2015-04-21

 

NAME

dbschema2prolog - Wrap a Datascope database schema into Prolog syntax

SYNOPSIS

dbschema2prolog schema

SUPPORT


Contributed code: NO BRTT support.
THIS PIECE OF SOFTWARE WAS CONTRIBUTED BY THE ANTELOPE USER COMMUNITY. BRTT DISCLAIMS ALL OWNERSHIP, LIABILITY, AND SUPPORT FOR THIS PIECE OF SOFTWARE.

FOR HELP WITH THIS PIECE OF SOFTWARE, PLEASE CONTACT THE CONTRIBUTING AUTHOR.

DESCRIPTION

dbschema2prolog reads a Datascope database schema, putting out Prolog unit clauses which represent the attributes and relations of the schema. This is useful for a variety of further relational operations on the schema. If the schema definition file is found in the current directory, it is used. After that, paths in the SCHEMA_DIR environment variable are searched. In addition to individual schemas, dbschema2prolog is able to handle combined schemas specified via the schema1:schema2 mechanism described in dbschema(5). The resulting prolog clauses are sent to standard-out. The time::endtime key is expressed as range(time,endtime). Less-than, Greater-than, Double-Quote, and Ampersand characters are replaced by their respective tokens <, >, ", and &.

EXAMPLE

	yukon% dbschema2prolog css3.0 > css30.swi
	yukon%

	yukon% dbschema2prolog rt1.0:dbrecenteqs1.0 > expandedschema.swi
	yukon%

SEE ALSO

dbschema(5)

AUTHOR

Kent Lindquist and Bertram Ludaescher
Antelope User Group Contributed Software
Printer icon