Neptune wrapper for RDF graph operations.
NeptuneRdfGraph(
self,
host: str,
port: int = 8182,
use_https: bool = True,
use_iam_auth: bool = False,
client: Any = None,
credentials_profile_name: Optional[str] = None,
region_name: Optional[str] = None,
service: str = 'neptunedata',
sign: bool = True
)Example:
.. code-block:: python
graph = NeptuneRdfGraph(
host='<SPARQL host'>,
port=
OR
graph = NeptuneRdfGraph(
host='<SPARQL host'>,
port=
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://python.langchain.com/docs/security for more information.
| 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: Truewhether to use secure connection, default is True |
client | Any | Default: Noneoptional boto3 Neptune client |
credentials_profile_name | Optional[str] | Default: Noneoptional AWS profile name |
region_name | Optional[str] | Default: Noneoptional AWS region, e.g., us-west-2 |
service | str | Default: 'neptunedata'optional service name, default is neptunedata |
sign | bool | Default: Trueoptional, whether to sign the request payload, default is True |
Returns the schema of the graph database.