public class ProvaSparqlSelectImpl extends ProvaSparqlQueryImpl
Usage:
sparql_select(Connection, QueryStr, QueryID)
`sparql_select` executes a SPARQL select query on the given
repository connection. After successful execution, it binds the result set of
the query to the `sparql_results` predicate, using `QueryID`
as the first term and the requested SPARQL variables as the remaining terms,
in the order they were specified in the SPARQL query.
`QueryID` can be either a constant term or a variable, in the latter
case it is assigned a random identifier number.
Example:
sparql_connect(Connection, "http://dbpedia.org/sparql"),
sparql_select(Connection, "SELECT * WHERE { ?a ?b ?c . }", QueryID),
sparql_results(QueryID, A, B, C),
println([A, " ", B, " ", C, " ."]).
kb| Constructor and Description |
|---|
ProvaSparqlSelectImpl(ProvaKnowledgeBase kb) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
processQuery(ProvaPredicate pred,
ProvaConstant cqid,
org.eclipse.rdf4j.repository.RepositoryConnection con,
java.lang.String sparql_query) |
getArity, processaddClause, addClauseA, equals, getClauseSet, getKnowledgeBase, getSymbol, process_, setKnowledgeBasepublic ProvaSparqlSelectImpl(ProvaKnowledgeBase kb)
protected boolean processQuery(ProvaPredicate pred, ProvaConstant cqid, org.eclipse.rdf4j.repository.RepositoryConnection con, java.lang.String sparql_query)
processQuery in class ProvaSparqlQueryImplCopyright © 2019. All Rights Reserved.