View Source RDF.Query.BGP (RDF.ex v2.0.1)

A struct for Basic Graph Pattern queries.

See RDF.Query and its functions on how to construct this query struct and apply it on RDF.Graphs.

Summary

Functions

Return a list of all variables in a BGP.

Types

@type t() :: %RDF.Query.BGP{triple_patterns: triple_patterns()}
@type triple_pattern() ::
  {subject :: variable() | RDF.Star.Statement.subject(),
   predicate :: variable() | RDF.Star.Statement.predicate(),
   object :: variable() | RDF.Star.Statement.object()}
@type triple_patterns() :: [triple_pattern()]
@type variable() :: String.t()

Functions

@spec variables(any()) :: [atom()]

Return a list of all variables in a BGP.