The low-code Knowledge Graph application platform
LinkedDataHub (LDH) is open source software you can use to manage data, create visualizations and build apps on RDF Knowledge Graphs.

Version 6 redraws the interface on a design system that ships with the platform: the app shell, content blocks, action bar, property lists, tables, modals and forms all render one class vocabulary, and ldh.css is the single app layer a dataspace stylesheet overrides. Bootstrap 2 is gone with the bs2: template modes — the CHANGELOG has what that means for an application stylesheet written against it.
We started the project with the intention to use it for Linked Data publishing, but gradually realized that we've built a multi-purpose data-driven platform.
We are building LinkedDataHub primarily for:
- researchers who need an RDF-native FAIR data environment that can consume and collect Linked Data and SPARQL documents and follows the FAIR principles
- developers who are looking for a declarative full stack framework for Knowledge Graph application development, with out-of-the-box UI and API
What makes LinkedDataHub unique is its completely data-driven architecture: applications and documents are defined as data, managed using a single generic HTTP API and presented using declarative technologies. The default application structure and user interface are provided, but they can be completely overridden and customized. Unless a custom server-side processing is required, no imperative code such as Java or JavaScript needs to be involved at all.
XHTML documents can be edited in-place using a built-in RDFa-aware rich text editor — annotations link selected text directly to Knowledge Graph terms, embedding machine-readable RDF statements in the markup without leaving the page.
Follow the Get started guide to LinkedDataHub. The setup and basic configuration sections are provided below and should get you running.
LinkedDataHub is also available as a free AWS Marketplace product!
It takes a few clicks and filling out a form to install the product into your own AWS account. No manual setup or configuration necessary!
Setup
Click to expand
Prerequisites
bashshell 4.x. It should be included by default on Linux. On Windows you can install the Windows Subsystem for Linux.- Docker installed. At least 8GB of memory dedicated to Docker is recommended.
- Docker Compose installed
CLI
The ldh command line interface is attached to every release and needs only a Java 21 runtime; building it from source additionally requires Maven. The certificate and WebID scripts that remain in the bin/ directory require openssl and keytool (part of the JDK).
Steps
-
Fork this repository and clone the fork into a folder
-
In the folder, create an
.envfile and fill out the missing values (you can use.env_sampleas a template). For example:COMPOSE_CONVERT_WINDOWS_PATHS=1 COMPOSE_PROJECT_NAME=linkeddatahub PROTOCOL=https HTTP_PORT=81 HTTPS_PORT=4443 HOST=localhost OWNER_MBOX=john@doe.com OWNER_GIVEN_NAME=John OWNER_FAMILY_NAME=Doe OWNER_ORG_UNIT=My unit OWNER_ORGANIZATION=My org OWNER_LOCALITY=Copenhagen OWNER_STATE_OR_PROVINCE=Denmark OWNER_COUNTRY_NAME=DK.envalso needsPROXY_SECRET, a random value nginx sends to the platform with every request:make secretsappends one, or addPROXY_SECRET=followed by the output ofopenssl rand -hex 32. Docker Compose refuses to start without it. -
Setup server's SSL certificates by running this from command line:
./bin/server-cert-gen.sh .env nginx sslThe script will create an
sslsub-folder where the SSL certificates and/or public keys will be placed. -
Create the following secrets with certificate/truststore passwords:
secrets/client_truststore_password.txtsecrets/owner_cert_password.txtsecrets/secretary_cert_password.txtsecrets/openai_api_key.txt— optional, only if you enable the assistant: an OpenAI API key, declared indocker-compose.override.ymllike the OAuth secrets; without it the assistant runs plans but cannot write them The one you will need to remember in order to authenticate with LinkedDataHub using WebID client certificate isowner_cert_password.
-
Launch the application services by running this from command line:
make up -- --buildmake uppasses its arguments on todocker-compose up. The--is required before any argument starting with-, otherwisemaketreats it as one of its own options.It will build LinkedDataHub's Docker image, start its container and mount the following sub-folders:
sslownerstores root owner's WebID certificate, keystore, and public keysecretarystores root application's WebID certificate, keystore, and public keyserverstores the server's certificate (also used by nginx)
datawhere the triplestore(s) will persist RDF datadatasetswhere LDH persists agent metadata filesuploadswhere LDH stores content-hashed file uploads It should take up to half a minute as datasets are being loaded into triplestores. After a successful startup you should see periodic healtcheck requests being made to the https://localhost:4443/ns URL.
-
Install
ssl/owner/keystore.p12into a web browser of your choice (password is theowner_cert_passwordsecret value)- Google Chrome:
Settings > Advanced > Manage Certificates > Import... - Mozilla Firefox:
Options > Privacy > Security > View Certificates... > Import... - Apple Safari: The file is installed directly into the operating system. Open the file and import it using the Keychain Access tool (drag it to the
localsection). - Microsoft Edge: Does not support certificate management, you need to install the file into Windows. Read more here.
- Google Chrome:
-
For authenticated API access use the
ssl/owner/cert.pemHTTPS client certificate withcurl, or thessl/owner/keystore.p12keystore beside it with theldhCLI. If you are running Linux with user other thanroot, you might need to fix the certificate permissions because Docker bind mounts are owned byrootby default. For example:sudo setfacl -m u:$(whoami):r ./ssl/owner/* -
Open https://localhost:4443/ in the web browser or use the API, for example:
curl -k -E ./ssl/owner/cert.pem:<your cert password> -H "Accept: text/turtle" 'https://localhost:4443/'ldh get -c ./ssl/owner/keystore.p12 -p <your cert password> --accept text/turtle 'https://localhost:4443/'
Notes
-
There might go up to a minute before the web server is available because the nginx server depends on healthy LinkedDataHub and the healthcheck is done every 20s
-
You will likely get a browser warning such as
Your connection is not privatein Chrome orWarning: Potential Security Risk Aheadin Firefox due to the self-signed server certificate. Ignore it: clickAdvancedandProceedorAccept the riskto proceed.- If this option does not appear in Chrome (as observed on some MacOS), you can open
chrome://flags/#allow-insecure-localhost, switchAllow invalid certificates for resources loaded from localhosttoEnabledand restart Chrome
- If this option does not appear in Chrome (as observed on some MacOS), you can open
-
MacOS: Chrome subdomain support: Chrome on macOS requires the server certificate to be installed to the System keychain to properly load resources from dataspace subdomains (e.g.,
admin.localhost:4443). Firefox is more lenient and will work without this step.- Open Keychain Access (Applications > Utilities > Keychain Access)
- Select System keychain in the left sidebar
- File → Import Items → select
ssl/server/server.crt - Enter your admin password when prompted
- Double-click the "localhost" certificate
- Expand the Trust section
- Set "When using this certificate:" to Always Trust
- Close the window (enter password again)
- Completely quit Chrome (Cmd+Q) and restart
Alternatively, use the command line:
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ssl/server/server.crt -
.env_sampleand.envfiles might be invisible in MacOS Finder which hides filenames starting with a dot. You should be able to create it using Terminal however. -
On Linux your user may need to be a member of the
dockergroup. Add it using
sudo usermod -aG docker ${USER}
and re-login with your user. An alternative, but not recommended, is to run
sudo make up
Configuration
Click to expand
Base URI
A common case is changing the base URI from the default https://localhost:4443/ to your own.
Lets use https://ec2-54-235-229-141.compute-1.amazonaws.com/ as an example. We need to split the URI into components and set them in the .env file using the following parameters:
PROTOCOL=https
HTTP_PORT=80
HTTPS_PORT=443
HOST=ec2-54-235-229-141.compute-1.amazonaws.com
A dataspace serves its documents from the root of its origin, so the base URI is always the origin followed by / — there is no sub-path component to configure. Deploying several dataspaces on one instance is a matter of giving each its own subdomain, as described in Dataspaces below.
Dataspaces
Since version 5.1.0, a single LinkedDataHub instance supports multiple dataspaces, each identified by a distinct subdomain (origin). Each dataspace consists of a pair of applications: an end-user app (e.g. https://northwind-traders.demo.localhost:4443) and an admin app on the admin. subdomain (e.g. https://admin.northwind-traders.demo.localhost:4443).
Dataspace configuration is split across two files:
config/dataspaces.trig— public metadata: origins (lds:origin), ontologies, stylesheetsconfig/system.trig— internal wiring: SPARQL service bindings and dataspace types (lds:AdminDataspace/lds:EndUserDataspace)
To add a new dataspace, add corresponding entries to both files. Relative URIs will be resolved against the base URI configured in the .env file.
:warning: Do not use blank nodes to identify applications or services. We recommend using the urn: URI scheme, since LinkedDataHub application resources are not accessible under their own dataspace.
Graph versioning
Since version 5.9.0, LinkedDataHub can mirror every document of a dataspace into a GitHub repository. Each document (named graph) becomes an N-Triples file, and every write (POST/PUT/PATCH/DELETE) becomes a commit authored with the agent's WebID — giving you a full history, audit trail, and undo capability using plain git tooling. Commits happen asynchronously in the background and are best-effort: if GitHub is unavailable or the token is invalid, writes succeed as usual and the failures are only logged.
Historical versions can be retrieved with the version query parameter using a commit SHA:
curl -k -E ./ssl/owner/cert.pem:<your cert password> -H "Accept: text/turtle" 'https://localhost:4443/my-doc/?version=<commit-sha>'
Version responses are immutable and carry a Memento-Datetime header with the commit's datetime. They are subject to the same access control as the live document.
Versioning is disabled by default. To enable it for a dataspace:
- Create a GitHub repository (a private one is recommended) that will store the graph files.
- Obtain an access token: on GitHub, go to Settings > Developer settings > Personal access tokens > Fine-grained tokens > Generate new token. Under Repository access select Only select repositories and pick the repository from step 1; under Permissions > Repository permissions set Contents to Read and write. Generate the token and copy it (it starts with
github_pat_). A classic token with thereposcope works as well, but grants far broader access. - Describe the repository in
config/system.trigand link the application to it (an example is included in the file):<urn:linkeddatahub:apps/end-user> { <urn:linkeddatahub:apps/end-user> lds:versioningRepository <urn:linkeddatahub:versioning/end-user> . } <urn:linkeddatahub:versioning/end-user> { <urn:linkeddatahub:versioning/end-user> a doap:GitRepository ; doap:location <https://github.com/OWNER/REPO> ; github:branch "main" ; github:pathPrefix "graphs" . } - Put the token into
secrets/credentials.trig(create the file if it does not exist) as ana:authTokenof the repository resource:@prefix a: <https://w3id.org/atomgraph/core#> . <urn:linkeddatahub:versioning/end-user> { <urn:linkeddatahub:versioning/end-user> a:authToken "github_pat_..." . } - Enable the
credentialssecret indocker-compose.ymlby uncommenting it in the top-levelsecrets:block and in thelinkeddatahubservice'ssecrets:list. - Restart with
make up. The startup log will confirm:Graph versioning enabled for application <...>.
Multiple dataspaces can be versioned into different repositories with different tokens. The token never appears in the environment or the process table — it is merged into the internal context dataset from the Docker secret, the same mechanism used for SPARQL service credentials.
Secrets
Secrets used in docker-compose.yml:
owner_cert_password- Password of the owner's WebID certificate
secretary_cert_password- Password of the secretary's WebID certificate
client_truststore_password- Password of the client truststore
openai_api_key- OpenAI API key the
web-algebraservice writes the assistant's plans with. Optional, declared in the override together withOPENAI_API_KEY_FILE; the service executes plans without it, and the drawer then reports that a plan could not be written google_client_id- Google's OAuth client ID
- Login with Google authentication is enabled when this value is provided
google_client_secret- Google's OAuth client secret
credentials- TriG dataset (
secrets/credentials.trig) with service credentials such as SPARQL auth and graph versioning tokens, merged into the system dataset at startup
Environment
LinkedDataHub supports a range of configuration options that can be passed as environment parameters in docker-compose.yml. The most common ones are:
CATALINA_OPTS- Tomcat's command line options
SELF_SIGNED_CERTtrueif the server certificate is self-signedSIGN_UP_CERT_VALIDITY- Validity of the WebID certificates of signed up users (not the owner's)
IMPORT_KEEPALIVE- The period for which the data import can keep an open HTTP connection before it times out, in ms. The larger files are being imported, the longer it has to be in order for the import to complete.
MAX_CONTENT_LENGTH- Maximum allowed size of the request body, in bytes
MAX_QUERY_RESPONSE_LENGTH- Maximum length of a query result the
/sparqlendpoint answers with, in bytes. A longer one is refused with502. 5242880 (5 MiB) by default VARNISH_SPARQL_STORAGE- Size of the store the Varnish caches in front of the triplestore keep SPARQL results in, apart from their main one (Varnish size syntax, e.g.
64M). A result too large for it ends the fetch, and the triplestore abandons the query, which bounds what one runaway query costs.64Mby default COMPOSE_PROFILESassistantto run and offer the assistant. Disabled by defaultMAIL_SMTP_HOST- Hostname of the mail server
MAIL_SMTP_PORT- Port number of the mail server
The options are described in more detail in the configuration documentation.
Reset
If you need to start fresh and wipe the existing setup (e.g. after configuring a new base URI), you can do that using
make drop
It asks for confirmation, then stops the services and removes their volumes before deleting the datasets, fuseki, ssl, and uploads folders. Stopping first matters: deleting those folders while the containers are running leaves Fuseki writing into directories that no longer exist.
:warning: This will remove the persisted data and files as well as Docker volumes.
Documentation
Command line interface
ldh wraps the HTTP API into a single executable with convenient parameters. It can be used for testing, automation, scheduled execution and such. It is usually much quicker to perform actions using the CLI rather than the user interface, as well as easier to reproduce.
Every release attaches an ldh-<version>.tar.gz archive, which needs only a Java 21 runtime — no build tools and no source checkout:

