Ontology Projection
OntologyProjector(bidirectional_taxonomy=False, only_taxonomy=False, include_literals=False)
Class for ontology projection -- transforming ontology axioms into triples.
Credit
The code of this class originates from the mOWL library.
Attributes:
Name | Type | Description |
---|---|---|
bidirectional_taxonomy |
bool
|
If |
only_taxonomy |
bool
|
If |
include_literals |
bool
|
If |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bidirectional_taxonomy |
bool
|
description. If |
False
|
only_taxonomy |
bool
|
If |
False
|
include_literals |
bool
|
description. If |
False
|
Source code in src/deeponto/onto/projection.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
project(ontology)
The projection algorithm implemented in OWL2Vec*.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ontology |
Ontology
|
An ontology to be processed. |
required |
Returns:
Type | Description |
---|---|
set
|
Set of triples after projection. |
Source code in src/deeponto/onto/projection.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
|
Created: June 25, 2023