Maltego Export Tools
npm install maltego-toolscd to maltego-tools
npm install --production --global to install the cli
cd to case folder
maltego-tools export --graphml /path/to/inputfile.graphml --output /path/to/outputfile.json
maltego-tools --help