From 0528551a96feda3df24a65ded9070050772e21c7 Mon Sep 17 00:00:00 2001 From: Rob Court Date: Sat, 31 Aug 2024 19:02:34 +0100 Subject: [PATCH] Update N2OExportService.java --- .../java/ebi/spot/neo4j2owl/exporter/N2OExportService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ebi/spot/neo4j2owl/exporter/N2OExportService.java b/src/main/java/ebi/spot/neo4j2owl/exporter/N2OExportService.java index 659c345..71e65e6 100644 --- a/src/main/java/ebi/spot/neo4j2owl/exporter/N2OExportService.java +++ b/src/main/java/ebi/spot/neo4j2owl/exporter/N2OExportService.java @@ -115,7 +115,7 @@ public N2OReturnValue owl2ExportNodes(Long skip, Long limit) { return returnValue; } - public N2OReturnValue owl2ExportEdges() { + public N2OReturnValue owl2ExportEdges(Long skip, Long limit) { n2OEntityManager = new N2OExportManager(); qsls_with_no_matching_properties = new HashSet<>(); logger.resetTimer(); @@ -125,7 +125,7 @@ public N2OReturnValue owl2ExportEdges() { OWLOntologyManager man = OWLManager.createOWLOntologyManager(); OWLOntology o = man.createOntology(); - findEntities(0L, Long.MAX_VALUE); + findEntities(o, skip, limit); addRelation(o, N2OStatic.RELTYPE_SUBCLASSOF); addRelation(o, N2OStatic.RELTYPE_INSTANCEOF); for (String rel_qsl : getRelations(OWLAnnotationProperty.class)) {