|
SparqlServiceBase
Represents the base class for various sparql services.
Autogenerated note: this page is automatically generated from embedded documentation in the PHP source. OverviewConstructors
Methods
Constructor DetailSparqlServiceBasepublic SparqlServiceBase(mixed uri, mixed credentials, mixed request_factory) Create a new instance of this class
Method Detailaskpublic void ask(mixed query) Execute an ask sparql query
construct_to_simple_graphpublic void construct_to_simple_graph(mixed query)
construct_to_triple_listpublic void construct_to_triple_list(mixed query)
describepublic void describe(mixed uri, mixed type, mixed output) Obtain a bounded description of a given resource. Various types of description are supported:
describe_to_simple_graphpublic void describe_to_simple_graph(mixed uri, mixed type) Obtain a bounded description of a given resource as a SimpleGraph. An empty SimpleGraph is returned if any HTTP errors occur.
describe_to_triple_listpublic void describe_to_triple_list(mixed uri)
graphpublic void graph(mixed query, mixed output) Execute a graph type sparql query, i.e. a describe or a construct
graph_to_simple_graphpublic void graph_to_simple_graph(mixed query) Execute a graph type sparql query and obtain the result as a SimpleGraph. An empty SimpleGraph is returned if any HTTP errors occur.
graph_to_triple_listpublic void graph_to_triple_list(mixed query)
parse_ask_resultspublic void parse_ask_results(mixed xml) Parse the SPARQL XML results format from an ask query.
parse_select_resultspublic void parse_select_results(mixed xml) Parse the SPARQL XML results format into an array. The array consist of one element per result. Each element is an associative array where the keys correspond to the variable name and the values are another associative array with the following keys:
querypublic void query(mixed query, mixed mime) Execute an arbitrary query on the sparql service. Will use GET for short queries to enhance cacheability.
selectpublic void select(mixed query) Execute a select sparql query
select_to_arraypublic void select_to_array(mixed query) Execute a select sparql query and return the results as an array. An empty array is returned if any HTTP errors occur.
Generated by PHPDoctor 2RC2 | |