rdf-ex/lib/rdf/query/bgp/matcher.ex
2020-06-29 10:37:42 +02:00

16 lines
404 B
Elixir

defmodule RDF.Query.BGP.Matcher do
@moduledoc !"""
An interface for various BGP matching algorithm implementations.
"""
alias RDF.Query.BGP
alias RDF.Graph
@type solution :: map
@type solutions :: [solution]
@callback execute(BGP.t(), Graph.t(), opts :: Keyword.t()) :: solutions
@callback stream(BGP.t(), Graph.t(), opts :: Keyword.t()) :: Enumerable.t()
end