public abstract class AbstractSelector extends Object implements TripleSelector
| Modifier and Type | Field and Description |
|---|---|
private String |
endpoint |
private String |
graph |
private static org.slf4j.Logger |
LOGGER |
private Set<String> |
targetClasses |
private boolean |
useSymmetricCbd |
| Constructor and Description |
|---|
AbstractSelector(Set<String> targetClasses,
String endpoint,
String graph) |
AbstractSelector(Set<String> targetClasses,
String endpoint,
String graph,
boolean useSymmetricCbd) |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.apache.jena.rdf.model.Statement> |
getCBD(org.apache.jena.rdf.model.Resource res,
Set<String> targetClasses,
String endpoint,
String graph)
Returns list of triples for a given resource and data source
|
protected List<org.apache.jena.rdf.model.Resource> |
getResources(Set<String> classes)
Get all resources that belong to the union of classes and sort them by
URI in desceding order
|
protected List<org.apache.jena.rdf.model.Statement> |
getSummary(org.apache.jena.rdf.model.Resource r)
Gets a set of statements that summarize a resource r
|
protected List<org.apache.jena.rdf.model.Statement> |
getSymmetricCBD(org.apache.jena.rdf.model.Resource res,
Set<String> targetClasses,
String endpoint,
String graph)
Returns list of triples for a given resource and data source
|
protected void |
sortResources(List<org.apache.jena.rdf.model.Resource> resources) |
protected void |
sortResourcesByHash(List<org.apache.jena.rdf.model.Resource> resources)
Deprecated.
|
protected List<org.apache.jena.rdf.model.Statement> |
sortStatements(Set<org.apache.jena.rdf.model.Statement> statements) |
protected List<org.apache.jena.rdf.model.Statement> |
sortStatements(org.apache.jena.rdf.model.StmtIterator stmtIterator) |
protected List<org.apache.jena.rdf.model.Statement> |
sortStatementsByHash(Set<org.apache.jena.rdf.model.Statement> statements)
Deprecated.
|
protected List<org.apache.jena.rdf.model.Statement> |
sortStatementsByHash(org.apache.jena.rdf.model.StmtIterator stmtIterator)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNextStatementsprivate static final org.slf4j.Logger LOGGER
private String endpoint
private String graph
private boolean useSymmetricCbd
protected List<org.apache.jena.rdf.model.Statement> getSymmetricCBD(org.apache.jena.rdf.model.Resource res, Set<String> targetClasses, String endpoint, String graph)
res - endpoint - graph - protected List<org.apache.jena.rdf.model.Statement> getCBD(org.apache.jena.rdf.model.Resource res, Set<String> targetClasses, String endpoint, String graph)
res - endpoint - graph - @Deprecated protected List<org.apache.jena.rdf.model.Statement> sortStatementsByHash(org.apache.jena.rdf.model.StmtIterator stmtIterator)
stmtIterator - Iterator which is used to get the statementsprotected List<org.apache.jena.rdf.model.Statement> sortStatements(org.apache.jena.rdf.model.StmtIterator stmtIterator)
protected List<org.apache.jena.rdf.model.Statement> sortStatements(Set<org.apache.jena.rdf.model.Statement> statements)
@Deprecated protected List<org.apache.jena.rdf.model.Statement> sortStatementsByHash(Set<org.apache.jena.rdf.model.Statement> statements)
statements - Set of statementsprotected List<org.apache.jena.rdf.model.Resource> getResources(Set<String> classes)
classes - Set of classes for resources@Deprecated protected void sortResourcesByHash(List<org.apache.jena.rdf.model.Resource> resources)
protected void sortResources(List<org.apache.jena.rdf.model.Resource> resources)
protected List<org.apache.jena.rdf.model.Statement> getSummary(org.apache.jena.rdf.model.Resource r)
r - A resourceCopyright © 2020. All rights reserved.