The CX Ontology Tools are little helpers to deal with TX ontologies.
Run the following command to test and build the tool binaries
mvn package
Run the following command to merge the CX ontology to the standard output (RDF XML format)
java -jar target/tools-1.9.1-SNAPSHOT.jar ../*_ontology.ttl
To run the merger with an XML-based stylesheet, for example to render the ontology as a graph
java -jar target/tools-1.9.1-SNAPSHOT.jar -styleSheet src/main/resources/graph.xslt ../*_ontology.ttl
To run the merger with RDF JSON LD output
java -jar target/tools-1.9.1-SNAPSHOT.jar +jsonld ../*_ontology.ttl
To run the merger with VOWL stylesheet on all domain ontologies and create vowl graphs
for file in ../*_ontology.ttl;
do
echo Processing ${file:t} into ${file:t:r}.json
java -jar target/tools-1.9.1-SNAPSHOT.jar -styleSheet src/main/resources/vowl.xslt $file 1>../vowl/${file:t:r}.json
done
Run the following command to convert a given json file into an SQL script.
node src/main/node/json2Sql.js
Run the following command to convert a given json file into separate data jsons
node src/main/node/json2json.js
Run the following command to generate test data (currently: for the Traceability Use Case)
node tools/src/main/node/testdata.js
The resulting testdata can be found under this file