Skip to content

Commit 6fd7517

Browse files
committed
solved some conversion issues
1 parent 3cd7c54 commit 6fd7517

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

lib/acl.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ var ACL = require('solid-acl');
2020
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
2121

2222
function match (graph, s, p, o) {
23-
var matches = graph.each(s ? $rdf.sym(s) : undefined, $rdf.sym(p), $rdf.sym(o));
23+
var matches = graph.statementsMatching(s ? $rdf.sym(s) : undefined, $rdf.sym(p), $rdf.sym(o));
2424
console.log(matches)
25-
return matches
25+
return matches.map(function (triple) {
26+
triple.subject.toString = function () {
27+
return triple.subject.uri
28+
}
29+
return triple
30+
})
2631
}
2732

2833
function fetchDocument (ldp, baseUri) {
@@ -53,6 +58,7 @@ function fetchDocument (ldp, baseUri) {
5358
console.log(err)
5459
return cb(err, graph);
5560
}
61+
graph.length = graph.statements.length
5662
return cb(null, graph);
5763
}
5864
], callback);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
"node-uuid": "^1.4.3",
4343
"nomnom": "^1.8.1",
4444
"raw-body": "^2.1.2",
45-
"rdflib": "^0.2.9",
45+
"rdflib": "^0.2.10",
4646
"redis": "^0.12.1",
4747
"request": "^2.58.0",
4848
"response-time": "^2.3.1",
49-
"solid-acl": "^1.0.0",
49+
"solid-acl": "^1.0.1",
5050
"solid-ws": "^0.2.0",
5151
"string": "^3.3.0",
5252
"webid": "^0.3.1"

0 commit comments

Comments
 (0)