- From: Ron Siemens <rsiemens77@hotmail.com>
- Date: Thu, 30 Apr 2015 08:51:08 -0700
- To: "public-linked-json@w3.org" <public-linked-json@w3.org>
- CC: David Booth <david@dbooth.org>
- Message-ID: <BAY177-W458D57014830A79AC8EE23D7D60@phx.gbl>
Hi David,
It's the same question I asked originally, just with revised JSON now, since Markus pointed out the limitations of JSON-LD with respect to objects with the same naming conventions - ie. using fields with the same name.
I'd just like to have the context, header-linked, that I can use for my below REST interface and data model, which will then let me browse this data structure with an off-the-shelf tool. A tree has a root branch, each branch can have a set of child branches and a set of leaves, a leaf just has some attributes.
Ron
I can query the data model through a REST interface as below.
http://biohost1:3777/v1/growths9/tree/{tree_name}
http://biohost1:3777/v1/growths9/branch/{branch_name}
http://biohost1:3777/v1/growths9/leaf/{leaf_name}
> > tree
> > {
> > "tree_id":"100",
> > "tree_name":"maple",
> > "root_branch":"root_branch"
> > }
> >
> > branch
> > {
> > "branch_id":"200",
> > "branch_name":"root_branch",
> > "branches":[ { "branch_id":"201", "branch_name":"sub1_branch" }, {
> > "branch_id":"202", "branch_name":"sub2_branch" } ],
> > "leaves":[ { "leaf_id":"500", "leaf_name":"leaf1" }, {
> > "leaf_id":"501", "leaf_name":"leaf3" }, { "leaf_id":"502",
> > "leaf_name":"leaf4" } ],
> > "age":"20"
> > }
> >
> > leaf
> > {
> > "leaf_id":"500",
> > "leaf_name":"leaf1",
> > "area":"10",
> > "age":"3"
> > }
> >
Received on Thursday, 30 April 2015 15:51:37 UTC