Friend of a Friend (FOAF)¶
FOAF (Friend of a Friend) is a widely adopted ontology for describing people, their relationships, and the information that links them on the web. It provides a standardized vocabulary for representing personal profiles, social connections, organizations, projects, and online accounts. FOAF enables the creation of machine-readable social networks, supporting interoperability between social platforms, personal websites, and linked data applications. The ontology is designed for extensibility, allowing integration with other vocabularies and domain-specific ontologies. FOAF is used in digital identity management, social media analytics, and knowledge graph construction to enable semantic search, data integration, and discovery of social connections. By providing a common framework, FOAF facilitates the linking of people and information across the decentralized web.
Example Usage: Annotate a personal website or social network profile with FOAF terms to describe a person’s name, email, homepage, friends, and memberships in organizations, enabling semantic search and cross-platform social data integration.
Metrics & Statistics¶
Total Nodes |
168 |
Total Edges |
504 |
Root Nodes |
5 |
Leaf Nodes |
87 |
Classes |
15 |
Individuals |
13 |
Properties |
60 |
Maximum Depth |
1 |
Minimum Depth |
0 |
Average Depth |
0.17 |
Depth Variance |
0.14 |
Maximum Breadth |
5 |
Minimum Breadth |
1 |
Average Breadth |
3.00 |
Breadth Variance |
4.00 |
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