Class PrefixDeclProcessor
- java.lang.Object
- 
- org.eclipse.rdf4j.query.parser.sparql.PrefixDeclProcessor
 
- 
 @InternalUseOnly public class PrefixDeclProcessor extends Object Processes the prefix declarations in a SPARQL query model.- Author:
- Arjohn Kampman
 
- 
- 
Constructor SummaryConstructors Constructor Description PrefixDeclProcessor()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>process(ASTOperationContainer qc, Map<String,String> customDefaultPrefixes)Processes prefix declarations in queries.
 
- 
- 
- 
Method Detail- 
processpublic static Map<String,String> process(ASTOperationContainer qc, Map<String,String> customDefaultPrefixes) throws MalformedQueryException Processes prefix declarations in queries. This method collects all prefixes that are declared in the supplied query, verifies that prefixes are not redefined and replaces anyASTQNamenodes in the query with equivalentASTIRInodes.- Parameters:
- qc- The query that needs to be processed.
- customDefaultPrefixes- Custom prefixes to add, will override SPARQL default prefixes. can't be null.
- Returns:
- A map containing the prefixes that are declared in the query (key) and the namespace they map to (value).
- Throws:
- MalformedQueryException- If the query contains redefined prefixes or qnames that use undefined prefixes.
 
 
- 
 
-