You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Activity
[-]Rename .child to .node?[/-][+]Rename .child to .node or to .subject?[/+]csarven commentedon Apr 19, 2016
.subjectis more intuitive. I currently use or hint at something likevar subject = i.child(iri)nicola commentedon Apr 19, 2016
cc @bergos
bergos commentedon Apr 19, 2016
-1 for
.subjectWould 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
.nodeStill not perfect, but closer to JSON/JS.
Maybe if we try to find a description for this method, we find a good name:
.objectI think lower case object isn't reserved, but still dangerous?.instanceLooks like a getter for a singleton.deep/.deepObjectlooks a little bit strange ;-).nestedlooks also a little bit strange ;-).create...
other ideas?
sylvainlb commentedon Aug 29, 2016
childdefinitely is confusing to me. I would go forcreateObjectoraddObject, on the assumption that I really understood what it does.csarven commentedon Aug 29, 2016
This is about setting a new scope whereby input value for the subject in the graph. So, along the lines of
scopeorobjectScopemight work.nicola commentedon Sep 6, 2016
.reset?