Generate JSON/SMML from an .rpd File
Use the rpdtojson utility to generate JSON/SMML from an .rpd file. Running this utility is similar to using Semantic Modeler to import a semantic model.
See What Is SMML?
If you generate JSON/SMML from an .rpd file that was exported from Model Administration Tool and uses an ODBC Basic or ODBC Advanced connection, the rpdtojson utility converts the connection to JDBC.
The location of the rpdtojson utility is BI_DOMAIN/bitools/bin
Syntax
The rpdtojson
utility takes the following
parameters:
rpdtojson [-P repository_password] {-R repository_path} {-D target_json_path} [-8] [-O log_pathname] [-C]
Where the required flags are:
repository_password is the password for the semantic model.
repository_path is the path and name of the semantic model. You must provide the full path names to the input and output repository files if they're located in different directories.
target_json_path is the path and name for the target JSON/SMML. You must provide the full path names to the input and output repository files if they're located in different directories.
Where the optional flags are:
Specify -O
to generate an output log file at the path
you specify.
Specify -8
to assure that the semantic model to JSON
conversions supports all UTF-8 encoding.
Specify -C
to use compatibility mode to generate additional metadata
for backward compatibility in legacy semantic models.
Specify -H
or -?
to display usage information and
exit.
Examples
Note:
For all examples, the full path names to the input and output repository files are required if they're located in different directories.This example generates JSON/SMML with ASCII encoding in
/project/json
based on the input repository source.rpd:
rpdtojson -P password -R /project/source.rpd -D /project/json
This example generates JSON/SMML with UTF-8 encoding in
/project/json
based on the input repository source.rpd:
rpdtojson -P password -R /project/source.rpd -D /project/json -8
This example uses compatibility mode to generate JSON/SMML in
/project/json
based on the input repository source.rpd. It
also generates an additional log file for the conversion.
rpdtojson -P password -R /project/source.rpd -D /project/json -O /project/logs/rpdtojson.log -C