<https://docs.linkeddatahub.com/reference/data-model/documents/>
        a       <https://w3id.org/atomgraph/linkeddatahub/document-hierarchy#Item>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1>
                <https://docs.linkeddatahub.com/reference/data-model/documents/#content>;
        <http://purl.org/dc/terms/created>
                "2026-09-29T09:52:35.274Z"^^<http://www.w3.org/2001/XMLSchema#dateTime>;
        <http://purl.org/dc/terms/creator>
                <https://admin.linkeddatahub.com/acl/agents/5ba81960-d511-4a3b-8b9a-cb5bb278dd95/#this>;
        <http://purl.org/dc/terms/description>
                "Document structure and the basic data management actions";
        <http://purl.org/dc/terms/title>
                "Documents";
        <http://rdfs.org/sioc/ns#has_container>
                <https://docs.linkeddatahub.com/reference/data-model/>;
        <http://www.w3.org/ns/auth/acl#owner>
                <https://admin.linkeddatahub.com/acl/agents/5ba81960-d511-4a3b-8b9a-cb5bb278dd95/#this> .

<https://docs.linkeddatahub.com/reference/data-model/documents/#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\">Document structure and the basic data management actions</p>\n    <div>\n        <h2 id=\"hierarchy\">Document hierarchy</h2>\n        <p>The basic structure of resources in a LinkedDataHub <a href=\"../../dataspace/#dataspaces\">dataspace</a> is analogous to a file system, but built using RDF\n            resources and relationships between them instead. There is a hierarchy of <dfn>containers</dfn> (folders),\n            which are collections of <dfn>items</dfn> (files) as well as sub-containers (sub-folders). Both containers\n            (instances of <code>dh:Container</code>) and items (instances of <code>dh:Item</code>) are <dfn>documents</dfn> (instances of <code>foaf:Document</code>). Items cannot contain other documents.</p>\n        <p>The first level of resources in a container is referred to as its <dfn>children</dfn> (of which that container\n            is the <dfn>parent</dfn>), while all levels down the hierarchy are collectively referred to as\n            <dfn>descendants</dfn>. In the <a href=\"https://github.com/AtomGraph/LinkedDataHub-Apps/tree/master/demo/northwind-traders\" target=\"_blank\">Northwind Traders</a> dataspace used in the examples below:</p>\n        <pre>https://localhost:4443/          # the root container\n├── categories/                  # container\n│   ├── 1/                       # item — the Beverages category\n│   └── …\n├── products/                    # container\n│   ├── 1/                       # item — the Chai product\n│   └── …\n└── orders/                      # container</pre>\n        <p>When a user logs in, the dataspace loads its root container (unless a specific URI was requested). From there,\n            users can navigate down the resource hierarchy, starting with children of the <dfn>root container</dfn>. At\n            any moment there is only one <dfn>current document</dfn> per page, on which <a href=\"#management\">management actions</a> can\n            be performed: it can be viewed, edited etc.</p>\n    </div>\n    <div>\n        <h2 id=\"containers\">Containers</h2>\n        <div>\n            <h3 id=\"container-rdf-serialization\">RDF serialization</h3>\n            <p>Document properties such as <code>sioc:has_parent</code>, <code>dct:created</code>, <code>dct:modified</code>, <code>acl:owner</code> are <a href=\"../../http-api/#document-metadata\">automatically managed</a> by LinkedDataHub.</p>\n            <pre>@prefix dh: &lt;https://w3id.org/atomgraph/linkeddatahub/document-hierarchy#&gt; .\n@prefix ldh: &lt;https://w3id.org/atomgraph/linkeddatahub#&gt; .\n@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .\n@prefix dct: &lt;http://purl.org/dc/terms/&gt; .\n@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .\n@prefix sioc: &lt;http://rdfs.org/sioc/ns#&gt; .\n@prefix acl: &lt;http://www.w3.org/ns/auth/acl#&gt; .\n\n&lt;https://localhost:4443/categories/&gt;\n    a       dh:Container ;\n    rdf:_1  &lt;https://localhost:4443/categories/#select-children&gt; ;\n    dct:created \"2025-06-02T19:12:26.533Z\"^^xsd:dateTime ;\n    dct:creator &lt;https://admin.localhost:4443/acl/agents/865c2431-8436-4ae8-b300-2a531a013cd0/#this&gt; ;\n    dct:title \"Categories\" ;\n    sioc:has_parent &lt;https://localhost:4443/&gt; ;\n    acl:owner &lt;https://admin.localhost:4443/acl/agents/865c2431-8436-4ae8-b300-2a531a013cd0/#this&gt; .\n\n&lt;https://localhost:4443/categories/#select-children&gt;\n    a       ldh:Object ;\n    rdf:value ldh:ChildrenView .</pre>\n            <p>The <code>&lt;#select-children&gt;</code> resource is an <code>ldh:Object</code> <a href=\"../blocks/\">content block</a> whose <code>rdf:value</code> <code>ldh:ChildrenView</code> renders the container's children listing.</p>\n            <p class=\"exhibit-links\">Live: <a href=\"https://northwind-traders.demo.linkeddatahub.com/categories/\" target=\"_blank\">/categories/</a> (the demo's version composes <a href=\"https://github.com/AtomGraph/LinkedDataHub-Apps/blob/master/demo/northwind-traders/categories.ttl\" target=\"_blank\">further blocks</a> on top of this shape)</p>\n        </div>\n    </div>\n    <div>\n        <h2 id=\"items\">Items</h2>\n        <div>\n            <h3 id=\"item-rdf-serialization\">RDF serialization</h3>\n            <p>Document properties such as <code>sioc:has_container</code>, <code>dct:created</code>, <code>dct:modified</code>, <code>acl:owner</code> are <a href=\"../../http-api/#document-metadata\">automatically managed</a> by LinkedDataHub.</p>\n            <pre>@prefix dh: &lt;https://w3id.org/atomgraph/linkeddatahub/document-hierarchy#&gt; .\n@prefix dct: &lt;http://purl.org/dc/terms/&gt; .\n@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .\n@prefix sioc: &lt;http://rdfs.org/sioc/ns#&gt; .\n@prefix acl: &lt;http://www.w3.org/ns/auth/acl#&gt; .\n@prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt; .\n@prefix schema: &lt;https://schema.org/&gt; .\n\n&lt;https://localhost:4443/products/1/&gt;\n    a       dh:Item ;\n    dct:created \"2025-06-02T19:49:48.126Z\"^^xsd:dateTime ;\n    dct:creator &lt;https://admin.localhost:4443/acl/agents/865c2431-8436-4ae8-b300-2a531a013cd0/#this&gt; ;\n    dct:title \"Chai\" ;\n    sioc:has_container &lt;https://localhost:4443/products/&gt; ;\n    acl:owner &lt;https://admin.localhost:4443/acl/agents/865c2431-8436-4ae8-b300-2a531a013cd0/#this&gt; ;\n    foaf:primaryTopic &lt;https://localhost:4443/products/1/#this&gt; .\n\n&lt;https://localhost:4443/products/1/#this&gt;\n    a       schema:Product ;\n    schema:name \"Chai\" ;\n    schema:identifier \"1\" ;\n    schema:category &lt;https://localhost:4443/categories/1/#this&gt; ;\n    schema:provider &lt;https://localhost:4443/suppliers/1/#this&gt; .</pre>\n            <p>An item is often <em>about</em> something — here the document <samp>products/1/</samp> describes the Chai product, a non-information\n                resource identified by the <samp>#this</samp> fragment and linked with <code>foaf:primaryTopic</code>.</p>\n            <p class=\"exhibit-links\">Source: <a href=\"https://github.com/AtomGraph/LinkedDataHub-Apps/blob/master/demo/northwind-traders/products/products.rq\" target=\"_blank\">products/products.rq</a> (the mapping that mints it) · Live: <a href=\"https://northwind-traders.demo.linkeddatahub.com/products/1/\" target=\"_blank\">/products/1/</a></p>\n        </div>\n    </div>\n    <div>\n        <h2 id=\"management\">Management</h2>\n        <div class=\"ac-tabs or-horizontal\">\n            <div class=\"ac-tablist sz-md va-line\" role=\"tablist\">\n                <button aria-controls=\"user-interface-pane\" aria-selected=\"true\" class=\"ac-tab is-on\" id=\"user-interface-tab\" role=\"tab\" type=\"button\"><span class=\"ac-tab-lbl\">User interface</span></button>\n                <button aria-controls=\"command-line-interface-pane\" aria-selected=\"false\" class=\"ac-tab\" id=\"command-line-interface-tab\" role=\"tab\" type=\"button\"><span class=\"ac-tab-lbl\">Command line interface</span></button>\n            </div>\n            <div aria-labelledby=\"user-interface-tab\" class=\"ac-tabpanel\" id=\"user-interface-pane\" role=\"tabpanel\">\n            <table>\n                <caption class=\"ac-vh\">Document management actions</caption>\n                <thead>\n                    <tr>\n                        <th scope=\"col\">Action</th>\n                        <th scope=\"col\">Description</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr>\n                        <th scope=\"row\">Create</th>\n                        <td>Create a new child document by clicking the <span class=\"ac-btn in-primary ap-solid sz-md\">Create</span> button. Fill out the form. Click <span class=\"ac-btn in-primary ap-solid sz-sm\">Save</span>.</td>\n                    </tr>\n                    <tr>\n                        <th scope=\"row\">Update</th>\n                        <td>Open the current document editing form by choosing <samp>Edit</samp> in the <a href=\"../../user-interface/#action-bar\">action bar</a>'s <span class=\"ac-btn in-neutral ap-outline sz-md\">Actions</span> dropdown. Make changes. Click <span class=\"ac-btn in-primary ap-solid sz-sm\">Save</span>.</td>\n                    </tr>\n                    <tr>\n                        <th scope=\"row\">Delete</th>\n                        <td>Delete the current document by choosing <samp>Delete</samp> in the <a href=\"../../user-interface/#action-bar\">action bar</a>'s <span class=\"ac-btn in-neutral ap-outline sz-md\">Actions</span> dropdown.</td>\n                    </tr>\n                </tbody>\n            </table>\n            </div>\n            <div aria-labelledby=\"command-line-interface-tab\" class=\"ac-tabpanel\" hidden=\"hidden\" id=\"command-line-interface-pane\" role=\"tabpanel\">\n            <table>\n                <caption class=\"ac-vh\">Document actions and their CLI commands</caption>\n                <thead>\n                    <tr>\n                        <th scope=\"col\">Action</th>\n                        <th scope=\"col\">CLI command</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr>\n                        <th scope=\"row\">Create container</th>\n                        <td><a href=\"../../command-line-interface/#commands\"><samp>ldh create container</samp></a></td>\n                    </tr>\n                    <tr>\n                        <th scope=\"row\">Create item</th>\n                        <td><a href=\"../../command-line-interface/#commands\"><samp>ldh create item</samp></a></td>\n                    </tr>\n                    <tr>\n                        <th scope=\"row\">Update</th>\n                        <td><a href=\"../../command-line-interface/#commands\"><samp>ldh put</samp></a></td>\n                    </tr>\n                    <tr>\n                        <th scope=\"row\">Delete</th>\n                        <td><a href=\"../../command-line-interface/#commands\"><samp>ldh delete</samp></a></td>\n                    </tr>\n                </tbody>\n            </table>\n            <p>For example, creating the <samp>categories/</samp> container (with the <a href=\"../../command-line-interface/#environment-variables\"><samp>LDH_*</samp> environment variables</a> supplying the certificate and base URI):</p>\n            <pre>ldh create container \\\n  --parent \"$LDH_BASE\" \\\n  --title \"Categories\" \\\n  --slug categories</pre>\n            <p>The command prints the created document's URL — <samp>https://localhost:4443/categories/</samp>.</p>\n            </div>\n        </div>\n    </div>\n    <p class=\"ldh-body-lg\">To create documents step-by-step, follow the <a href=\"../../../user-guide/create-data/create-documents/\">Create documents</a> guide</p>\n</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
