镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Rename .child to .node or to .subject? #39

Open

Description

@nicola

Is this a good idea?

Activity

  1. changed the title [-]Rename .child to .node?[/-] [+]Rename .child to .node or to .subject?[/+] on Apr 19, 2016
  2. csarven commented on Apr 19, 2016

    @csarven

    .subject is more intuitive. I currently use or hint at something like var subject = i.child(iri)

  3. nicola commented on Apr 19, 2016

    @nicola
    CollaboratorAuthor
  4. bergos commented on Apr 19, 2016

    @bergos
    Member

    -1 for .subject

    Would be perfect if SimpleRDF would have graphs in focus, but SimpleRDF is a JSON/JS view on graph data. So let's avoid RDFish method names.

    +0.5 for .node

    Still not perfect, but closer to JSON/JS.

    Maybe if we try to find a description for this method, we find a good name:

    Creates a new SimpleRDF object/instance with a new IRI (or blank node), sharing the same context and graph. This method must be used to create new objects for deep structures in a single graph.

    .object I think lower case object isn't reserved, but still dangerous?
    .instance Looks like a getter for a singleton
    .deep/.deepObject looks a little bit strange ;-)
    .nested looks also a little bit strange ;-)
    .create
    ...
    other ideas?

  5. sylvainlb commented on Aug 29, 2016

    @sylvainlb

    child definitely is confusing to me. I would go for createObject or addObject, on the assumption that I really understood what it does.

  6. csarven commented on Aug 29, 2016

    @csarven

    This is about setting a new scope whereby input value for the subject in the graph. So, along the lines of scope or objectScope might work.

  7. nicola commented on Sep 6, 2016

    @nicola
    CollaboratorAuthor

    .reset ?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions