Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

The term "Container" is now overloaded and underspecified #37

Open

Description

@sandhawke

Some related problems:

Solid "containers" add many features to ldp:BasicContainers, most obviously having the URLs related to containment. We've talked about proposing ldp:HierarchicalContainer as a flag for this. There's also globbing, SPARQL, and probably several other features added. Within the protocol we need names for these features, or collections of these features, so we can detect them.

In NoSQL databases like Mongo, I think these things are usually called Collections, not Containers.

The term "container" has recently become strongly attached to OS-level virtualization (LXC, vagrant, docker, sandstorm). I've heard people confused by solid containers because they think we're talking about these.

Suggestion: in the documentation and toolkits, call them Folders. Maybe in the HTTP headers, too, when we get there.

Activity

  1. dmitrizagidulin commented on Jan 23, 2016

    @dmitrizagidulin
    Member

    Agreed here. I like Folders more than Containers, but folders, too, is quite overloaded (in that, it suggests a filesystem-specific implementation). What if we called them Collections, straight up?

  2. sandhawke commented on Jan 23, 2016

    @sandhawke
    Author

    To my ear, Collections doesn't have the strictly-hierarchical connotation of Folders, and that strict hierarchy is the key point.

    I don't get the filesystem connotation of Folders. To me I just think of the icon. If we called them Directories, which is also tempting, that would be a bit too close to the filesystem. (Again, to my ear, and my reading of Wikipedia)

    Slightly related, I'm trying to imagine if the root of a pod presented the public a display of the top level contents. Kind of like a desktop, a file browser, and a nice website all at once. Like you walk into a store, and you see the things in the store. A radical idea, but potentially useful. Trying to get rid of index.html.

  3. dmitrizagidulin commented on Jan 23, 2016

    @dmitrizagidulin
    Member

    Is the hierarchical nature of Containers a central point of them? If so, I didn't realize that. (And am ok with Folders).

  4. sandhawke commented on Jan 23, 2016

    @sandhawke
    Author

    There are a lot of details I don't remember offhand, but I remember hierarchy being at the heart of most of the disagreements between Tim's notion of how this should look and the LDP working group's notions. At some point we need to enumerate all these, maybe soon.

  5. csarven commented on Jan 24, 2016

    @csarven
    Member

    If containers is to folders, is resources to papers? Sorry, a strong -1 from me for "folders".

    I can't think of a decent replacement for Container... Would "Set" convey the same idea as a Container? Sets can be ordered or not and may contain other sets...

  6. dmitrizagidulin commented on Jan 24, 2016

    @dmitrizagidulin
    Member

    Why papers? You have folders on your local disk, on your OS, you dont call the files 'papers'.

  7. sandhawke commented on Jan 24, 2016

    @sandhawke
    Author

    @csarven Not papers, no, but... as it turns out... I do call them pages. In general, I use the term "page" (or "webpage") instead of "resource", as do a lot of other people.

  8. csarven commented on Jan 24, 2016

    @csarven
    Member

    "folders", "papers", "pages" are all artefacts as we imitated the past. Can we move forward? :) This is no different than using icons like the pencil, or the floppy disk to convey certain operations which really don't have much to do with the medium in which they are in.

    [Please excuse me, but Amy and I still have a "paper" to "write" :) ]

  9. sandhawke commented on Jan 24, 2016

    @sandhawke
    Author

    @csarven :-) Yeah, we'll talk about this when that's done.

  10. sandhawke commented on Jan 25, 2016

    @sandhawke
    Author

    To give more evidence that we need to change away from "containers", here's email I just got, announcing a new meetup group:

    A group for people interested in talking about and hacking on Kubernetes, Google’s solution for scheduling and orchestrating containers at scale. We’re excited about microservices, containers, the distributions that run them and the solutions that deploy, manage, and extend them. Any skill level is welcome; we’re all new to Kubernetes and we want to create an open, welcoming environment for other Kubernauts....

  11. bblfish commented on Jan 26, 2016

    @bblfish

    Please check LDP issue 50 for further reasons for having what you wish to call Folders, which I think is actually a good name (better than iContainer I suggested there).

  12. bblfish commented on Jan 26, 2016

    @bblfish

    I'd suggest:

    :Folder rdfs:subClassOf ldp:Container .

    A Folder is just a restriction on an ldp:Container to make it work hierarchically and the way a folder on the file system works.

    Are there useful ldp:Container's that are not :Folders ? Yes: for example an ldp:Container that creates subdomains. That is actually why the restrictions for ldp:Containers were not made to be stricter. I have a container that allows a POST to http://example.com/ to create http://joe.example.com/.

  13. csarven commented on Jan 26, 2016

    @csarven
    Member

    @sandhawke Can you clarify the intention behind "folder"? Is it intended to include virtual folders? Or is the intention more like a directory in a filesystem? If it is more like a directory, I suggest sticking to well.. "directory", which is what we currently employ (although not part of the vocab) posix:Directory.

    [Aside: every time I hear/read the term "folder", I associate it with the icon that looks like a folder IRL. maybe that's a good/bad thing... and perhaps just me]

  14. deiu commented on Jan 26, 2016

    @deiu

    +1 to posix:Directory (which we've used for a while). We need to check the semantics though to avoid having it mean a real directory on a file system.

  15. sandhawke commented on Jan 26, 2016

    @sandhawke
    Author

    There are perhaps two separate issues here, really.

    1. What exactly are the properties of this thing? Arguably, there might be more than one "thing" here, but let's try for one.
    2. What is a good name for this thing? Arguably, there might be multiple names, such as in the HTTP headers, in the libraries, and in the user interfaces. I think if we can find one that's acceptable in all these contexts that would be tremendously valuable.

    I don't know all the details for #1 off the top of my head, but basically they're like ldp:Container with the addition of using hierarchical naming. That is:

    • being "in" this thing is (mostly) equivalent to having a URL that adds one more path segment to the URL of this thing. If you PUT with such a URL, where there's no member, you just added a member. If you delete the thing, you delete all its members. (I say "mostly" because I think acl and metadata resources don't follow this rule.)
    • they're recursive. If the thing is called $x/ and you PUT to $x/a/b/c the server should create $x/a/ and $x/a/b/ before creating $x/a/b/c. Similarly, if you delete $x/ it MUST delete all resources with URLs starting $x/
    • they allow globbing, as a very simple query, which is easy because of the hierarchical naming

    This sounds a lot like a directory in a filesystem to those of us who type cd and mkdir -p and rm -rf a lot, but I note that more and more consumer facing software has decided to call these things folders instead of directories.

    I'm not sure about posix:Directory issues.

    Is there any observable difference between a "virtual folder" and a folder where a robot is helping add/remove things based on their properties?

  16. sandhawke commented on Jan 26, 2016

    @sandhawke
    Author

    @bblfish re ldp issue 50, I agree, yeah

  17. dmitrizagidulin commented on Jan 26, 2016

    @dmitrizagidulin
    Member

    What exactly are the properties of this thing?

    The most important property of this thing is that it contains Resources :)
    Which is why I think Collection is an appropriate term. (The hierarchical thing is just convenient namespacing -- incidental).

  18. bblfish commented on Jan 26, 2016

    @bblfish

    @dmitrizagidulin that's the definition of ldp:Container.
    What we are looking here is for something with more specific properties than ldp:Container. One does not exclude the other.

  19. dmitrizagidulin commented on Jan 26, 2016

    @dmitrizagidulin
    Member

    What we're looking for is a replacement for the term 'Container'. (Since that's semantically over-loaded in most developers' minds (to mean Docker etc)).

    Hence - 'Collection'. Since that's what we're using these containers to implement -- collections of resources.

  20. sandhawke commented on Jan 26, 2016

    @sandhawke
    Author

    At the risk of repeating myself, there are two distinct problems here:

    1. The term "container" used been commandeered by others.
    2. We're not exactly using ldp:BasicContainer. We need to both specify what we're actually providing (since it's not just an LDP "basic container") and give it a name for use in documentation and in http headers. The main difference from ldp, I think, is hierarchical names.

    I should say that the LDP working group basically tossed a coin to decide between "container" and "collection". And also RDF has it's own notion of Containers and Collections.

    HierarchicalCollection would be nice if it were shorter.

  21. bblfish commented on Jan 27, 2016

    @bblfish

    I'd say we have consensus on needing to create a new subclass of ldp:Container that gives us hierarchical containers that fit the URL spec (as specified ldp issue 50). What to call it is still open.
    Do we agree? If so we can then next debate and vote for the name.

  22. cristianvasquez commented on Nov 14, 2018

    @cristianvasquez

    Hi,

    I'm looking for a definition of what is a Container, perhaps is useful for my use case.

    In my use case I'm trying to figure out how to define groups of resources, or resource-spaces.
    The data itself can reside in a file system, a triple-store, quadstore etc.

    When the implementation is file-based I can use the normal GRUB patterns to define the groups of resources

    /people/alice/music/drums.ttl (resource-space: drum music of alice)
    /people/*/music/*  (resource-space: all the music of all people)
    

    When the implementation is a triplestore, I can define this space as a SPARQL query

    When the implementation is a quadstore, I can define this space as sets of named graphs

    There is something like this in the specs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions