<https://www.w3.org/TR/sparql11-http-rdf-update/>
        <http://purl.org/dc/terms/title>
                "SPARQL 1.1 Graph Store HTTP Protocol" .

<https://docs.linkeddatahub.com/reference/http-api/#content>
        a       <https://w3id.org/atomgraph/linkeddatahub#XHTML>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#value>
                "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n    <p class=\"ldh-body-lg\">Read and write RDF data from and to LinkedDataHub dataspaces over HTTP</p>\n    <p>LinkedDataHub implements a uniform, generic RESTful Linked Data API as defined by the\n        <a href=\"https://www.w3.org/TR/sparql11-http-rdf-update/\" target=\"_blank\">SPARQL 1.1 Graph Store HTTP Protocol</a>. It adds a few conventions of its own, however — such as <a href=\"documents/#document-metadata\">automatic document metadata</a> — as well as some <a href=\"documents/#constraints\">constraints</a>.</p>\n    <p>This page covers what applies to every request. <a href=\"documents/\">Documents</a> describes the methods for managing document data, <a href=\"sparql/\">SPARQL endpoint</a> the query protocol,\n        <a href=\"linked-data-proxy/\">Linked Data proxy</a> browsing external data and other dataspaces, and <a href=\"system-endpoints/\">System endpoints</a> the paths served outside the document hierarchy.</p>\n    <div>\n        <h2 id=\"auth\">Authentication</h2>\n        <p>The LinkedDataHub UI supports two authentication methods:</p>\n        <ul>\n            <li><a href=\"https://dvcs.w3.org/hg/WebID/raw-file/tip/spec/tls-respec.html\" target=\"_blank\">WebID-TLS</a> using TLS client certificates</li>\n            <li>OpenID Connect using <a href=\"https://developers.google.com/identity/protocols/oauth2/openid-connect\" target=\"_blank\">Google</a> or <a href=\"https://info.orcid.org/documentation/integration-guide/\" target=\"_blank\">ORCID</a></li>\n        </ul>\n        <p>See how those authentication methods can be <a href=\"../configuration/\">configured</a> or how to <a href=\"../../get-started/get-an-account/\">get an account</a> on LinkedDataHub.</p>\n        <div class=\"ac-alert va-informative\" role=\"status\">\n            <span class=\"ac-alert-ic\"><span aria-hidden=\"true\" class=\"msi outline\">info</span></span>\n            <div class=\"ac-alert-body\">\n                <p class=\"ac-alert-text\">HTTP API access using the <a href=\"../command-line-interface/\">CLI</a> or curl currently does not support the OIDC method.</p>\n            </div>\n        </div>\n    </div>\n    <div>\n        <h2 id=\"acl\">Access control</h2>\n        <p>All HTTP access to <a href=\"documents/\">documents</a> is subject to <a href=\"../administration/acl/\">access\n            control</a>. Requesting a document with insufficient access rights will result in a <code>403 Forbidden</code> response. That means either:</p>\n        <ul>\n            <li>the user is not authenticated and public access to the document is not allowed</li>\n            <li>the user is authenticated but the associated agent does not have an authorization to <a href=\"../data-model/documents/#management\">perform the action</a> on the\n                requested document</li>\n        </ul>\n    </div>\n    <div>\n        <h2 id=\"con-neg\">Content negotiation</h2>\n        <p>LinkedDataHub implements <a href=\"https://tools.ietf.org/html/rfc7231#section-3.4.1\" target=\"_blank\">proactive content negotiation</a> based on the request <code>Accept</code>\n            header value. The following RDF media types are supported:</p>\n        <table>\n            <caption class=\"ac-vh\">Supported formats and their media types</caption>\n            <thead>\n                <tr>\n                    <th scope=\"col\">Format</th>\n                    <th scope=\"col\">Media type</th>\n                    <th scope=\"col\">Direction</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr>\n                    <th scope=\"row\"><a href=\"https://www.w3.org/TR/turtle/\" target=\"_blank\">Turtle</a></th>\n                    <td><code>text/turtle</code></td>\n                    <td>Request, response</td>\n                </tr>\n                <tr>\n                    <th scope=\"row\"><a href=\"https://www.w3.org/TR/n-triples/\" target=\"_blank\">N-Triples</a></th>\n                    <td><code>application/n-triples</code></td>\n                    <td>Request, response</td>\n                </tr>\n                <tr>\n                    <th scope=\"row\"><a href=\"https://www.w3.org/TR/rdf-syntax-grammar/\" target=\"_blank\">RDF/XML</a></th>\n                    <td><code>application/rdf+xml</code></td>\n                    <td>Request, response</td>\n                </tr>\n                <tr>\n                    <th scope=\"row\"><a href=\"https://www.w3.org/TR/json-ld/\" target=\"_blank\">JSON-LD</a></th>\n                    <td><code>application/ld+json</code></td>\n                    <td>Request, response</td>\n                </tr>\n                <tr>\n                    <th scope=\"row\"><a href=\"https://atomgraph.github.io/RDF-POST/\" target=\"_blank\">RDF/POST</a></th>\n                    <td><code>application/x-www-form-urlencoded</code></td>\n                    <td>Request only</td>\n                </tr>\n            </tbody>\n        </table>\n        <p>The same document, negotiated as N-Triples:</p>\n        <pre>GET /products/1/ HTTP/1.1\nHost: localhost:4443\nAccept: application/n-triples\n\nHTTP/1.1 200 OK\nContent-Type: application/n-triples\nETag: \"1e635b4-ntriples\"\n\n&lt;https://localhost:4443/products/1/#this&gt; &lt;https://schema.org/name&gt; \"Chai\" .\n…</pre>\n    </div>\n    <div>\n        <h2 id=\"errors\">Error responses</h2>\n        <p>LinkedDataHub provides machine-readable error responses in the requested RDF format. An example of <code>403 Forbidden</code>:</p>\n        <pre>@prefix xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt; .\n@prefix http: &lt;http://www.w3.org/2011/http#&gt; .\n@prefix sc:   &lt;http://www.w3.org/2011/http-statusCodes#&gt; .\n@prefix dct:  &lt;http://purl.org/dc/terms/&gt; .\n\n[ a http:Response ;\n    dct:title \"Access not authorized\" ;\n    http:reasonPhrase \"Forbidden\" ;\n    http:sc sc:Forbidden ;\n    http:statusCodeValue \"403\"^^xsd:long\n] .</pre>\n    </div>\n    <div>\n        <h2 id=\"hypermedia\">Hypermedia</h2>\n        <p>Responses describe their context in <code>Link</code> headers (<a href=\"https://www.rfc-editor.org/rfc/rfc8288\" target=\"_blank\">RFC 8288</a>), so a client\n            discovers the endpoint, the ontology or the administration dataspace from the response instead of constructing their URIs. All the links are folded into\n            a single <code>Link</code> header.</p>\n        <table>\n            <caption class=\"ac-vh\">Link relations in LinkedDataHub responses</caption>\n            <thead>\n                <tr>\n                    <th scope=\"col\">Relation</th>\n                    <th scope=\"col\">Target</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr>\n                    <th scope=\"row\"><code>http://www.w3.org/ns/sparql-service-description#endpoint</code></th>\n                    <td>The dataspace's SPARQL endpoint</td>\n                </tr>\n                <tr>\n                    <th scope=\"row\"><code>https://w3id.org/atomgraph/linkeddatahub/dataspaces#dataspace</code></th>\n                    <td>The dataspace the response belongs to</td>\n                </tr>\n                <tr>\n                    <th scope=\"row\"><code>https://w3id.org/atomgraph/linkeddatahub/dataspaces#ontology</code></th>\n                    <td>The dataspace's ontology, when it declares one</td>\n                </tr>\n                <tr>\n                    <th scope=\"row\"><code>https://w3id.org/atomgraph/linkeddatahub/dataspaces#admin</code></th>\n                    <td>The base URI of the <a href=\"../dataspace/#admin\">administration dataspace</a>: on end-user dataspace responses its pair, on administration dataspace responses its own</td>\n                </tr>\n                <tr>\n                    <th scope=\"row\"><code>https://w3id.org/atomgraph/client#stylesheet</code></th>\n                    <td>The dataspace's XSLT stylesheet, when it declares one</td>\n                </tr>\n                <tr>\n                    <th scope=\"row\"><code>http://www.w3.org/ns/auth/acl#agent</code></th>\n                    <td>The authenticated agent, when there is one</td>\n                </tr>\n                <tr>\n                    <th scope=\"row\"><code>http://www.w3.org/ns/auth/acl#mode</code></th>\n                    <td>One link per access mode the agent holds on the requested document (<code>acl:Read</code>, <code>acl:Append</code>,\n                        <code>acl:Write</code>); historical versions advertise <code>acl:Read</code> at most</td>\n                </tr>\n                <tr>\n                    <th scope=\"row\"><code>timemap</code>, <code>timegate</code>, <code>original</code>, <code>self</code></th>\n                    <td>On <a href=\"../versioning/\">versioned</a> documents: the <a href=\"documents/#versioned-documents\">Memento</a> relations of RFC 7089</td>\n                </tr>\n            </tbody>\n        </table>\n        <p>On a <a href=\"linked-data-proxy/#ld-proxy\">proxied</a> response the local relations are left out and the remote resource's own <code>Link</code> headers are forwarded\n            instead, which is how <a href=\"linked-data-proxy/#federation\">federation</a> finds the remote SPARQL endpoint; <code>acl:agent</code> is kept, since it describes the request.</p>\n        <pre>curl -k -I -E cert.pem:password https://localhost:4443/</pre>\n    </div>\n    <div>\n        <h2 id=\"caching\">Caching</h2>\n        <p><code>GET</code> and <code>HEAD</code> RDF responses from the backend triplestores (<em>not LinkedDataHub responses</em>) are cached automatically by LinkedDataHub using <a href=\"https://varnish-cache.org\" target=\"_blank\">Varnish</a>\n            as an HTTP proxy cache. You can check the age of the response by inspecting the <code>Age</code> response header (the value is in seconds).\n            Anonymous <a href=\"sparql/#caching\">SPARQL queries</a> are cached too, on their body.</p>\n        <p>LinkedDataHub sends <code>ETag</code> response headers derived from a digest of the document's URL and its RDF content. Every representation (HTML, RDF/XML, Turtle, etc.) gets a distinct <code>ETag</code> value, and language-negotiated HTML representations factor the accepted languages into the tag. Treat the value as opaque: it is a validator to quote back in a <a href=\"documents/#preconditions\">conditional request</a>, and nothing about the document can be read from it.</p>\n        <p>HTML responses carry a <code>Content-Language</code> negotiated against the languages the UI ships with, and advertise <code>Vary: Accept-Language</code> so shared caches keep the renderings apart.</p>\n        <p>Caching of LinkedDataHub responses can be enabled on the nginx HTTP proxy server by uncommenting the <code>add_header Cache-Control</code> directives in the <samp>platform/nginx.conf.template</samp> file.\n            Caching of <samp>/uploads/</samp> and <samp>/static/</samp> namespaces is enabled by default.</p>\n    </div>\n</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>;
        <http://www.w3.org/2000/01/rdf-schema#seeAlso>
                <https://www.w3.org/TR/sparql11-http-rdf-update/> .

