PyAnzo is a Python library for programmatic interaction with Anzo, a knowledge graph platform developed by Cambridge Semantics. Anzo enables the ingestion, transformation, storage, exploration, and analysis of diverse data types using open W3C standards such as Web Ontology Language (OWL), Resource Description Framework (RDF), and SPARQL. The library is currently at version 3.3.12 and receives regular, primarily patch-level, updates.
pip install pyanzoVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to establish a connection to an Anzo server using `AnzoClient` and execute a simple SPARQL SELECT query against a specified graphmart. Ensure you set the `ANZO_HOST`, `ANZO_PORT`, `ANZO_USER`, `ANZO_PASS`, and `ANZO_GRAPH MART_URI` environment variables for a successful connection.
Verify `ANZO_HOST`, `ANZO_PORT`, `ANZO_USER`, and `ANZO_PASS` (or equivalent configuration) are correct and that network firewalls allow access to the Anzo server.
Confirm the graphmart URI is correct and that the target graphmart is activated within the Anzo environment. Use Anzo's administrative tools to list available graphmarts.
Validate SPARQL query syntax using a SPARQL editor or Anzo's query validation tools before executing programmatically. Ensure all prefixes are defined if used.
Check the `ANZO_HOST` and `ANZO_PORT` values. Ping the server's hostname/IP from the client machine. Verify firewall rules. Confirm the Anzo server is running and accessible.
Double-check the `ANZO_USER` and `ANZO_PASS` values. Ensure the user exists and has the required permissions on the Anzo server.
Verify the `ANZO_GRAPH MART_URI` is correct by checking Anzo's administrative interface. Ensure the graphmart is activated and has successfully loaded its data.