ControlTier > controltier-core
 

convert-rdf

Command Reference

Description

Convert type and module rdf to type.xml.

Workbench uses RDF as its model representation format and serializes model data into two RDF/XML files: type.rdf and module.rdf. This utiltity command will convert type and module RDF files into the type.xml format.

If the -basedir and -type options are specified, then the the type.xml file is generated into that directory, and the module and type rdf are looked for in there as well. First "type.rdf" and "module.rdf" are looked for, then "type.n3" and "module.n3".

If basedir is not specified, then all three options modulerdf, typerdf, and output must be specified.

rdfformat defaults to "RDF/XML", but if basedir is specified, "N3" will be used if "type.n3" and "module.n3" exist and the "*.rdf" files do not.

Examples

Most args of convert-rdf can be left out if the RDF is in the basedir/type directory. If TypeX contained a type.rdf and module.rdf file but no type.xml, the following file structure would be seen:

  • TypeX/
    • type.rdf ;# type definition file
    • module.rdf ;# command definition file
    • commands/
    • objects/
    • templates/

The command would just need the -type option:

	  ctl -p project -t ProjectBuilder -o name -c convert-rdf -- -type TypeX
	

Usage

ctl -t ProjectBuilder -o <objectname> -c convert-rdf [-basedir <>] [-modulerdf <>] [-output <>] [-rdfformat <RDF/XML>] [-removerdf] [-targetdir <>] [-type <>] [-typerdf <>]

Options

Option Description Type Default
basedir directory to look for type.rdf and module.rdf string ${entity.attribute.basedir}
modulerdf module rdf file string
output destination for type.xml file string
rdfformat rdf format string RDF/XML
removerdf remove the typerdf and modulerdf file after the type.xml file has been generated boolean
targetdir directory to write artifacts string ${entity.attribute.targetdir}
type type name string
typerdf type rdf file string