Extracts the graph IRIs declared in FROM and FROM NAMED dataset clauses of a SPARQL query by walking the token stream produced by SparqlLexer.
Dataset clauses appear at the top of every SPARQL query form and satisfy the grammar productions:
DatasetClause ::= FROM ( DefaultGraphClause | NamedGraphClause ) DefaultGraphClause ::= SourceSelector NamedGraphClause ::= NAMED SourceSelector SourceSelector ::= iri
The function:
FROM <iri>
FROM NAMED <iri>
undefined
Optional
The raw SPARQL query text.
An ordered, deduplicated array of graph IRI strings.
Extracts the graph IRIs declared in FROM and FROM NAMED dataset clauses of a SPARQL query by walking the token stream produced by SparqlLexer.
Dataset clauses appear at the top of every SPARQL query form and satisfy the grammar productions:
DatasetClause ::= FROM ( DefaultGraphClause | NamedGraphClause ) DefaultGraphClause ::= SourceSelector NamedGraphClause ::= NAMED SourceSelector SourceSelector ::= iri
The function:
FROM <iri>andFROM NAMED <iri>forms.undefined/ empty input or when no clauses exist.