Skip to content

Files

Latest commit

1f45f2d · Oct 5, 2022

History

History
36 lines (24 loc) · 763 Bytes

quickstart.md

File metadata and controls

36 lines (24 loc) · 763 Bytes

Quickstart

Installation

Godel requires Python 3.7+

pip install godel

# Add extras to install web3, jupyter, data tools, etc.
pip install godel[web3,data-tools]

GraphQL Examples

Query against the protocol GraphQL API to retrieve and explore data in the knowledge graph.

from godel import GoldenAPI

goldapi = GoldenAPI()

# Operations that do not require authentication
# Retrieve existing triple predicates
goldapi.predicates()

# Retrieve existing entity templates 
goldapi.templates()

# With signed authentication
# Find your JSON Web Token(JWT) at "https://dapp.golden.xyz/profile" after signing in
goldapi = GoldenAPI(jwt_token=<your_token>)

# Search and query for specific entities
goldapi.entity_search(name="Golden")