Class ParserSPARQLExt
- java.lang.Object
-
- org.apache.jena.sparql.lang.SPARQLParser
-
- fr.mines_stetienne.ci.sparql_generate.lang.ParserSPARQLExt
-
public class ParserSPARQLExt extends SPARQLParser
Class to parse a SPARQL-Generate query. Use preferably ARQ methods to parse queries, but then cast the returned query to aSPARQLExtQuery
. For instance:SPARQLExtQuery q = (SPARQLExtQuery) QueryFactory.create(query, SPARQLGenerate.SYNTAX);
- Author:
- Maxime Lefrançois
-
-
Constructor Summary
Constructors Constructor Description ParserSPARQLExt()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Query
parse$(Query query, String queryString)
Parses the query.static SPARQLExtQuery
parseSubQuery(String queryString)
Parses the query.static SPARQLExtQuery
parseSubQuery(Query query, String queryString)
Parses the query.protected void
validateParsedQuery(Query query)
-
Methods inherited from class org.apache.jena.sparql.lang.SPARQLParser
canParse, createParser, parse
-
-
-
-
Method Detail
-
parse$
protected Query parse$(Query query, String queryString)
Parses the query.- Specified by:
parse$
in classSPARQLParser
- Parameters:
query
-queryString
-- Returns:
-
parseSubQuery
public static SPARQLExtQuery parseSubQuery(Query query, String queryString)
Parses the query.- Parameters:
query
-queryString
-- Returns:
-
parseSubQuery
public static SPARQLExtQuery parseSubQuery(String queryString)
Parses the query.- Parameters:
queryString
-- Returns:
-
validateParsedQuery
protected void validateParsedQuery(Query query)
- Overrides:
validateParsedQuery
in classSPARQLParser
-
-