forked from eclipse-rdf4j/rdf4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eclipse-rdf4jGH-2864 benchmarks use nativestore to simulate more real…
…istic usage, also some code cleanup while we were at it Signed-off-by: Håvard Ottestad <[email protected]>
- Loading branch information
1 parent
86159c4
commit ac29711
Showing
61 changed files
with
1,141 additions
and
893 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 9 additions & 25 deletions
34
core/sail/shacl/src/test/java/org/eclipse/rdf4j/sail/shacl/BulkedExternalInnerJoinTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,34 @@ | ||
package org.eclipse.rdf4j.sail.shacl; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
|
||
import java.util.Arrays; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
import org.eclipse.rdf4j.model.IRI; | ||
import org.eclipse.rdf4j.model.impl.SimpleValueFactory; | ||
import org.eclipse.rdf4j.model.vocabulary.DCAT; | ||
import org.eclipse.rdf4j.model.vocabulary.RDFS; | ||
import org.eclipse.rdf4j.sail.SailConnection; | ||
import org.eclipse.rdf4j.sail.memory.MemoryStore; | ||
import org.eclipse.rdf4j.sail.shacl.mock.MockConsumePlanNode; | ||
import org.eclipse.rdf4j.sail.shacl.mock.MockInputPlanNode; | ||
import org.junit.Test; | ||
|
||
public class BulkedExternalInnerJoinTest { | ||
/* | ||
* @Test public void gapInResultsFromQueryTest() { | ||
* | ||
* | ||
* SimpleValueFactory vf = SimpleValueFactory.getInstance(); IRI a = vf.createIRI("http://a"); IRI b = | ||
* vf.createIRI("http://b"); IRI c = vf.createIRI("http://c"); IRI d = vf.createIRI("http://d"); | ||
* | ||
* | ||
* PlanNode left = new MockInputPlanNode( Arrays.asList(new Tuple(Collections.singletonList(a)), new | ||
* Tuple(Collections.singletonList(b)), new Tuple(Collections.singletonList(c)), new | ||
* Tuple(Collections.singletonList(d)))); | ||
* | ||
* | ||
* MemoryStore sailRepository = new MemoryStore(); sailRepository.init(); | ||
* | ||
* | ||
* try (SailConnection connection = sailRepository.getConnection()) { connection.begin(); connection.addStatement(b, | ||
* DCAT.ACCESS_URL, RDFS.RESOURCE); connection.addStatement(d, DCAT.ACCESS_URL, RDFS.SUBPROPERTYOF); | ||
* connection.commit(); } try (SailConnection connection = sailRepository.getConnection()) { | ||
* | ||
* | ||
* BulkedExternalInnerJoin bulkedExternalInnerJoin = new BulkedExternalInnerJoin(left, connection, | ||
* "?a <http://www.w3.org/ns/dcat#accessURL> ?c. ", false, null, "?a", "?c"); | ||
* | ||
* | ||
* List<Tuple> tuples = new MockConsumePlanNode(bulkedExternalInnerJoin).asList(); | ||
* | ||
* | ||
* tuples.forEach(System.out::println); | ||
* | ||
* | ||
* assertEquals("[http://b, http://www.w3.org/2000/01/rdf-schema#Resource]", | ||
* Arrays.toString(tuples.get(0).getLine().toArray())); | ||
* assertEquals("[http://d, http://www.w3.org/2000/01/rdf-schema#subPropertyOf]", | ||
* Arrays.toString(tuples.get(1).getLine().toArray())); | ||
* | ||
* | ||
* } } | ||
*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.