Skip to content

Commit 717deb9

Browse files
fix solid profile doc
1 parent 5d10927 commit 717deb9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/Controller/Profile/CardController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ final public function __invoke(ServerRequestInterface $request, array $args): Re
4848
$contentType = $this->getContentTypeForFormat($format);
4949

5050
/** @noinspection PhpUndefinedMethodInspection */ // Method `readRdf` is defined by plugin
51-
$content = $filesystem->readRdf($filePath, $format);
51+
$url = $request->getServerParams()["REQUEST_URI"];
52+
$content = $filesystem->readRdf($filePath, $format, $url);
5253

5354
return $this->createTextResponse($content)->withHeader('Content-Type', $contentType);
5455
}

tests/fixtures/foaf.rdf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@
33
xmlns:foaf="http://xmlns.com/foaf/0.1/"
44
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
55
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
6+
xmlns:ldp="http://www.w3.org/ns/ldp#"
7+
xmlns:solid="http://www.w3.org/ns/solid/terms#"
8+
xmlns:space="http://www.w3.org/ns/pim/space#"
69
>
710
<foaf:Person rdf:ID="me">
11+
<ldp:inbox rdf:resource="/inbox/"/>
12+
<solid:account rdf:resource="/"/>
13+
<solid:privateTypeIndex rdf:resource="/settings/privateTypeIndex.ttl"/>
14+
<solid:publicTypeIndex rdf:resource="/settings/publicTypeIndex.ttl"/>
15+
<space:preferencesFile rdf:resource="/settings/preferencesFile.ttl"/>
816
<foaf:depiction rdf:resource="https://www.gravatar.com/avatar/f8d7c4a4899736c59ec1e40c7021d477?s=1024"/>
917
<foaf:family_name>Peachey</foaf:family_name>
1018
<foaf:givenname>Ben</foaf:givenname>

0 commit comments

Comments
 (0)