A Gno.Store.Adapter implementation for Ontotext GraphDB.
GraphDB is a RDF4J-based triplestore with reasoning support. It uses repository-based URL patterns following the RDF4J REST API convention.
Manifest Configuration
@prefix gno: <https://w3id.org/gno#> .
@prefix gnoa: <https://w3id.org/gno/store/adapter/> .
<GraphDB> a gnoa:GraphDB
; gno:storeEndpointScheme "http" # optional (default: "http")
; gno:storeEndpointHost "localhost" # optional (default: "localhost")
; gno:storeEndpointPort 7200 # optional (default: 7200)
; gno:storeEndpointDataset "my-repository" # required
.Default Graph Semantics
GraphDB uses union default graph semantics by default: the default graph
is the union of all named graphs and the real default graph. The adapter
automatically normalizes this by setting the default-graph-uri parameter
to <http://www.openrdf.org/schema/sesame#nil> for query operations.
This can be overridden per manifest with gno:storeDefaultGraphSemantics "isolated".
Prerequisites
A GraphDB repository must be created before using this adapter (e.g. via
the GraphDB Workbench UI or REST API). For test repositories, use ruleset: "empty"
to avoid inference overhead.
Administration
This adapter provides access to GraphDB's REST API for health checks and repository information.
Summary
Functions
Fetches information about all repositories.
Returns the graph semantics for a specific adapter instance.
Checks if the GraphDB server is available by listing repositories.
Returns the repositories endpoint for repository management operations.
Returns the repository-specific endpoint for the adapter's repository.
Returns the repository-specific endpoint for a given repository name.
Fetches information about the adapter's repository.
Fetches information about a specific repository.
Fetches the size (number of statements) of the adapter's repository.
Fetches the size (number of statements) of a specific repository.
Returns the repository size endpoint.
Returns the repository size endpoint for a given repository name.
Returns the GraphDB REST API base endpoint.
Types
Functions
Fetches information about all repositories.
@spec from(Grax.Schema.t()) :: {:ok, t()} | {:error, any()}
@spec from!(Grax.Schema.t()) :: t()
Returns the graph semantics for a specific adapter instance.
Checks the default_graph_semantics_config manifest property first,
falling back to default_graph_semantics/0.
@spec load( RDF.Graph.t() | RDF.Description.t(), RDF.IRI.coercible() | RDF.BlankNode.t(), opts :: keyword() ) :: {:ok, t()} | {:error, any()}
@spec load!( RDF.Graph.t() | RDF.Description.t(), RDF.IRI.coercible() | RDF.BlankNode.t(), opts :: keyword() ) :: t()
Checks if the GraphDB server is available by listing repositories.
Returns the repositories endpoint for repository management operations.
Returns the repository-specific endpoint for the adapter's repository.
Returns the repository-specific endpoint for a given repository name.
Fetches information about the adapter's repository.
Fetches information about a specific repository.
Fetches the size (number of statements) of the adapter's repository.
Fetches the size (number of statements) of a specific repository.
Returns the repository size endpoint.
Returns the repository size endpoint for a given repository name.
Returns the GraphDB REST API base endpoint.