public class ProvaSparqlAskImpl extends ProvaSparqlQueryImpl
Usage:
sparql_ask(Connection, QueryStr, QueryID)
sparql_ask executes a SPARQL ask query on the given
repository connection. After successful execution, it creates a
fact in the knowledge base using the sparql_results predicate
and QueryID as the first term.
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_ask(Connection, "ASK WHERE { <...> <...> <...> . }", QueryID),
sparql_results(QueryID).
kb| Constructor and Description |
|---|
ProvaSparqlAskImpl(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 ProvaSparqlAskImpl(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.