The module was not returning results. When I went through, I found that the references to triple[1], etc, were NULL.

Replacing the indexes with the keys ('s', 'p', and 'o') fixed this problem. It could probably also use array_values, but I think it makes sense to use the keys that make clear the subject, predicate, object relationship.

Comments

Anonymous’s picture

StatusFileSize
new2.04 KB
Anonymous’s picture

StatusFileSize
new934 bytes

It turns out that the returned arrays from different services use different keys (DBpedia uses {s, p, o}, while DBLP uses {1, 2, 3})

...so the triple array should be converted to a numerically indexed array using array_values.