An Ash Framework extension that provides a SPARQL data layer for querying RDF data sources.
- SPARQL query generation from Ash queries
- Integration with RDF data sources via SPARQL endpoints
- Support for common SPARQL 1.1 operations
If available in Hex, the package can be installed
by adding ash_sparql to your list of dependencies in mix.exs:
def deps do
[
{:ash_sparql, "~> 0.1.0"}
]
enddefmodule MyApp.Resource do
use Ash.Resource,
data_layer: AshSparql.DataLayer
sparql do
endpoint "http://dbpedia.org/sparql"
# Additional configuration options
end
# Resource configuration
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ash_sparql.