Name

DB.DBA.SPARQL_EVAL — Local execution of SPARQL via SPARQL protocol, produces a result set of SQL values.

Synopsis

DB.DBA.SPARQL_EVAL ( in query varchar ,
  in dflt_graph varchar ,
  in maxrows integer );
 

Description

Local execution of SPARQL via SPARQL protocol, produces a result set of SQL values.

Parameters

query

text of SPARQL query to execute.

dflt_graph

default graph IRI, if not NULL then this overrides what is specified in query

maxrows

limit on numbers of rows that should be returned.

Return Types

any

Examples

Example 24.302. Simple Use

SQL>DB.DBA.SPARQL_EVAL('SELECT * WHERE {?s ?p ?o}','http://example/bookStore' ,10);
s                     p              o
VARCHAR               VARCHAR        VARCHAR
_______________________________________________________________________________

http://example/book3  http://purl.org/dc/elements/1.1/title  Fundamentals
http://example/book3  http://purl.org/dc/elements/1.1/date   2002-01-01T00:00:00
http://example/book2  http://purl.org/dc/elements/1.1/title  Design notes
http://example/book2  http://purl.org/dc/elements/1.1/date   2001-01-01T00:00:00

4 Rows. -- 30 msec.