Schema validation and coercion utilities for TPNs and HTNs
As this is a pre-release version plan-schema has not been published to Clojars. You can still clone it and install it locally.
Check out the CHANGELOG
The plan-schema library is part of the PAMELA suite of tools.
See the API docs
The plan-schema library uses boot as a build tool. For more on boot see Sean's blog and the boot Wiki.
Install boot if you haven't done so already.
Copy boot.properties to ~/.boot/boot.properties
(if you haven't customized it yet). NOTE: plan-schema requires Clojure 1.8.0 or later (BOOT_CLOJURE_VERSION=1.8.0
)
Copy profile.boot to ~/.boot/profile.boot
(if you haven't customized it yet).
cider-boot
task in build.bootboot lein-generate
In order to use the plan-schema with other programs
(e.g. planviz)
you need to install it in your local repository
(i.e. where Maven puts files, usually ~/.m2
):
boot local
For convenience you may add the plan-schema/bin directory to your PATH
(or simply refer to the startup script as ./bin/plan-schema
).
tmarble@cerise 242 :) plan-schema --help
plan-schema
Usage: plan-schema [options] action
Options:
-h, --help Print usage
-V, --version Print plan-schema version
-v, --verbose Increase verbosity
-f, --file-format FORMAT edn Output file format
-i, --input INPUT ["-"] Input file(s)
-o, --output OUTPUT - Output file
Actions:
htn Parse HTN
htn-plan Parse HTN
merge Merge HTN+TPN inputs
tpn Parse TPN
tpn-plan Parse TPN
tmarble@cerise 243 :)
plan-schema -i examples/seattle-2016/seattle.tpn.json -o seattle.tpn.json -f json tpn
plan-schema -i examples/seattle-2016/seattle.htn.json -o seattle.htn.json -f json htn
plan-schema -i examples/seattle-2016/seattle.tpn.json -o examples/seattle-2016/seattle.tpn.edn -f edn tpn
plan-schema -i examples/seattle-2016/seattle.htn.json -o examples/seattle-2016/seattle.htn.edn -f edn htn
plan-schema -i examples/seattle-2016/seattle.htn.edn -i examples/seattle-2016/seattle.tpn.edn -o examples/seattle-2016/seattle.merged.edn -f edn merge
Please see CONTRIBUTING for details on how to make a contribution.
NOTE The tests are (obviously) incomplete!
Copyright © 2016 Dynamic Object Language Labs Inc.
Licensed under the Apache License 2.0 LICENSE
This work was supported by Contract FA8650-11-C-7191 with the US Defense Advanced Research Projects Agency (DARPA) and the Air Force Research Laboratory. The views expressed are those of the authors and do not reflect the official policy or position of the Department of Defense or the U.S. Government.
Can you improve this documentation? These fine people already did:
Tom Marble & Dan CerysEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close