Skip to content

Commit

Permalink
endpoint test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrasa committed Dec 8, 2021
1 parent 764980d commit 3b45aa8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/n10s/endpoint/RDFEndpointTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1561,10 +1561,13 @@ public void testNodeByUriMissingNamespaceDefinition() throws Exception {
//set a prefix that we can remove afterwards
tx.execute(
"call n10s.nsprefixes.add('fiboanno','https://spec.edmcouncil.org/fibo/ontology/FND/Utilities/AnnotationVocabulary/')");
//add dct namespace prefix, as it's not part of the predefined ones.
tx.execute("call n10s.nsprefixes.add(\"dct\",\"http://purl.org/dc/terms/\")").next();
tx.commit();
}

try (Transaction tx = graphDatabaseService.beginTx()) {

Map<String, Object> importResult = tx.execute("CALL n10s.rdf.import.fetch('" +
RDFEndpointTest.class.getClassLoader().getResource("fibo-fragment.rdf")
.toURI() + "','RDF/XML',{})").next();
Expand Down

0 comments on commit 3b45aa8

Please sign in to comment.