GivenSharesIndexRDF
RDF wrapper for {podRoot}/solidshare/shares/given_shares.ttl.
Each share is a reified record node so it can carry a creation timestamp:
<#share-…>
rdf:type solidshare:Share ;
solidshare:resource <resourceUri> ;
solidshare:receiver <receiver> ;
acl:mode acl:Read , acl:Append ;
dcterms:created "2026-06-04T12:00:00Z"^^xsd:dateTime .One record holds every mode granted to a (receiver, resourceUri) pair, so the pair carries a single timestamp. Group receivers keep the marker triple <receiver> rdf:type vcard:Group (shared with the legacy format) to disambiguate a group URI from a WebID.
Legacy reads. Files written by earlier versions stored a share as a bare <receiver> <acl:Read|Append|Write> <resourceUri> triple with no node and no time. getShares still surfaces those (with createdAt = null) so old indexes and ACL-rebuilt indexes keep working; the writer migrates a pair to node form the next time it is touched.
The reflective constructor required by the Solid resource parser is provided.
Constructors
Types
One reified solidshare:Share record. subject is the node IRI (the writer targets patch deletes at it); modes are every acl:mode asserted on it; createdAt is the record's dcterms:created, or null if absent. resourceType / resourceName are the record's solidshare:resourceType IRI and dcterms:title, both null on untyped (file/folder) records.
Functions
Returns the object values of every triple with the given predicate, across all subjects.
Returns the object value of the first triple with the given predicate, or null if none.
Returns a snapshot copy of all triples held by this resource.
The media type of the resource representation (the value of its Content-Type).
The creation time in epoch milliseconds, from this resource's own dcterms:created (then stat:ctime) triple, or null when neither is present.
Returns the resource representation as a byte stream.
The HTTP headers associated with this resource (empty when constructed locally).
The URI that identifies this resource on the pod.
The last-modified time in epoch milliseconds. Prefers this resource's own dcterms:modified (then stat:mtime) triple and falls back to the Last-Modified header. null when none is present.
Shares stored in the legacy bare-triple form <receiver> <acl:mode> <resourceUri> (no record node, createdAt = null).
The reified share records (node form only — excludes any legacy flat rows).
Every share, one row per (receiver, resourceUri) at the strongest mode: reified records first, then any legacy rows for pairs they don't cover. The several implied acl:modes a grant writes (e.g. Read+Append for "Add") are folded into the single logical level via collapseByReceiver, so a receiver never appears more than once per resource.