public class HybridTripleSelector extends AbstractSelector
SimpleSummarySelector and the PathBasedTripleSelector. It
randomly selects whether it should follow the star or the path pattern to
select the next statement that is added to the selected triples.| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER |
private int |
maxSize |
private int |
minSize |
private Random |
r |
private List<org.apache.jena.rdf.model.Resource> |
resources |
private Set<String> |
sourceClasses |
| Constructor and Description |
|---|
HybridTripleSelector(Set<String> sourceClasses,
Set<String> targetClasses,
String endpoint,
String graph)
Constructor
|
HybridTripleSelector(Set<String> sourceClasses,
Set<String> targetClasses,
String endpoint,
String graph,
int minSize,
int maxSize,
long seed)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.jena.rdf.model.Statement> |
getNextStatements()
Returns the next set of statements generated by this selector
|
getCBD, getResources, getSummary, getSymmetricCBD, sortResources, sortResourcesByHash, sortStatements, sortStatements, sortStatementsByHash, sortStatementsByHashprivate static final org.slf4j.Logger LOGGER
private List<org.apache.jena.rdf.model.Resource> resources
private Random r
private int minSize
private int maxSize
public HybridTripleSelector(Set<String> sourceClasses, Set<String> targetClasses, String endpoint, String graph, int minSize, int maxSize, long seed)
sourceClasses - Classes for subjectstargetClasses - Classes for objectsendpoint - SPARQL endpointgraph - Graph to query (null if none)minSize - Minimal size of summarymaxSize - Maximal size of summarypublic List<org.apache.jena.rdf.model.Statement> getNextStatements()
Copyright © 2020. All rights reserved.