| Name | Type | Description |
|---|---|---|
host* | str | endpoint for the database instance |
port | int | Default: 8182port number for the database instance, default is 8182 |
use_iam_auth | bool | Default: Falseboolean indicating IAM auth is enabled in Neptune cluster |
use_https | bool | Default: True |
client | Any | Default: None |
credentials_profile_name | Optional[str] | Default: None |
region_name | Optional[str] | Default: None |
service | str | Default: 'neptunedata' |
sign | bool | Default: True |
Neptune wrapper for RDF graph operations.
Example:
graph = NeptuneRdfGraph(
host='<SPARQL host'>,
port=<SPARQL port>
)
schema = graph.get_schema()
OR
graph = NeptuneRdfGraph(
host='<SPARQL host'>,
port=<SPARQL port>
)
schema_elem = graph.get_schema_elements()
#... change schema_elements ...
graph.load_schema(schema_elem)
Security note: Make sure that the database connection uses credentials that are narrowly-scoped to only include necessary permissions. Failure to do so may result in data corruption or loss, since the calling code may attempt commands that would result in deletion, mutation of data if appropriately prompted or reading sensitive data if such data is present in the database. The best way to guard against such negative outcomes is to (as appropriate) limit the permissions granted to the credentials used with this tool.
See https://docs.langchain.com/oss/python/security-policy for more information.
whether to use secure connection, default is True
optional boto3 Neptune client
optional AWS profile name
optional AWS region, e.g., us-west-2
optional service name, default is neptunedata
optional, whether to sign the request payload, default is True