Good Relations Language Reference (GoodRelations)

GoodRelations is a widely used ontology for describing products, services, offers, and commercial entities on the Web [1] [3]. It provides a rich vocabulary for modeling commercial information such as offers, business entities, price specifications, availability, payment options, and delivery methods [1] [2]. GoodRelations emphasizes machine-processable, fine-grained descriptions of e-commerce information that support product discovery, comparison, and automated processing on the Web [1] [3]. A key design principle is the distinction between products or services, the offers made for them, and the legal entities that provide them, together with detailed modeling of prices and commercial conditions [1] [2]. The ontology is designed for interoperability and can be used in RDF/OWL as well as embedded in Web pages; it also influenced and was integrated into the schema.org e-commerce model [3] [4]. By providing a shared semantic framework for commercial data, GoodRelations supports e-commerce SEO, catalog integration, offer aggregation, and other Semantic Web and Web data applications [1] [3].

Example Usage: Describe a product offering as a gr:Offering that links to a product or service, includes a gr:UnitPriceSpecification with currency and price information, and connects to a gr:BusinessEntity representing the seller together with relevant payment, delivery, and offer-validity information, so that the offering can be processed consistently by search engines, marketplaces, and other web applications [2] [1].

Metrics & Statistics

Graph Statistics

Total Nodes

677

Total Edges

1816

Root Nodes

18

Leaf Nodes

206

Knowledge Coverage Statistics

Classes

98

Individuals

47

Properties

102

Hierarchical Metrics

Maximum Depth

30

Minimum Depth

0

Average Depth

7.81

Depth Variance

73.22

Breadth Metrics

Maximum Breadth

33

Minimum Breadth

2

Average Breadth

5.77

Breadth Variance

55.21

LLMs4OL Dataset Statistics

Term Types

46

Taxonomic Relations

25

Non-taxonomic Relations

264

Average Terms per Type

5.75

Usage Example

Use the following code to import this ontology programmatically:

from ontolearner.ontology import GoodRelations

ontology = GoodRelations()
ontology.load("path/to/GoodRelations-ontology.owl")

# 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