# Resource-centric layout. This separates resources into separate named # graphs and follows the graph-per-resource pattern # (http://patterns.dataincubator.org/book/graph-per-resource.html). This aligns # quite well with the resource-centrism of LDP and of the SPARQL Graph Store # Protocol (https://www.w3.org/TR/sparql11-http-rdf-update/) which should be # used by the software implementation to minimize data structure translation. # # A graph identified by the resource UID is the current state of that resource. # Other resources (graphs) can be present representing various previous states # of the resource and are identified by the resource UUID with a `:` (colon) # and the version UID appended. # E.g. a resource with a UID of `a/b/c` will be internally stored within a # named graph `info:fcstate/a/b/c`; the subject will be `info:fcres/a/b/c`; # a previous version could be `info:fcstate/a/b/c:version1` and the publicly # exposed URL could be http://webroot.org/ldp/a/b/c`. # # The relationships between resources and thir versions and other metadata not # meant to be directly exposed by the LDP API are in one "metadata" graph. PREFIX dc: PREFIX fcrepo: PREFIX fcsystem: PREFIX foaf: PREFIX ldp: PREFIX ns: PREFIX xsd: # Metadata graph. This is a companion of the content graph. fcsystem:meta { a fcrepo:Resource ; # This may be redundant if we use naming conventions, but still good LD practice. fcsystem:currentStateOf ; fcsystem:hasVersion , , ; . a fcrepo:Version ; fcrepo:created "2017-12-24T20:57:51.952535+00:00"^^xsd:dateTime . a fcrepo:Version ; fcrepo:created "2017-12-25T20:57:51.952535+00:00"^^xsd:dateTime . a fcrepo:Version ; fcrepo:created "2017-12-26T20:57:51.952535+00:00"^^xsd:dateTime . # Pairtree information not passed to the client but used to mimic # hierarchical structures. a fcrepo:Pairtree ; fcsystem:contains ; . a fcrepo:Pairtree ; fcsystem:contains ; . } # System root. It cannot be deleted. fcsystem:root { fcsystem:root a fcrepo:RepositoryRoot , fcrepo:Resource , fcrepo:Container , ldp:Container , ldp:BasicContainer , ldp:RDFSource ; . } # Resource graph. These statements are returned to the client. # Note that "fragments" or hash URIs are stored within the same graph. { a ns:Book ; fcrepo:hasParent ; dc:title "Moby Dick" ; dc:creator "Herman Melville" ; dc:subject "Fishing" ; . a ns:BookChapter ; dc:title "Loomings." ; . a ns:BookChapter ; dc:title "The Carpet-Bag." ; . } # Previous states (versions) of a resource. { a ns:Book ; fcrepo:hasParent ; dc:title "Moby Dick" ; . } { a ns:Book ; fcrepo:hasParent ; dc:title "Moby Dick" ; dc:creator "Herman Melvil" ; . } { a ns:Book ; fcrepo:hasParent ; dc:title "Moby Dick" ; dc:creator "Herman Melville" ; . } # Only the direct link to the LDP-contained resource is explicitly asserted. { a ldp:Container , ldp:BasicContainer , ldp:Resource , ldp:RDFSSource ; ldp:contains . }