File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,9 +20,14 @@ var ACL = require('solid-acl');
2020process . env . NODE_TLS_REJECT_UNAUTHORIZED = '0' ;
2121
2222function 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
2833function 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 ) ;
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments