Friend of a Friend (FOAF)

FOAF (Friend of a Friend) is a widely adopted RDF vocabulary for describing people, their relationships, and the information that links them on the Web [1]. It provides a standardized vocabulary for representing personal profiles, social connections, organizations, projects, documents, online accounts, and other related entities [1]. FOAF enables the creation of machine-readable social networks, supporting interoperability between personal websites, social platforms, linked data applications, and knowledge graphs [1]. The vocabulary is designed for extensibility and can be used together with other RDF vocabularies and domain-specific ontologies to describe richer social and identity-related data [1]. FOAF is used in digital identity management, social data publishing, semantic search, and knowledge graph construction to support data integration and discovery of social connections [1] . By providing a common framework for describing people, agents, and their relationships, FOAF facilitates linking people and information across the decentralized Web [1].

Example Usage: Annotate a personal website or social network profile with FOAF terms to describe a person’s name, email, homepage, friends, online accounts, and memberships in organizations, enabling semantic search and cross-platform social data integration [1] .

Metrics & Statistics

Graph Statistics

Total Nodes

168

Total Edges

504

Root Nodes

5

Leaf Nodes

87

Knowledge Coverage Statistics

Classes

15

Individuals

13

Properties

60

Hierarchical Metrics

Maximum Depth

1

Minimum Depth

0

Average Depth

0.17

Depth Variance

0.14

Breadth Metrics

Maximum Breadth

5

Minimum Breadth

1

Average Breadth

3.00

Breadth Variance

4.00

LLMs4OL Dataset Statistics

Term Types

13

Taxonomic Relations

11

Non-taxonomic Relations

21

Average Terms per Type

13.00

Usage Example

Use the following code to import this ontology programmatically:

from ontolearner.ontology import FOAF

ontology = FOAF()
ontology.load("path/to/FOAF-ontology.rdf")

# Extract datasets
data = ontology.extract()

# Access specific relations
term_types = data.term_typings
taxonomic_relations = data.type_taxonomies
non_taxonomic_relations = data.type_non_taxonomic_relations

References