SPARQL.ex v0.2.3 SPARQL.Query View Source
A structure for SPARQL queries.
Link to this section Summary
Functions
A user-defined map of prefixes that is available on every query
Creates a SPARQL.Query
struct
The map of standard prefixes that is available on every query
Creates a SPARQL.Query
struct from a SPARQL language string
Link to this section Types
Link to this section Functions
A user-defined map of prefixes that is available on every query.
By default the standard_prefixes/0
are assumed to be available on every query.
Additional default prefixes can be defined via the default_prefixes
configuration.
For example:
config :sparql,
default_prefixes: %{
ex: "http://example.com/"
}
The default_prefixes
take precedence over the standard_prefixes/0
and can
be overwritten.
Creates a SPARQL.Query
struct.
The default_prefixes
option, allows to set additional default prefixes above
the SPARQL.Query.standard_prefixes/0
and the configured
SPARQL.Query.default_prefixes/0
. The special value :none
will disable all
default prefixes.
The map of standard prefixes that is available on every query.
%{
rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
rdfs: "http://www.w3.org/2000/01/rdf-schema#",
xsd: "http://www.w3.org/2001/XMLSchema#"
}
Creates a SPARQL.Query
struct from a SPARQL language string.
The default_prefixes
option, allows to set additional default prefixes above
the SPARQL.Query.standard_prefixes/0
and the configured
SPARQL.Query.default_prefixes/0
. The special value :none
will disable all
default prefixes.