RDF.Query.BGP (RDF.ex v2.1.0)

View Source

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

t()

@type t() :: %RDF.Query.BGP{triple_patterns: triple_patterns()}

triple_pattern()

@type triple_pattern() ::
  {subject :: variable() | RDF.Star.Statement.subject(),
   predicate :: variable() | RDF.Star.Statement.predicate(),
   object :: variable() | RDF.Star.Statement.object()}

triple_patterns()

@type triple_patterns() :: [triple_pattern()]

variable()

@type variable() :: String.t()

Functions

variables(bgp)

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

Return a list of all variables in a BGP.