public class DatasetGraphText
extends com.hp.hpl.jena.sparql.core.DatasetGraphMonitor
implements com.hp.hpl.jena.sparql.core.Transactional
| Constructor and Description |
|---|
DatasetGraphText(com.hp.hpl.jena.sparql.core.DatasetGraph dsg,
TextIndex index,
TextDocProducer producer) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
begin(com.hp.hpl.jena.query.ReadWrite readWrite) |
void |
commit() |
void |
end() |
com.hp.hpl.jena.graph.Graph |
getDefaultGraph() |
com.hp.hpl.jena.graph.Graph |
getGraph(com.hp.hpl.jena.graph.Node graphNode) |
TextIndex |
getTextIndex() |
boolean |
isInTransaction() |
Iterator<com.hp.hpl.jena.graph.Node> |
search(String queryString)
Search the text index on the default text field
|
Iterator<com.hp.hpl.jena.graph.Node> |
search(String queryString,
int limit)
Search the text index on the default text field
|
Iterator<com.hp.hpl.jena.graph.Node> |
search(String queryString,
com.hp.hpl.jena.graph.Node predicate)
Search the text index on the text field associated with the predicate
|
Iterator<com.hp.hpl.jena.graph.Node> |
search(String queryString,
com.hp.hpl.jena.graph.Node predicate,
int limit)
Search the text index on the text field associated with the predicate
|
add, add, addGraph, delete, delete, deleteAny, getMonitor, monitored, removeGraph, syncpublic DatasetGraphText(com.hp.hpl.jena.sparql.core.DatasetGraph dsg,
TextIndex index,
TextDocProducer producer)
public com.hp.hpl.jena.graph.Graph getDefaultGraph()
getDefaultGraph in interface com.hp.hpl.jena.sparql.core.DatasetGraphgetDefaultGraph in class com.hp.hpl.jena.sparql.core.DatasetGraphWrapperpublic com.hp.hpl.jena.graph.Graph getGraph(com.hp.hpl.jena.graph.Node graphNode)
getGraph in interface com.hp.hpl.jena.sparql.core.DatasetGraphgetGraph in class com.hp.hpl.jena.sparql.core.DatasetGraphWrapperpublic TextIndex getTextIndex()
public Iterator<com.hp.hpl.jena.graph.Node> search(String queryString)
public Iterator<com.hp.hpl.jena.graph.Node> search(String queryString, com.hp.hpl.jena.graph.Node predicate)
public Iterator<com.hp.hpl.jena.graph.Node> search(String queryString, int limit)
public Iterator<com.hp.hpl.jena.graph.Node> search(String queryString, com.hp.hpl.jena.graph.Node predicate, int limit)
public void begin(com.hp.hpl.jena.query.ReadWrite readWrite)
begin in interface com.hp.hpl.jena.sparql.core.Transactionalpublic void commit()
commit in interface com.hp.hpl.jena.sparql.core.Transactionalpublic void abort()
abort in interface com.hp.hpl.jena.sparql.core.Transactionalpublic boolean isInTransaction()
isInTransaction in interface com.hp.hpl.jena.sparql.core.Transactionalpublic void end()
end in interface com.hp.hpl.jena.sparql.core.TransactionalLicenced under the Apache License, Version 2.0