Class SPARQLParser
- java.lang.Object
- 
- org.eclipse.rdf4j.query.parser.sparql.SPARQLParser
 
- 
- All Implemented Interfaces:
- QueryParser
 
 public class SPARQLParser extends Object implements QueryParser 
- 
- 
Constructor SummaryConstructors Constructor Description SPARQLParser()Create a new SPARQLParser without any default prefixes.SPARQLParser(Set<org.eclipse.rdf4j.model.Namespace> customPrefixes)Create a new SPARQLParser.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)ParsedQueryparseQuery(String queryStr, String baseURI)ParsedUpdateparseUpdate(String updateStr, String baseURI)
 
- 
- 
- 
Constructor Detail- 
SPARQLParserpublic SPARQLParser(Set<org.eclipse.rdf4j.model.Namespace> customPrefixes) Create a new SPARQLParser.- Parameters:
- customPrefixes- the default namespaces to apply to this parser. null for no prefixes
 
 - 
SPARQLParserpublic SPARQLParser() Create a new SPARQLParser without any default prefixes.
 
- 
 - 
Method Detail- 
parseUpdatepublic ParsedUpdate parseUpdate(String updateStr, String baseURI) throws MalformedQueryException - Specified by:
- parseUpdatein interface- QueryParser
- Throws:
- MalformedQueryException
 
 - 
parseQuerypublic ParsedQuery parseQuery(String queryStr, String baseURI) throws MalformedQueryException - Specified by:
- parseQueryin interface- QueryParser
- Throws:
- MalformedQueryException
 
 - 
mainpublic static void main(String[] args) throws IOException - Throws:
- IOException
 
 
- 
 
-