Class SPARQLParserFactory
- java.lang.Object
-
- org.eclipse.rdf4j.query.parser.sparql.SPARQLParserFactory
-
- All Implemented Interfaces:
QueryParserFactory
public class SPARQLParserFactory extends Object implements QueryParserFactory
AQueryParserFactory
for SPARQL parsers.- Author:
- Arjohn Kampman
-
-
Constructor Summary
Constructors Constructor Description SPARQLParserFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryParser
getParser()
Returns a shared, thread-safe, instance of SPARQLParser.QueryParser
getParser(Set<Namespace> customPrefixes)
QueryLanguage
getQueryLanguage()
ReturnsQueryLanguage.SPARQL
.
-
-
-
Method Detail
-
getQueryLanguage
public QueryLanguage getQueryLanguage()
ReturnsQueryLanguage.SPARQL
.- Specified by:
getQueryLanguage
in interfaceQueryParserFactory
-
getParser
public QueryParser getParser()
Returns a shared, thread-safe, instance of SPARQLParser.- Specified by:
getParser
in interfaceQueryParserFactory
-
getParser
public QueryParser getParser(Set<Namespace> customPrefixes)
- Parameters:
customPrefixes
- the default prefixes- Returns:
- a parser with predefined custom default prefixes.
-
-