Skip to main content


I'm trying to get a full n-quad entry in #Cayley with #python. But all the example queries (in the "Gremlin" API syntax) are restricted to getting a particular set of matching entries. Is there an equivalent of the SQL

```
SELECT * FROM graph WHERE subject = "Foo";
```

Help? 😁

in reply to Gene Boggs

YES! Woo!

```
import requests
import json
cayley_url = 'http://localhost:64210/api/v1/query/graphql'
query = "{ nodes{*} }"
response = requests.post(cayley_url, data=query)
if response.status_code == 200:
data = response.json()
print(json.dumps(data, indent=2))
else:
print(f"Query failed with status code {response.status_code}")
print(response.text)
```

Ha. "GraphQL - You are my slave."

This entry was edited (4 weeks ago)