I have a 2 arrays that look like this:
vars arrayVars = ["s", "p", "o"]
arrayBindings = [ {
"s": { "type": "uri" , "value": "http://ss.ldm.io/" } ,
"p": { "type": "uri" , "value": "http://xmlns.com/foaf/0.1/name" } ,
"o": { "type": "literal" , "value": "ss" }
} ,
{
"s": { "type": "uri" , "value": "http://ss.ldm.io/" } ,
"p": { "type": "uri" , "value": "http://xmlns.com/foaf/0.1/img" } ,
"o": { "type": "uri" , "value": "http://fbcdn-sphotos-d-a.akamaihd.net/o.jpg" }
},
...
]
I want to be able to navigate the arrayBindings dynamically based on the parameter of the first one, basically:
arrayBindings[0].s.value gets me "http://ss.ldm.io/" but doing it in way like arrayBindings[0].arrayVars[0].value which deosn't work.