|
1 | 1 | package n10s; |
2 | 2 |
|
| 3 | +import static n10s.graphconfig.Params.BASE_INDIV_NS; |
| 4 | +import static n10s.graphconfig.Params.BASE_SCH_NS; |
3 | 5 | import static org.junit.Assert.assertEquals; |
4 | 6 | import static org.junit.Assert.assertTrue; |
5 | 7 |
|
@@ -56,13 +58,13 @@ public void testExportFromCypher() throws Exception { |
56 | 58 |
|
57 | 59 | final ValueFactory vf = SimpleValueFactory.getInstance(); |
58 | 60 | 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)))); |
66 | 68 |
|
67 | 69 | int resultCount = 0; |
68 | 70 | while (res.hasNext()) { |
|
0 commit comments