File size: 1,808 Bytes
bd362e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Friend of a Friend (FOAF)
========================================================================================================================

Overview
--------
FOAF is a project devoted to linking people and information using the Web.
Regardless of whether information is in people's heads, in physical or digital documents,
or in the form of factual data, it can be linked.

:Domain: Social Sciences
:Category: Social
:Current Version: 0.1
:Last Updated: 14 January 2014
:Creator: Dan Brickley, Libby Miller
:License: Creative Commons
:Format: RDF
:Download: `Friend of a Friend (FOAF) Homepage <http://xmlns.com/foaf/0.1/>`_

Graph Metrics
-------------
    - **Total Nodes**: 168
    - **Total Edges**: 504
    - **Root Nodes**: 5
    - **Leaf Nodes**: 87

Knowledge coverage
------------------
    - 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

Dataset Statistics
------------------
Generated Benchmarks:
    - **Term Types**: 13
    - **Taxonomic Relations**: 11
    - **Non-taxonomic Relations**: 21
    - **Average Terms per Type**: 13.00

Usage Example
-------------
.. code-block:: python

    from ontolearner.ontology import FOAF

    # Initialize and load ontology
    ontology = FOAF()
    ontology.load("path/to/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