Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit b2f05e1

Browse files
committed
ontapi-osgi: handle ont-api jena model changes (see owlcs/ont-api#4, owlcs/ont-api#8)
1 parent 781cf0f commit b2f05e1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/test/java/org/github/owlcs/ontapi/tests/func/FunctionalTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.github.owlcs.ontapi.*;
44
import com.github.owlcs.ontapi.jena.OntModelFactory;
5-
import com.github.owlcs.ontapi.jena.model.OntGraphModel;
5+
import com.github.owlcs.ontapi.jena.model.OntModel;
66
import com.github.owlcs.ontapi.jena.model.OntStatement;
77
import com.github.owlcs.ontapi.jena.utils.Graphs;
88
import com.github.owlcs.ontapi.jena.vocabulary.OWL;
@@ -41,7 +41,7 @@ public static void before() {
4141
@Test
4242
public void testGeneralFunctionality() throws Exception {
4343
String uri = "http://test";
44-
OntGraphModel g = OntModelFactory.createModel();
44+
OntModel g = OntModelFactory.createModel();
4545
g.setID(uri);
4646
StringWriter sw = new StringWriter();
4747
g.write(sw, OntFormat.TURTLE.getID());
@@ -103,7 +103,6 @@ public void testJenaFormatsCompileScope() throws Exception {
103103
}
104104
}
105105

106-
107106
@Test
108107
public void testFactoriesTestScope() {
109108
String loadFactory = "com.github.owlcs.ontapi.OntologyFactoryImpl";
@@ -155,7 +154,8 @@ public void testOWLFormatsTestScope() throws Exception {
155154
OWLStorer storer = factory.createStorer();
156155
OWLDocumentFormat format = lang.getFormatFactory().get();
157156
ByteArrayOutputStream out = new ByteArrayOutputStream();
158-
logger.info("FORMAT: {{}-{}:'{}'}", factory.getClass().getSimpleName(), format.getClass().getSimpleName(), format.getKey());
157+
logger.info("FORMAT: {{}-{}:'{}'}",
158+
factory.getClass().getSimpleName(), format.getClass().getSimpleName(), format.getKey());
159159
storer.storeOntology(o, new StreamDocumentTarget(out), format);
160160
logger.debug("{}", new String(out.toByteArray(), StandardCharsets.UTF_8));
161161
}

src/test/java/org/github/owlcs/ontapi/tests/osgi/BundlesCoreITTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static List<Tester<?>> getTesters() {
3636
, Tester.of(Ontology.class)
3737
, Tester.of(OWLOntologyManager.class)
3838
, Tester.of(Graph.class)
39-
, Tester.of(com.github.owlcs.ontapi.jena.model.OntCE.UnaryRestrictionCE.class)
39+
, Tester.of(com.github.owlcs.ontapi.jena.model.OntClass.UnaryRestrictionCE.class)
4040
, Tester.of(com.github.owlcs.ontapi.transforms.SWRLTransform.class)
4141
, Tester.of(com.github.owlcs.ontapi.internal.ONTObject.class)
4242
, Tester.of(IRI.class, ClassesITTest::testIRI)

0 commit comments

Comments
 (0)