<https://docs.linkeddatahub.com/reference/http-api/#select-children>
        a       <https://w3id.org/atomgraph/linkeddatahub#Object>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#value>
                <https://w3id.org/atomgraph/linkeddatahub#ChildrenView> .

<https://docs.linkeddatahub.com/reference/http-api/>
        a       <https://w3id.org/atomgraph/linkeddatahub/document-hierarchy#Container>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1>
                <https://docs.linkeddatahub.com/reference/http-api/#content>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2>
                <https://docs.linkeddatahub.com/reference/http-api/#select-children>;
        <http://purl.org/dc/terms/created>
                "2026-10-25T17:34:27.184Z"^^<http://www.w3.org/2001/XMLSchema#dateTime>;
        <http://purl.org/dc/terms/creator>
                <https://admin.linkeddatahub.com/acl/agents/01fe43e2-f80e-4312-b37e-86063a80e4f9/#this>;
        <http://purl.org/dc/terms/description>
                "Read and write RDF data from and to LinkedDataHub dataspaces over HTTP";
        <http://purl.org/dc/terms/modified>
                "2026-10-27T12:16:55.352Z"^^<http://www.w3.org/2001/XMLSchema#dateTime>;
        <http://purl.org/dc/terms/title>
                "HTTP API";
        <http://rdfs.org/sioc/ns#has_parent>
                <https://docs.linkeddatahub.com/reference/>;
        <http://www.w3.org/ns/auth/acl#owner>
                <https://admin.linkeddatahub.com/acl/agents/01fe43e2-f80e-4312-b37e-86063a80e4f9/#this> .
