Skip to content

Commit 9346783

Browse files
committed
fixed rdf.export.cypher test
1 parent 22373aa commit 9346783

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/main/java/n10s/endpoint/RDFEndpoint.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.codehaus.jackson.map.ObjectMapper;
2929
import org.codehaus.jackson.type.TypeReference;
3030
import org.eclipse.rdf4j.model.vocabulary.OWL;
31-
import org.eclipse.rdf4j.model.vocabulary.RDF;
3231
import org.eclipse.rdf4j.model.vocabulary.RDFS;
3332
import org.eclipse.rdf4j.rio.RDFFormat;
3433
import org.eclipse.rdf4j.rio.RDFWriter;

src/test/java/n10s/RDFExportTest.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package n10s;
22

3+
import static n10s.graphconfig.Params.BASE_INDIV_NS;
4+
import static n10s.graphconfig.Params.BASE_SCH_NS;
35
import static org.junit.Assert.assertEquals;
46
import static org.junit.Assert.assertTrue;
57

@@ -56,13 +58,13 @@ public void testExportFromCypher() throws Exception {
5658

5759
final ValueFactory vf = SimpleValueFactory.getInstance();
5860
Set<Statement> expectedStatememts = new HashSet<>(Arrays.asList(
59-
vf.createStatement(vf.createIRI("neo4j://individuals#0"), RDF.TYPE, vf.createIRI("neo4j://vocabulary#Node")),
60-
vf.createStatement(vf.createIRI("neo4j://individuals#0"), vf.createIRI("neo4j://vocabulary#a"), vf.createLiteral(1L)),
61-
vf.createStatement(vf.createIRI("neo4j://individuals#0"), vf.createIRI("neo4j://vocabulary#b"), vf.createLiteral("hello")),
62-
vf.createStatement(vf.createIRI("neo4j://individuals#0"), vf.createIRI("neo4j://vocabulary#CONNECTED_TO"), vf.createIRI("neo4j://individuals#1")),
63-
vf.createStatement(vf.createIRI("neo4j://individuals#1"), RDF.TYPE, vf.createIRI("neo4j://vocabulary#Node")),
64-
vf.createStatement(vf.createIRI("neo4j://individuals#1"), vf.createIRI("neo4j://vocabulary#b2"), vf.createLiteral("bye","en")),
65-
vf.createStatement(vf.createIRI("neo4j://individuals#1"), vf.createIRI("neo4j://vocabulary#a"), vf.createLiteral(2L))));
61+
vf.createStatement(vf.createIRI(BASE_INDIV_NS + "0"), RDF.TYPE, vf.createIRI(BASE_SCH_NS + "Node")),
62+
vf.createStatement(vf.createIRI(BASE_INDIV_NS + "0"), vf.createIRI(BASE_SCH_NS + "a"), vf.createLiteral(1L)),
63+
vf.createStatement(vf.createIRI(BASE_INDIV_NS + "0"), vf.createIRI(BASE_SCH_NS + "b"), vf.createLiteral("hello")),
64+
vf.createStatement(vf.createIRI(BASE_INDIV_NS + "0"), vf.createIRI(BASE_SCH_NS + "CONNECTED_TO"), vf.createIRI(BASE_INDIV_NS + "1")),
65+
vf.createStatement(vf.createIRI(BASE_INDIV_NS + "1"), RDF.TYPE, vf.createIRI(BASE_SCH_NS + "Node")),
66+
vf.createStatement(vf.createIRI(BASE_INDIV_NS + "1"), vf.createIRI(BASE_SCH_NS + "b2"), vf.createLiteral("bye","en")),
67+
vf.createStatement(vf.createIRI(BASE_INDIV_NS + "1"), vf.createIRI(BASE_SCH_NS + "a"), vf.createLiteral(2L))));
6668

6769
int resultCount = 0;
6870
while (res.hasNext()) {

0 commit comments

Comments
 (0)