18
18
19
19
package com .github .owlcs .map ;
20
20
21
- import com .github .owlcs .ontapi .jena .model .OntCE ;
22
- import com .github .owlcs .ontapi .jena .model .OntOPE ;
21
+ import com .github .owlcs .ontapi .jena .model .OntClass ;
22
+ import com .github .owlcs .ontapi .jena .model .OntObjectProperty ;
23
23
import org .apache .jena .rdf .model .Property ;
24
24
25
25
import java .util .stream .Stream ;
26
26
27
27
/**
28
28
* A class expressions mapping (class bridge), that is a primary component of a {@link MapModel mapping model}.
29
- * In GUI it can be represented as an arrow between source and target {@link OntCE class expression}s.
29
+ * In GUI it can be represented as an arrow between source and target {@link OntClass class expression}s.
30
30
* <p>
31
31
* Created by @szuev on 14.04.2018.
32
32
*/
@@ -35,16 +35,16 @@ public interface MapContext extends MapResource {
35
35
/**
36
36
* Returns a source class expression.
37
37
*
38
- * @return {@link OntCE }
38
+ * @return {@link OntClass }
39
39
*/
40
- OntCE getSource ();
40
+ OntClass getSource ();
41
41
42
42
/**
43
43
* Returns a target class expression.
44
44
*
45
- * @return {@link OntCE }
45
+ * @return {@link OntClass }
46
46
*/
47
- OntCE getTarget ();
47
+ OntClass getTarget ();
48
48
49
49
/**
50
50
* Answers a context' expression in the form of function-call object.
@@ -76,13 +76,15 @@ public interface MapContext extends MapResource {
76
76
* Adds a properties bridge.
77
77
* Source properties are specified by mapping and filter function calls, the target goes explicitly.
78
78
* All input properties must be an OWL2 entities with possible to assign data on individual:
79
- * {@link com.github.owlcs.ontapi.jena.model.OntNAP named annotation property} and
80
- * {@link com.github.owlcs.ontapi.jena.model.OntNDP datatype property},
81
- * while {@link com.github.owlcs.ontapi.jena.model.OntNOP object property} is used to bind contexts together, not to inference data.
79
+ * {@link com.github.owlcs.ontapi.jena.model.OntAnnotationProperty} and
80
+ * {@link com.github.owlcs.ontapi.jena.model.OntDataProperty},
81
+ * while {@link com.github.owlcs.ontapi.jena.model.OntObjectProperty.Named}
82
+ * is used to bind contexts together, not to inference data.
82
83
*
83
84
* @param filterFunctionCall {@link MapFunction.Call} function-call to filter data
84
85
* @param mappingFunctionCall {@link MapFunction.Call} function-call to map data
85
- * @param target property, either {@link com.github.owlcs.ontapi.jena.model.OntNAP} or {@link com.github.owlcs.ontapi.jena.model.OntNDP}
86
+ * @param target property, either {@link com.github.owlcs.ontapi.jena.model.OntAnnotationProperty}
87
+ * or {@link com.github.owlcs.ontapi.jena.model.OntDataProperty}
86
88
* @return {@link PropertyBridge} a container with all input settings.
87
89
* @throws MapJenaException if something goes wrong (e.g. incompatible function or property specified)
88
90
*/
@@ -109,14 +111,14 @@ PropertyBridge addPropertyBridge(MapFunction.Call filterFunctionCall,
109
111
/**
110
112
* Creates a context with the same target class expression and with source linked to the source of this context.
111
113
* Classes can be linked to each other through object property range and domain axioms,
112
- * see description for {@link #createRelatedContext(OntCE, OntOPE )}.
114
+ * see description for {@link #createRelatedContext(OntClass, OntObjectProperty )}.
113
115
* Throws an exception in the case the link (object property) does not exist or it can not be uniquely determined.
114
116
*
115
- * @param source {@link OntCE } source for the new context, the target is the same as in this context.
117
+ * @param source {@link OntClass } source for the new context, the target is the same as in this context.
116
118
* @return <b>new</b> context
117
119
* @throws MapJenaException unable to make reference context
118
120
*/
119
- MapContext createRelatedContext (OntCE source ) throws MapJenaException ;
121
+ MapContext createRelatedContext (OntClass source ) throws MapJenaException ;
120
122
121
123
/**
122
124
* Creates a context associated with this one through the specified object property expression.
@@ -129,24 +131,24 @@ PropertyBridge addPropertyBridge(MapFunction.Call filterFunctionCall,
129
131
* otherwise with "related object context" rule.
130
132
* If {@code C1} and {@code C2} are not linked to each other, an exception are expected.
131
133
*
132
- * @param source {@link OntCE } class expression, source for result context
133
- * @param link {@link OntOPE } object property expression, a link between {@code source} and {@link #getSource()}
134
+ * @param source {@link OntClass } class expression, source for result context
135
+ * @param link {@link OntObjectProperty } object property expression, a link between {@code source} and {@link #getSource()}
134
136
* @return <b>new</b> context with specified class as source and {@link #getTarget()} as target.
135
137
* @throws MapJenaException unable to make reference context
136
138
*/
137
- MapContext createRelatedContext (OntCE source , OntOPE link ) throws MapJenaException ;
139
+ MapContext createRelatedContext (OntClass source , OntObjectProperty link ) throws MapJenaException ;
138
140
139
141
/**
140
142
* Binds this context and the specified with a link-property.
141
143
* On inference these contexts together will produce consistent data:
142
144
* the result individuals will be bound in an object property assertion.
143
145
*
144
146
* @param other {@link MapContext} other context
145
- * @param link {@link OntOPE }, link property
147
+ * @param link {@link OntObjectProperty }, link property
146
148
* @return {@link PropertyBridge} which connects this context and the specified
147
149
* @throws MapJenaException if something goes wrong or input parameters are not correct
148
150
*/
149
- PropertyBridge attachContext (MapContext other , OntOPE link ) throws MapJenaException ;
151
+ PropertyBridge attachContext (MapContext other , OntObjectProperty link ) throws MapJenaException ;
150
152
151
153
/**
152
154
* Lists all contexts that depend on this somehow.
@@ -204,7 +206,8 @@ default PropertyBridge addPropertyBridge(MapFunction.Builder func, Property targ
204
206
* This is commonly used method, while its overloaded companion is used less frequently to build specific ontology mappings.
205
207
*
206
208
* @param func {@link MapFunction.Call}, expression
207
- * @param target property, either {@link com.github.owlcs.ontapi.jena.model.OntNAP} or {@link com.github.owlcs.ontapi.jena.model.OntNDP}
209
+ * @param target property, either {@link com.github.owlcs.ontapi.jena.model.OntAnnotationProperty}
210
+ * or {@link com.github.owlcs.ontapi.jena.model.OntDataProperty}
208
211
* @return {@link PropertyBridge} a container with all input settings
209
212
* @throws MapJenaException if something goes wrong (e.g. incompatible function or property specified)
210
213
* @see #addPropertyBridge(MapFunction.Call, MapFunction.Call, Property)
0 commit comments