Source code query command line interface
GitSocratic provides a pain-free interface for querying source code. GitSocratic uses the omnilingual parser Babelfish to extract universal abstract syntax trees (which are additionally annotated with their semantic meanings) and imports that data into a knowledge graph powered by Grakn. This process is fully facilitated by GitSocratic's integration with Phenomena.
- Supports question/answer source code queries
- Cross-language source code querying
- Semantic role querying
- UAST structure querying
GitSocratic requires access to two services:
GitSocratic is able to install these services automatically using Docker. If you do no wish to use Docker you may supply the host and ports for these services through the config file or command.
To automatically setup these services with Docker, simply use the command:
gitsocratic init
Note: This command may take several minutes on the first use.
apt-get update
apt install openjdk-8-jre-headless
apt install unzip
apt install docker.io
wget https://github.com/CodeBrig/GitSocratic/releases/download/v0.2.1-alpha/gitsocratic-0.2.1.zip
unzip gitsocratic-0.2.1.zip
cd gitsocratic-0.2.1/bin/
./gitsocratic init
gitsocratic [-hV] [-c=<configFile>] [COMMAND]
add-local-repo Add local source code repository to the knowledge graph
add-remote-repo Add remote source code repository to the knowledge graph
config Configure GitSocratic
console Open interactive source code query console
init Initialize services necessary to use GitSocratic
logs View logs for initialized services
query Execute a single source code query
question Execute a single source code question
More information: COMMANDS