Skip to content

Commit 0334087

Browse files
author
deiu
committed
Add types for the container that is listed
1 parent 0c0de10 commit 0334087

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎lib/ldp.js‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,20 @@ LDP.prototype.listContainer = function (filename, uri, containerData, callback)
276276
ldp.stat(filename, function(err, containerStats) {
277277
if (!err) {
278278
addStats(resourceGraph, '', containerStats);
279+
resourceGraph.add(
280+
resourceGraph.sym(''),
281+
ns.rdf('type'),
282+
ns.ldp('BasicContainer'));
283+
284+
resourceGraph.add(
285+
resourceGraph.sym(''),
286+
ns.rdf('type'),
287+
ns.ldp('Container'));
288+
289+
resourceGraph.add(
290+
resourceGraph.sym(''),
291+
ns.rdf('type'),
292+
ns.stat('Directory'));
279293
}
280294
next();
281295
});

0 commit comments

Comments
 (0)