Raphtory Server
Raphtory Server runs over a working directory that organizes graphs into namespaces. Each namespace can contain multiple graphs, making it easy to manage different projects or datasets.
Server Summary
The server can be started in two ways:
- Pre-populated directory: Run your Python script to create and save graphs, then start the server to expose them via GraphQL.
- Empty directory: Launch the server on an empty directory and use Python or GraphQL to push graphs to it dynamically.
Once running, you can:
- Push and pull graphs between Python and the server
- Query and update graphs via GraphQL or Python clients
- Visualize your graphs using the built-in UI
The server includes a built-in UI at localhost:1736 for writing GraphQL queries and visualizing your graphs interactively.
What is GraphQL?
GraphQL is a query language for your API, and a server-side runtime for executing queries using a type system you define for your data. Using GraphQL can help you reduce over-fetching and under-fetching of data compared to REST APIs.
The GraphQL server provides an IDE available at localhost:1736/playground where you can write and test GraphQL queries. Alternatively, you can write all your GraphQL queries in Python and easily update, send and receive Raphtory graphs from the server.
This section will show you how to start the Raphtory Server and run your own queries on your data.