org.apache.clerezza.rdf.core.sparql
Class QueryParser
java.lang.Object
org.apache.clerezza.rdf.core.sparql.QueryParser
@Service(value=QueryParser.class)
public class QueryParser
- extends Object
This class implements an OSGi service to provide a method to parse a
SPARQL query and generate a Query object.
- Author:
- hasan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryParser
public QueryParser()
getInstance
public static QueryParser getInstance()
- Returns an instance of this class.
This method is provided due to backward compatibility.
parse
public Query parse(String queryString)
throws ParseException
- Parses a SPARQL query string into a
Query object.
- Parameters:
queryString - SPARQL query string
- Returns:
Query object corresponding to the specified query string
- Throws:
ParseException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.