BBC Food Ontology (BBCFood)¶
The BBC Food Ontology (BBCFood) is a lightweight ontology for publishing data about recipes, ingredients, menus, and diets on the web [1]. It provides a structured vocabulary for describing recipes, the foods they are made from, the foods they create, and the diets, menus, seasons, courses, and occasions for which they may be suitable [1].
BBCFood originates from a BBC use case, but is designed to be applicable to a wide range of recipe-data publishing scenarios across the web [1]. By providing linked terms and relationships for food content, the ontology supports semantic annotation, interoperability, data integration, search, and reuse of recipe and culinary information [1].
Example Usage: Annotate a recipe database with BBCFood terms to specify recipes, ingredients, menus, diets, courses, seasons, and suitable occasions, enabling semantic search and integration with food and recipe publishing platforms [1].
Metrics & Statistics¶
Total Nodes |
108 |
Total Edges |
267 |
Root Nodes |
0 |
Leaf Nodes |
63 |
Classes |
17 |
Individuals |
0 |
Properties |
22 |
Maximum Depth |
0 |
Minimum Depth |
0 |
Average Depth |
0.00 |
Depth Variance |
0.00 |
Maximum Breadth |
0 |
Minimum Breadth |
0 |
Average Breadth |
0.00 |
Breadth Variance |
0.00 |
Term Types |
0 |
Taxonomic Relations |
5 |
Non-taxonomic Relations |
0 |
Average Terms per Type |
0.00 |
Usage Example¶
Use the following code to import this ontology programmatically:
from ontolearner.ontology import BBCFood
ontology = BBCFood()
ontology.load("path/to/BBCFood-ontology.ttl")
# 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