Skip to content

Commit

Permalink
GH-4232 updated benchmark to reproduce the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hmottestad authored and abrokenjester committed Jan 20, 2023
1 parent 4fb24b2 commit 818fe45
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.eclipse.rdf4j.common.transaction.IsolationLevels;
import org.eclipse.rdf4j.model.Model;
import org.eclipse.rdf4j.model.util.ModelBuilder;
import org.eclipse.rdf4j.model.util.Values;
import org.eclipse.rdf4j.model.vocabulary.OWL;
import org.eclipse.rdf4j.model.vocabulary.RDF;
import org.eclipse.rdf4j.model.vocabulary.RDFS;
Expand Down Expand Up @@ -99,8 +100,10 @@ public void beforeClass() throws IOException, InterruptedException {

repository = new SailRepository(new NativeStore(file, "spoc,posc,cspo,opsc"));

int numberOfItems = 10_000;
int numberOfChildren = 10_000;
int numberOfItems = 2;
int numberOfChildren = 2;
int numberOfTypeOwlClassStatements = 500;
int numberOfSubClassOfStatements = 10_000;

try (var conn = repository.getConnection()) {
conn.begin(IsolationLevels.NONE);
Expand Down Expand Up @@ -129,6 +132,14 @@ public void beforeClass() throws IOException, InterruptedException {
conn.add(m);
}
}

}
for (int i = 0; i < numberOfTypeOwlClassStatements; i++) {
conn.add(Values.bnode(), RDF.TYPE, OWL.CLASS);
}

for (int i = 0; i < numberOfSubClassOfStatements; i++) {
conn.add(Values.bnode(), RDFS.SUBCLASSOF, Values.bnode());
}
conn.commit();
}
Expand Down

0 comments on commit 818fe45

Please sign in to comment.