Skip to content

Stage 8 — Verify Basic Graph Functionality

How to complete this stage

Upload a small RDF dataset into the running graph and query it back. Open a new terminal for this stage. Ensure that:

  • Secure Agent Graph is still running from Stage 7.
  • The node is running in minimal (no security) mode.

Approach and rationale

This stage confirms that the graph engine:

  • Accepts RDF data.
  • Stores it correctly.
  • Returns data via its query interface.

At this stage there is no authentication or access control. All data should be visible to any request.

If this stage fails, resolve the issue before enabling security in Stage 9.

8.1 Upload RDF data

Upload a sample RDF dataset to the graph:

curl -X POST \
  -T ~/src/secure-agent-graph/sag-docker/Test/data1.trig \
  -H "Content-type: text/trig" \
  http://localhost:3030/ds/upload
Expected behaviour
  • Sends RDF data to the graph upload endpoint.
  • Stores the data in the in-memory dataset.
  • Makes querying the data immediately possible.

Do not include an Authorization header in this step.

8.2 Query the dataset

Fetch basic dataset information to confirm the data is present:

curl http://localhost:3030/ds
Expected behaviour
  • The response should include RDF data from the uploaded dataset.
  • All records should be visible.
  • No authentication should be required.
Operational notes
  • If the upload fails, confirm that Secure Agent Graph is still running.
  • If the query returns nothing, re-run the upload command and try again.
  • The dataset is in-memory; restarting the graph will clear it.
  • Ensure the file path to data1.trig is correct for your environment.

8.3 Checkpoint

At the end of this stage:

  • RDF data uploads successfully.
  • The dataset can be queried.
  • Data is returned without authentication.

If this fails, do not proceed to security-related stages.

Resolve any graph or configuration issues before continuing.

Next Steps

Run Node (Secure)