public class SparqlIndexer extends AsynchIndexer<com.hp.hpl.jena.rdf.model.Model,Void>
Indexer.IndexerType, Indexer.NoContent| Constructor and Description |
|---|
SparqlIndexer() |
| Modifier and Type | Method and Description |
|---|---|
protected com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP |
buildQueryEngineHTTP(String describeQuery)
Note: Protected for Unit Tests to overwrite.
|
protected com.hp.hpl.jena.update.UpdateRequest |
buildUpdateRequest()
Note: Protected for Unit Tests to overwrite.
|
com.google.common.util.concurrent.ListeningExecutorService |
executorService() |
Indexer.IndexerType |
getIndexerType() |
Callable<Void> |
removeSynch(String subject)
Perform a DESCRIBE query for triples about the Fedora object and remove
all triples with subjects starting with the same subject.
|
void |
setFormUpdates(boolean b)
Set whether to use SPARQL Update or form updates.
|
void |
setQueryBase(String url)
Set base URL for SPARQL Query requests.
|
void |
setUpdateBase(String url)
Set base URL for SPARQL Update requests.
|
Callable<Void> |
updateSynch(String pid,
com.hp.hpl.jena.rdf.model.Model model)
Remove any current triples about the Fedora object and replace them with
the provided content.
|
remove, updatepublic Callable<Void> updateSynch(String pid, com.hp.hpl.jena.rdf.model.Model model)
updateSynch in class AsynchIndexer<com.hp.hpl.jena.rdf.model.Model,Void>public Callable<Void> removeSynch(String subject)
removeSynch in class AsynchIndexer<com.hp.hpl.jena.rdf.model.Model,Void>public Indexer.IndexerType getIndexerType()
public void setFormUpdates(boolean b)
public void setQueryBase(String url)
public void setUpdateBase(String url)
public com.google.common.util.concurrent.ListeningExecutorService executorService()
executorService in class AsynchIndexer<com.hp.hpl.jena.rdf.model.Model,Void>ListeningExecutorService to use for operation.protected com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP buildQueryEngineHTTP(String describeQuery)
protected com.hp.hpl.jena.update.UpdateRequest buildUpdateRequest()
Copyright © 2013–2014 DuraSpace, Inc.. All rights reserved.