10 library(semweb/sparql_client): SPARQL client library
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Packages
SWI-Prolog Semantic Web Library 3.0
library(semweb/sparql_client): SPARQL client library
sparql_query/3
sparql_set_server/1
sparql_read_xml_result/2
sparql_read_json_result/2
Availability:
:- use_module(
library(semweb/sparql_client)
).
sparql_read_xml_result
(
+Input, -Result
)
Specs from
http://www.w3.org/TR/rdf-sparql-XMLres/
. The returned
Result
term is of the format:
select
(
VarNames, Rows
)
Where
VarNames
is a term
v(Name, ...)
and
Rows
is a list of
row(....)
containing the column values in the same order as the variable names.
ask
(
Bool
)
Where
Bool
is either
true
or
false