Skip to content

Commit c902ad8

Browse files
authored
Merge pull request #24 from pdsinterop/feature/storage-header
adds http://www.w3.org/ns/pim/space#Storage type to the storage
2 parents 71f8b04 + db84fb5 commit c902ad8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Server.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ private function handleReadRequest(Response $response, string $path, $contents,
680680
'<http://www.w3.org/ns/ldp#Container>; rel="type"',
681681
'<http://www.w3.org/ns/ldp#BasicContainer>; rel="type"',
682682
'<http://www.w3.org/ns/ldp#Resource>; rel="type"',
683+
'<http://www.w3.org/ns/pim/space#Storage>; rel="type"',
683684
]);
684685
$response = $response->withStatus(200);
685686
} elseif(($filesystem->has($path) === false) && (($path == ".meta") || ($path == "/.meta"))) {
@@ -771,6 +772,9 @@ private function listDirectoryAsTurtle($path)
771772
"ldp:contains" => array()
772773
)
773774
);
775+
if ($path === "/") {
776+
$turtle["<>"]["a"][] = "<http://www.w3.org/ns/pim/space#Storage>";
777+
}
774778

775779
foreach ($listContents as $item) {
776780
switch($item['type']) {

0 commit comments

Comments
 (0)