Java -jar Xpetal.jar [option...] input_file [output_file]
The Xpetal command generates an RDF schema from an rational Rose petal file. It can also generate an HTML report or W3C XML schema from the RDF schema.
The input_file and output_file arguments are file names in the normal format for the platform.
The output_file is optional. If omitted, the schema or report are sent to the standard output.
The options are listed below. Multiple options may be combined. Where they conflict, the rightmost option prevails.
Generate an RDF schema from the UML model. This is the default option.
The input_file must be a Rational Rose 4 or Rational Rose 98 model file. These files normally end in .ptl or .mdl.
The output_file is an RDF schema file. The schema is constructed according to the UML to RDF mappings in the OMG DAF specification. A subset of RDF syntax is used corresponding to the CIM/XML syntax.
If a profile is selected the generated schema includes only those classes marked as part of that profile in the model. By default, all classes found in the model are represented in the schema.
Generate a HTML report. The input_file is an RDF schema as generated by the -rdf option.
The output_file is a HTML report listing each class and property in the schema with cross-reference hyperlinks.
If a profile is selected, its classes are highlighted.
Generate a W3C XML schema. The input_file is an RDF schema as generated by the -rdf option.
The output_file is a W3C XML schema (file name normally ending in .xsd). The schema produced is intended for building message definitions. It contains a simpleType definition for each RDF class and a global element definition for each RDF property.
See also the CIM/XSD page.
Select the profile for the -rdf or -html option. A profile is a subset of the model and is defined in the model file. The profile_name is the name given to the profile in the model file. For example, the CIM model defines one profile with the name Nerc (note the case).
This is a shortcut for selecting the Nerc profile in a CIM model. It is equivalent to -profile Nerc
Select the namespace URI for the generated RDF schema. The namespace URI normally reflects the schema's purpose and version. It should end in a "#" character.
When this option is used, all elements in the schema are identified with full URI's using the rdf:about attribute.
When this option is omitted, all elements in the schema are identified by local names relative to the document using the rdf:ID attribute.