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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | rdfproxy-arrayref-650368-2.patch | 934 bytes | linclark |
| #1 | rdfproxy-arrayref-650368-1.patch | 2.04 KB | linclark |
Comments
Comment #1
Anonymous (not verified) commentedComment #2
Anonymous (not verified) commentedIt 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.