@@ -52,46 +52,47 @@ public interface OntologyFactory extends OWLOntologyFactory, HasAdapter {
52
52
53
53
/**
54
54
* Adds the specified ontology into the manager and performs some final tuning actions.
55
+ *
55
56
* @param manager {@link OntologyManager} the ontology manager, which will hold the {@code model}, not {@code null}
56
- * @param model {@link OntologyModel } that has been created by the {@link #getBuilder() Builder}, not {@code null}
57
+ * @param model {@link Ontology } that has been created by the {@link #getBuilder() Builder}, not {@code null}
57
58
* @since 1.4.2
58
59
*/
59
- void includeOntology (OntologyManager manager , OntologyModel model );
60
+ void includeOntology (OntologyManager manager , Ontology model );
60
61
61
62
/**
62
- * Creates a fresh {@link OntologyModel Ontology Model} inside the manager
63
+ * Creates a fresh {@link Ontology Ontology Model} inside the manager
63
64
* with the given ID and default configuration.
64
65
*
65
66
* @param manager {@link OntologyManager} the ontology manager to set, not {@code null}
66
67
* @param id {@link ID} the ID of the ontology to create, not {@code null}
67
- * @return {@link OntologyModel }
68
+ * @return {@link Ontology }
68
69
* @throws OntApiException if something goes wrong
69
70
* @since 1.3.0
70
71
*/
71
- default OntologyModel createOntology (OntologyManager manager , ID id ) throws OntApiException {
72
- OntologyModel res = getBuilder ().createOntology (id , manager , manager .getOntologyLoaderConfiguration ());
72
+ default Ontology createOntology (OntologyManager manager , ID id ) throws OntApiException {
73
+ Ontology res = getBuilder ().createOntology (id , manager , manager .getOntologyLoaderConfiguration ());
73
74
includeOntology (manager , res );
74
75
return res ;
75
76
}
76
77
77
78
/**
78
79
* Reads a graph from the given document source and stores
79
- * it as a ready to use {@link OntologyModel Ontology Model} in the specified manager.
80
+ * it as a ready to use {@link Ontology Ontology Model} in the specified manager.
80
81
* {@inheritDoc}
81
82
*
82
83
* @param manager {@link OntologyManager} manager the ontology manager to set, not {@code null}
83
84
* @param source {@link OWLOntologyDocumentSource} the document source that provides the means
84
85
* of getting a representation of a document, not {@code null}
85
86
* @param config {@link OntLoaderConfiguration} settings to manage loading process, not {@code null}
86
- * @return {@link OntologyModel }
87
+ * @return {@link Ontology }
87
88
* @throws OWLOntologyCreationException if the ontology could not be created due to some I/O problem,
88
89
* broken source or incompatible state of manager
89
90
* @throws OntApiException if something else goes wrong
90
91
* @since 1.3.0
91
92
*/
92
- default OntologyModel loadOntology (OntologyManager manager ,
93
- OWLOntologyDocumentSource source ,
94
- OntLoaderConfiguration config ) throws OWLOntologyCreationException , OntApiException {
93
+ default Ontology loadOntology (OntologyManager manager ,
94
+ OWLOntologyDocumentSource source ,
95
+ OntLoaderConfiguration config ) throws OWLOntologyCreationException , OntApiException {
95
96
return getLoader ().loadOntology (getBuilder (), manager , source , config );
96
97
}
97
98
@@ -131,14 +132,14 @@ default boolean canAttemptLoading(OWLOntologyDocumentSource source) {
131
132
* @param id {@link OWLOntologyID} the ID of the ontology to create, not {@code null}
132
133
* @param documentIRI unused parameter
133
134
* @param handler unused parameter
134
- * @return {@link OntologyModel } the newly created ontology
135
+ * @return {@link Ontology } the newly created ontology
135
136
* @throws OntApiException if something goes wrong
136
137
*/
137
138
@ Override
138
- default OntologyModel createOWLOntology (OWLOntologyManager manager ,
139
- OWLOntologyID id ,
140
- IRI documentIRI ,
141
- OWLOntologyCreationHandler handler ) {
139
+ default Ontology createOWLOntology (OWLOntologyManager manager ,
140
+ OWLOntologyID id ,
141
+ IRI documentIRI ,
142
+ OWLOntologyCreationHandler handler ) {
142
143
Adapter adapter = getAdapter ();
143
144
return createOntology (adapter .asONT (manager ), adapter .asONT (id ));
144
145
}
@@ -152,16 +153,16 @@ default OntologyModel createOWLOntology(OWLOntologyManager manager,
152
153
* @param handler unused parameter
153
154
* @param config {@link OWLOntologyLoaderConfiguration} a configuration object which can be used
154
155
* to pass various options to th loader, not {@code null}
155
- * @return {@link OntologyModel } the newly created and loaded ontology
156
+ * @return {@link Ontology } the newly created and loaded ontology
156
157
* @throws OWLOntologyCreationException if the ontology could not be created due to some I/O problem,
157
158
* broken source or incompatible state of manager
158
159
* @throws OntApiException if something else goes wrong
159
160
*/
160
161
@ Override
161
- default OntologyModel loadOWLOntology (OWLOntologyManager manager ,
162
- OWLOntologyDocumentSource source ,
163
- OWLOntologyCreationHandler handler ,
164
- OWLOntologyLoaderConfiguration config ) throws OWLOntologyCreationException {
162
+ default Ontology loadOWLOntology (OWLOntologyManager manager ,
163
+ OWLOntologyDocumentSource source ,
164
+ OWLOntologyCreationHandler handler ,
165
+ OWLOntologyLoaderConfiguration config ) throws OWLOntologyCreationException {
165
166
Adapter adapter = getAdapter ();
166
167
return loadOntology (adapter .asONT (manager ), source , adapter .asONT (config ));
167
168
}
@@ -174,7 +175,7 @@ default OntologyModel loadOWLOntology(OWLOntologyManager manager,
174
175
interface Builder extends OntologyCreator , HasAdapter , OWLOntologyBuilder {
175
176
176
177
@ Override
177
- default OntologyModel createOWLOntology (OWLOntologyManager manager , OWLOntologyID id ) {
178
+ default Ontology createOWLOntology (OWLOntologyManager manager , OWLOntologyID id ) {
178
179
Adapter adapter = getAdapter ();
179
180
return createOntology (adapter .asONT (id ), adapter .asONT (manager ),
180
181
adapter .asONT (manager .getOntologyLoaderConfiguration ()));
0 commit comments