Skip to content

Commit cbe59f4

Browse files
Profile
1 parent 277c451 commit cbe59f4

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Documentation/conventions.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
* @prefix ab: <http://www.w3.org/ns/pim/ab#>.
44
* @prefix acl: <http://www.w3.org/ns/auth/acl#>.
55
* @prefix dc: <http://purl.org/dc/elements/1.1/>.
6+
* @prefix foaf: <http://xmlns.com/foaf/0.1/>.
7+
* @prefix ldp: <http://www.w3.org/ns/ldp#>.
8+
* @prefix pim: <http://www.w3.org/ns/pim/space#>.
9+
* @prefix schema: <http://schema.org/>.
10+
* @prefix solid: <http://www.w3.org/ns/solid/terms#>.
611
* @prefix vcard: <http://www.w3.org/2006/vcard/ns#>.
712
* @prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
813

@@ -28,3 +33,29 @@ To indicate that addressbook addressBook.ttl has a group called "Colleagues", ad
2833
* <addressBook.ttl#this> vcard:includesGroup colleagues.ttl#this (NB: needs to be in groupIndex.ttl)
2934
* <colleagues.ttl#this> a vcard:Group
3035
* <colleagues.ttl#this> vcard:fn "Colleagues"
36+
37+
## Profile
38+
### Profile document
39+
To add information to your webid profile, you can use the following triples. Suppose your webid is https://example.com/profile/card#me, then your profile document is https://example.com/profile/card (without the '#me'). Add the following triples to it:
40+
* <https://example.com/profile/card> a foaf:PersonalProfileDocument
41+
* <https://example.com/profile/card> foaf:maker <https://example.com/profile/card#me>
42+
* <https://example.com/profile/card> foaf:primaryTopic <https://example.com/profile/card#me>
43+
44+
### You as a person
45+
Now say your name is "John Doe", then add these triples to your profile document to publish your identity as a person:
46+
* <https://example.com/profile/card#me> a foaf:Person
47+
* <https://example.com/profile/card#me> a schema:Person
48+
* <https://example.com/profile/card#me> foaf:name "John Doe"
49+
50+
### Linking to your pod
51+
Say your pod is at https://pod.example.com, with the LDN inbox at https://pod.example.com/inbox/, to link from your identity to your pod:
52+
* <https://example.com/profile/card#me> solid:account </>
53+
* <https://example.com/profile/card#me> pim:storage </>
54+
* <https://example.com/profile/card#me> ldp:inbox </inbox/>
55+
56+
### Preferences
57+
To publish some of your generic preferences to apps, use:
58+
* <https://example.com/profile/card#me> pim:preferencesFile </settings/prefs.ttl>
59+
* <https://example.com/profile/card#me> solid:publicTypeIndex </settings/publicTypeIndex.ttl>
60+
* <https://example.com/profile/card#me> solid:privateTypeIndex </settings/privateTypeIndex.ttl>
61+

0 commit comments

Comments
 (0)