Module org.apache.jena.querybuilder
Interface PrologClause<T extends AbstractQueryBuilder<T>>
- Type Parameters:
T
- The Builder type that the clause is part of.
- All Known Implementing Classes:
AbstractQueryBuilder
,AskBuilder
,ConstructBuilder
,DescribeBuilder
,SelectBuilder
,WhereBuilder
public interface PrologClause<T extends AbstractQueryBuilder<T>>
Interface that defines the PrologClause as per
http://www.w3.org/TR/2013/REC-sparql11-query-20130321/#rPrologue
-
Method Summary
Modifier and TypeMethodDescriptionAdds a prefix.Adds a prefix.Adds a prefix.addPrefixes
(Map<String, String> prefixes) Adds prefixes.addPrefixes
(org.apache.jena.shared.PrefixMapping prefixes) Adds prefixes.Get the expression factory that works with the prefixes for this builder.Get the prolog handler for this clause.Sets the base URI.Sets the base URI.
-
Method Details
-
getPrologHandler
PrologHandler getPrologHandler()Get the prolog handler for this clause.- Returns:
- The PrologHandler this clause is using.
-
getExprFactory
ExprFactory getExprFactory()Get the expression factory that works with the prefixes for this builder.- Returns:
- an ExprFactory for this builder.
-
addPrefix
Adds a prefix.- Parameters:
pfx
- The prefix.uri
- The URI for the prefix- Returns:
- This builder for chaining.
-
addPrefix
Adds a prefix.- Parameters:
pfx
- The prefix.uri
- The URI for the prefix- Returns:
- This builder for chaining.
-
addPrefix
Adds a prefix.- Parameters:
pfx
- The prefix.uri
- The URI for the prefix- Returns:
- This builder for chaining.
-
addPrefixes
Adds prefixes.- Parameters:
prefixes
- A mapping of prefix to URI to add.- Returns:
- This builder for chaining.
-
setBase
Sets the base URI. SeeAbstractQueryBuilder.makeNode(java.lang.Object)
for conversion of the uri param. The resulting Node must be a URI.- Parameters:
uri
- The base URI to use.- Returns:
- This builder for chaining.
-
setBase
Sets the base URI.- Parameters:
uri
- The base URI to use.- Returns:
- This builder for chaining.
-