15
15
package com .github .owlcs .ontapi ;
16
16
17
17
import com .github .owlcs .ontapi .config .AxiomsSettings ;
18
- import com .github .owlcs .ontapi .jena .model .OntGraphModel ;
18
+ import com .github .owlcs .ontapi .jena .model .OntModel ;
19
19
import org .semanticweb .owlapi .model .OWLOntology ;
20
20
21
21
/**
22
22
* A Structural Ontological Model, that is an extended {@link OWLOntology OWL-API Ontology}.
23
23
* It represents an <a href="http://www.w3.org/TR/owl2-syntax/#Ontologies">Ontology</a> in the OWL2 specification.
24
- * This interface provides a wide range of methods inherited from OWL-API
25
- * for working with structural (OWL Axioms and Annotations) representation of data
26
- * stored in the form of {@link org.apache.jena.graph.Graph RDF Graph}.
27
- * In addition to this range, there are also two new methods: {@link #asGraphModel()} and {@link #clearCache()}.
24
+ * <p>
25
+ * This interface provides access to a wide range of methods inherited from OWL-API
26
+ * to work with the structural representation of data
27
+ * (i.e. with OWL {@link org.semanticweb.owlapi.model.OWLAxiom Axiom}s
28
+ * and Ontology Header {@link org.semanticweb.owlapi.model.OWLAnnotation Annotation}s).
29
+ * Please note, in ONT-API all data is actually stored in the very {@link org.apache.jena.graph.Graph RDF Graph},
30
+ * and any {@link org.semanticweb.owlapi.model.OWLAxiom Axiom} returned by this interface
31
+ * is really just a special reading of the same {@link org.apache.jena.graph.Triple RDF Triple}s.
32
+ * To work directly with triples-view there is the method {@link #asGraphModel()}
33
+ * returning the {@link OntModel Ont[Graph]Model} view,
34
+ * that is a {@link org.apache.jena.rdf.model.Model Jena Model} for OWL2.
35
+ * Also, please note that although ONT-API supports the ability to change data simultaneously through both interfaces,
36
+ * this is not always correct: an {@link Ontology} impls use caches,
37
+ * and switching back and forth could flush these caches, which may degrade performance.
28
38
* <p>
29
39
* Created by szuev on 24.10.2016.
30
40
*/
@@ -33,7 +43,7 @@ public interface Ontology extends OWLOntology {
33
43
/**
34
44
* Returns the jena model shadow,
35
45
* that is an interface to work with the {@link org.apache.jena.graph.Graph RDF Graph} directly.
36
- * The {@code OntGraphModel } is backed by the {@code OntologyModel },
46
+ * The {@code OntModel } is backed by the {@code Ontology },
37
47
* so changes to the graph model are reflected in the structural model, and vice-versa.
38
48
* <p>
39
49
* Note: synchronisation is performed via different caches and graphs listeners
@@ -46,10 +56,10 @@ public interface Ontology extends OWLOntology {
46
56
* Also note: any changes in the RDF-view will reset the internal cache,
47
57
* that means next attempt to retrieve data from axiomatic view (i.e. list axioms) will take the same time as the very first one.
48
58
*
49
- * @return {@link OntGraphModel Ontology RDF Graph Model}, not {@code null}
59
+ * @return {@link OntModel Ontology RDF Graph Model}, not {@code null}
50
60
* @see org.apache.jena.graph.Graph
51
61
*/
52
- OntGraphModel asGraphModel ();
62
+ OntModel asGraphModel ();
53
63
54
64
/**
55
65
* Clears the axioms and entities cache.
@@ -79,5 +89,4 @@ public interface Ontology extends OWLOntology {
79
89
* @return {@link OntologyManager} the manager for this ontology
80
90
*/
81
91
OntologyManager getOWLOntologyManager ();
82
-
83
92
}
0 commit comments