diff --git a/src/test/java/fr/inria/corese/core/load/OwlImportTest.java b/src/test/java/fr/inria/corese/core/load/OwlImportTest.java
index a27405173..60dc4ad3c 100644
--- a/src/test/java/fr/inria/corese/core/load/OwlImportTest.java
+++ b/src/test/java/fr/inria/corese/core/load/OwlImportTest.java
@@ -40,7 +40,7 @@ public void testRdfImportDisabled() throws LoadException {
@Test
public void testRdfImportEnabled() throws LoadException {
int graphSize = testImport("test_owl_import.rdf", true);
- assertEquals(628, graphSize);
+ assertEquals(8, graphSize);
}
/**
@@ -58,7 +58,7 @@ public void testTurtleImportDisabled() throws LoadException {
@Test
public void testTurtleImportEnabled() throws LoadException {
int graphSize = testImport("test_owl_import.ttl", true);
- assertEquals(628, graphSize);
+ assertEquals(8, graphSize);
}
/**
@@ -76,7 +76,7 @@ public void testTrigImportDisabled() throws LoadException {
@Test
public void testTrigImportEnabled() throws LoadException {
int graphSize = testImport("test_owl_import.trig", true);
- assertEquals(628, graphSize);
+ assertEquals(8, graphSize);
}
/**
@@ -94,7 +94,7 @@ public void testNTriplesImportDisabled() throws LoadException {
@Test
public void testNTriplesImportEnabled() throws LoadException {
int graphSize = testImport("test_owl_import.nt", true);
- assertEquals(628, graphSize);
+ assertEquals(8, graphSize);
}
/**
@@ -112,7 +112,7 @@ public void testNQuadsImportDisabled() throws LoadException {
@Test
public void testNQuadsImportEnabled() throws LoadException {
int graphSize = testImport("test_owl_import.nq", true);
- assertEquals(628, graphSize);
+ assertEquals(8, graphSize);
}
/**
@@ -130,7 +130,7 @@ public void testJsonLdImportDisabled() throws LoadException {
@Test
public void testJsonLdImportEnabled() throws LoadException {
int graphSize = testImport("test_owl_import.jsonld", true);
- assertEquals(628, graphSize);
+ assertEquals(8, graphSize);
}
/**
@@ -139,7 +139,7 @@ public void testJsonLdImportEnabled() throws LoadException {
@Test
public void testRdfaImportDisabled() throws LoadException {
int graphSize = testImport("test_owl_import.html", false);
- assertEquals(8, graphSize);
+ assertEquals(7, graphSize);
}
/**
@@ -148,7 +148,7 @@ public void testRdfaImportDisabled() throws LoadException {
@Test
public void testRdfaImportEnabled() throws LoadException {
int graphSize = testImport("test_owl_import.html", true);
- assertEquals(628, graphSize);
+ assertEquals(7, graphSize);
}
/**
@@ -171,4 +171,4 @@ private int testImport(String fileName, boolean enableImport) throws LoadExcepti
loader.parse(resourcePath);
return graph.size();
}
-}
+}
\ No newline at end of file
diff --git a/src/test/resources/data-test/owl_imports/test_owl_import.html b/src/test/resources/data-test/owl_imports/test_owl_import.html
index 12be37e94..3fcdec5e4 100644
--- a/src/test/resources/data-test/owl_imports/test_owl_import.html
+++ b/src/test/resources/data-test/owl_imports/test_owl_import.html
@@ -1,25 +1,24 @@
+ prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# owl: http://www.w3.org/2002/07/owl# rdfs: http://www.w3.org/2000/01/rdf-schema#">
RDFa Example
-
-
-
+
+
+
-
- Person
-
-
+
+
+
-
- Student
-
-
+
+ Student
+
+
\ No newline at end of file
diff --git a/src/test/resources/data-test/owl_imports/test_owl_import.jsonld b/src/test/resources/data-test/owl_imports/test_owl_import.jsonld
index 6c0175ad0..0b067f434 100644
--- a/src/test/resources/data-test/owl_imports/test_owl_import.jsonld
+++ b/src/test/resources/data-test/owl_imports/test_owl_import.jsonld
@@ -5,15 +5,14 @@
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"owl": "http://www.w3.org/2002/07/owl#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
- "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
- "foaf": "http://xmlns.com/foaf/0.1/"
+ "rdfs": "http://www.w3.org/2000/01/rdf-schema#"
},
"@graph": [
{
"@id": "http://example.org/ontology",
"@type": "owl:Ontology",
"owl:imports": {
- "@id": "http://xmlns.com/foaf/0.1/"
+ "@id": "https://ns.inria.fr/sparql-extension/"
}
},
{
@@ -21,7 +20,7 @@
"@type": "owl:Class",
"rdfs:label": "Person",
"rdfs:subClassOf": {
- "@id": "http://xmlns.com/foaf/0.1/Person"
+ "@id": "https://ns.inria.fr/sparql-extension#Extension"
}
},
{
diff --git a/src/test/resources/data-test/owl_imports/test_owl_import.nq b/src/test/resources/data-test/owl_imports/test_owl_import.nq
index 8ed5b9114..061e73b15 100644
--- a/src/test/resources/data-test/owl_imports/test_owl_import.nq
+++ b/src/test/resources/data-test/owl_imports/test_owl_import.nq
@@ -1,8 +1,8 @@
.
- .
+ .
.
"Person" .
- .
+ .
.
"Student" .
- .
+ .
\ No newline at end of file
diff --git a/src/test/resources/data-test/owl_imports/test_owl_import.nt b/src/test/resources/data-test/owl_imports/test_owl_import.nt
index a6d5ef2bc..3780f60b3 100644
--- a/src/test/resources/data-test/owl_imports/test_owl_import.nt
+++ b/src/test/resources/data-test/owl_imports/test_owl_import.nt
@@ -1,8 +1,8 @@
.
- .
+ .
.
"Person" .
- .
+ .
.
"Student" .
- .
+ .
\ No newline at end of file
diff --git a/src/test/resources/data-test/owl_imports/test_owl_import.rdf b/src/test/resources/data-test/owl_imports/test_owl_import.rdf
index 59d4f884e..74017ffd3 100644
--- a/src/test/resources/data-test/owl_imports/test_owl_import.rdf
+++ b/src/test/resources/data-test/owl_imports/test_owl_import.rdf
@@ -7,12 +7,12 @@
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
-
+
Person
-
+
diff --git a/src/test/resources/data-test/owl_imports/test_owl_import.trig b/src/test/resources/data-test/owl_imports/test_owl_import.trig
index 81e85529d..985e308fe 100644
--- a/src/test/resources/data-test/owl_imports/test_owl_import.trig
+++ b/src/test/resources/data-test/owl_imports/test_owl_import.trig
@@ -2,17 +2,16 @@
@prefix owl: .
@prefix xsd: .
@prefix rdfs: .
-@prefix foaf: .
{
a owl:Ontology ;
- owl:imports .
+ owl:imports .
:Person a owl:Class ;
rdfs:label "Person" ;
- rdfs:subClassOf foaf:Person .
+ rdfs:subClassOf .
:Student a owl:Class ;
rdfs:label "Student" ;
rdfs:subClassOf :Person .
-}
+}
\ No newline at end of file
diff --git a/src/test/resources/data-test/owl_imports/test_owl_import.ttl b/src/test/resources/data-test/owl_imports/test_owl_import.ttl
index c69d8cfc1..2688b7cda 100644
--- a/src/test/resources/data-test/owl_imports/test_owl_import.ttl
+++ b/src/test/resources/data-test/owl_imports/test_owl_import.ttl
@@ -1,16 +1,14 @@
@prefix : .
@prefix owl: .
-@prefix xsd: .
@prefix rdfs: .
-@prefix foaf: .
a owl:Ontology ;
- owl:imports .
+ owl:imports .
:Person a owl:Class ;
rdfs:label "Person" ;
- rdfs:subClassOf foaf:Person .
+ rdfs:subClassOf rdfs:Resource .
:Student a owl:Class ;
rdfs:label "Student" ;
- rdfs:subClassOf :Person .
+ rdfs:subClassOf :Person .
\ No newline at end of file