Class SPARQLParserFactory
java.lang.Object
org.eclipse.rdf4j.query.parser.sparql.SPARQLParserFactory
- All Implemented Interfaces:
QueryParserFactory
A
QueryParserFactory
for SPARQL parsers.- Author:
- Arjohn Kampman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a shared, thread-safe, instance of SPARQLParser.ReturnsQueryLanguage.SPARQL
.
-
Constructor Details
-
SPARQLParserFactory
public SPARQLParserFactory()
-
-
Method Details
-
getQueryLanguage
ReturnsQueryLanguage.SPARQL
.- Specified by:
getQueryLanguage
in interfaceQueryParserFactory
-
getParser
Returns a shared, thread-safe, instance of SPARQLParser.- Specified by:
getParser
in interfaceQueryParserFactory
-
getParser
- Parameters:
customPrefixes
- the default prefixes- Returns:
- a parser with predefined custom default prefixes.
-