Skip to content
GCHQDeveloper81 edited this page Jul 16, 2024 · 1 revision

Friend of a friend, more commonly abbreviated to FOAF, exists to describe people and their relationships to one another, allowing it to be used to define social networks in a distributed fashion. The vocab allows you to express details about a person such as their name, email address and descriptions of online accounts. Despite being one of the more well known vocabs within the semantic web ecosystem, it is fairly limited and has never been widely deployed on the internet.

Some of the terms within the vocabulary have also become outdated, such as aimChatID which allows you to assert the AIM Chat ID for a particular user despite that service no longer being operational.

Example

The following example describes two people and their relationship to one another.

@prefix : <http://www.example.com/>
@prefix foaf: <http://xmlns.com/foaf/0.1/>

:Bob a foaf:Person ;
    foaf:name "Bob" ;
    foaf:mbox "[email protected]" .

:Alice a foaf:Person ;
    foaf:name "Alice" ;
    foaf:mbox "[email protected]" .

:Alice foaf:knows :Bob .