factppgraph¶
ontopy.factpluspluswrapper.factppgraph
¶
FaCTPPGraph
¶
Class for running the FaCT++ reasoner (using OwlApiInterface) and postprocessing the resulting inferred ontology.
Parameters¶
owlapi.Graph instance
The graph to be inferred.
Source code in ontopy/factpluspluswrapper/factppgraph.py
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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 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 133 134 135 136 137 138 139 140 141 |
|
add_base_annotations()
¶
Copy base annotations from original graph to the inferred graph.
Source code in ontopy/factpluspluswrapper/factppgraph.py
73 74 75 76 77 78 79 80 81 82 83 |
|
asserted_base_iri()
¶
Returns the base iri or the original graph.
Source code in ontopy/factpluspluswrapper/factppgraph.py
55 56 57 |
|
base_iri()
property
writable
¶
Base iri of inferred ontology.
Source code in ontopy/factpluspluswrapper/factppgraph.py
35 36 37 38 39 40 |
|
clean_ancestors()
¶
Remove redundant rdfs:subClassOf relations in inferred graph.
Source code in ontopy/factpluspluswrapper/factppgraph.py
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
|
clean_base()
¶
Remove all relations s? a owl:Ontology
where s?
is not
base_iri
.
Source code in ontopy/factpluspluswrapper/factppgraph.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
|
inferred()
property
¶
The current inferred graph.
Source code in ontopy/factpluspluswrapper/factppgraph.py
28 29 30 31 32 33 |
|
inferred_graph()
¶
Returns the postprocessed inferred graph.
Source code in ontopy/factpluspluswrapper/factppgraph.py
64 65 66 67 68 69 70 71 |
|
namespaces()
property
¶
Namespaces defined in the original graph.
Source code in ontopy/factpluspluswrapper/factppgraph.py
47 48 49 50 51 52 53 |
|
raw_inferred_graph()
¶
Returns the raw non-postprocessed inferred ontology as a rdflib graph.
Source code in ontopy/factpluspluswrapper/factppgraph.py
59 60 61 62 |
|
remove_nothing_is_nothing()
¶
Remove superfluid relation in inferred graph:
owl:Nothing rdfs:subClassOf owl:Nothing
Source code in ontopy/factpluspluswrapper/factppgraph.py
110 111 112 113 114 115 116 117 118 |
|
set_namespace()
¶
Override namespace of inferred graph with the namespace of the original graph.
Source code in ontopy/factpluspluswrapper/factppgraph.py
85 86 87 88 89 90 91 92 93 |
|
FactPPError
¶
Postprocessing error after reasoning with FaCT++.
Source code in ontopy/factpluspluswrapper/factppgraph.py
8 9 |
|