Ontology Pruning
OntologyNormaliser()
Class for ontology normalisation.
Credit
The code of this class originates from the mOWL library,
which utilises the normalisation functionality from the Java library Jcel
.
The normalisation process transforms ontology axioms into normal forms in the Description Logic \(\mathcal{EL}\), including:
- \(C \sqsubseteq D\)
- \(C \sqcap C' \sqsubseteq D\)
- \(C \sqsubseteq \exists r.D\)
- \(\exists r.C \sqsubseteq D\)
where \(C\) and \(C'\) can be named concepts or \(\top\), \(D\) is a named concept or \(\bot\), \(r\) is a role (property).
Attributes:
Name | Type | Description |
---|---|---|
onto |
Ontology
|
The input ontology to be normalised. |
temp_super_class_index |
Dict[OWLCLassExpression, OWLClass]
|
A dictionary in the form of |
Source code in src/deeponto/onto/normalisation.py
88 89 |
|
normalise(ontology)
Performs the \(\mathcal{EL}\) normalisation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ontology |
Ontology
|
An ontology to be normalised. |
required |
Returns:
Type | Description |
---|---|
list[OWLAxiom]
|
A list of normalised TBox axioms. |
Source code in src/deeponto/onto/normalisation.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
|
preprocess_ontology(ontology)
Preprocess the ontology to remove axioms that are not supported by the normalisation process.
Source code in src/deeponto/onto/normalisation.py
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
|
Created: April 19, 2023