Graph Query
Query the graph store for the stored raw triples. The input should be any combination of s
, p
, or o
with an integer limit
on the number of graph relationships to return.
- curl
- Python
curl http://localhost:8088/api/v1/triples-query \
--header "content-type: application/json" \
--data \
'{
"p": "http://www.w3.org/2000/01/rdf-schema#label",
"limit": 10
}'
Install the TrustGraph
SDK:
pip install trustgraph-cli
import trustgraph.api as tg
client = tg.Api()
response = client.triples_query(p="http://www.w3.org/2000/01/rdf-schema#label", limit=10)
for triple in response:
print(triple.s, triple.p, triple.o)