This repository was archived by the owner on Aug 26, 2023. It is now read-only.
File tree 3 files changed +8
-8
lines changed
src/main/java/com/github/owlcs/map
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 22
22
import com .github .owlcs .ontapi .jena .model .OntClass ;
23
23
import com .github .owlcs .ontapi .jena .model .OntModel ;
24
24
import com .github .owlcs .ontapi .jena .model .OntNamedProperty ;
25
- import com .github .owlcs .ontapi .jena .utils .BuiltIn ;
26
25
import org .apache .jena .rdf .model .Literal ;
27
26
import org .apache .jena .rdf .model .Property ;
28
27
import org .apache .jena .rdf .model .ResourceFactory ;
@@ -387,14 +386,15 @@ interface Builder {
387
386
* then it is assumed that it is a plain (string) literal,
388
387
* e.g. if you set 'Anything' it would be actually {@code "Anything"^^<http://www.w3.org/2001/XMLSchema#string>}.
389
388
* If some value is already associated with the given {@code predicate}, it will be replaced by the new value.
390
- * To list all built-in datatypes the method {@link BuiltIn.Vocabulary#datatypes()} can be used.
389
+ * To list all built-in datatypes
390
+ * the method {@link com.github.owlcs.ontapi.jena.OntVocabulary#getBuiltinDatatypes()} can be used.
391
391
* To list all model datatypes the expression {@link OntModel#datatypes()}
392
392
*
393
393
* @param predicate iri ({@link Arg#name()}), not {@code null}
394
394
* @param value String, value, not {@code null}
395
395
* @return this builder
396
396
* @throws MapJenaException.IllegalArgument if input is wrong
397
- * @see BuiltIn #get()
397
+ * @see com.github.owlcs.ontapi.jena.OntVocabulary.Factory #get()
398
398
*/
399
399
Builder add (String predicate , String value ) throws MapJenaException .IllegalArgument ;
400
400
Original file line number Diff line number Diff line change 22
22
import com .github .owlcs .map .MapJenaException ;
23
23
import com .github .owlcs .map .spin .vocabulary .AVC ;
24
24
import com .github .owlcs .map .utils .ModelUtils ;
25
+ import com .github .owlcs .ontapi .jena .OntVocabulary ;
25
26
import com .github .owlcs .ontapi .jena .model .*;
26
- import com .github .owlcs .ontapi .jena .utils .BuiltIn ;
27
27
import com .github .owlcs .ontapi .jena .utils .Iter ;
28
28
import com .github .owlcs .ontapi .jena .vocabulary .OWL ;
29
29
import com .github .owlcs .ontapi .jena .vocabulary .RDF ;
@@ -255,7 +255,7 @@ void testValue() {
255
255
}
256
256
if (value .isURIResource ()) {
257
257
//noinspection SuspiciousMethodCalls
258
- if (BuiltIn . get ().reservedProperties ().contains (value ))
258
+ if (OntVocabulary . Factory . get ().getSystemProperties ().contains (value ))
259
259
return ;
260
260
if (value .canAs (OntProperty .class ))
261
261
return ;
Original file line number Diff line number Diff line change 19
19
package com .github .owlcs .map .utils ;
20
20
21
21
import com .github .owlcs .map .ClassPropertyMap ;
22
+ import com .github .owlcs .ontapi .jena .OntVocabulary ;
22
23
import com .github .owlcs .ontapi .jena .model .OntClass ;
23
24
import com .github .owlcs .ontapi .jena .model .OntModel ;
24
25
import com .github .owlcs .ontapi .jena .model .OntObject ;
25
26
import com .github .owlcs .ontapi .jena .model .OntProperty ;
26
- import com .github .owlcs .ontapi .jena .utils .BuiltIn ;
27
27
import org .apache .jena .rdf .model .Property ;
28
28
import org .apache .jena .rdf .model .Resource ;
29
29
42
42
*/
43
43
@ SuppressWarnings ("WeakerAccess" )
44
44
public class LocalClassPropertyMapImpl extends ClassPropertyMapImpl {
45
- private static final Set <Property > BUILT_IN_PROPERTIES = BuiltIn . get ().properties ();
46
- private static final Set <Resource > BUILT_IN_CLASSES = BuiltIn . get ().classes ();
45
+ private static final Set <Property > BUILT_IN_PROPERTIES = OntVocabulary . Factory . get ().getBuiltinOWLProperties ();
46
+ private static final Set <Resource > BUILT_IN_CLASSES = OntVocabulary . Factory . get ().getBuiltinClasses ();
47
47
48
48
private final OntModel toSearch ;
49
49
private final OntModel model ;
You can’t perform that action at this time.
0 commit comments