Load Text
Ingest a .txt
or .md
file for data extraction.
- curl
- Python
data=$(base64 < myfile.txt)
curl http://localhost:8088/api/v1/load/text \
--header "content-type: application/json" \
--data \
'{
"data": $data
}'
Install the TrustGraph
SDK:
pip install trustgraph-cli
import trustgraph.api as tg
text = open("<myfile.txt>", "rb").read()
client = tg.Api()
client.load_text(text)