Skip to main content

extract_pattern_groups

Function extract_pattern_groups 

Source
pub fn extract_pattern_groups(sparql: &str) -> Result<Vec<PatternGroup>>
Expand description

Extract pattern groups (required and optional) from the graph pattern.

The WHERE keyword is optional per SPARQL 1.1 (WhereClause ::= 'WHERE'? GroupGraphPattern); the group is located whether or not the keyword is spelled.