Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the cl-sparql Reference Manual, version 0.0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Wed Jun 15 04:03:27 2022 GMT+0.
Next: Systems, Previous: The cl-sparql Reference Manual, Up: The cl-sparql Reference Manual [Contents][Index]
SPARQL query builder for Common Lisp.
(sparql (:select * :where (?x ?y ?z)))
(sparql
(:select *
:where (?x ?y ?z)
:limit 20
:offset 10))
(sparql
(:select *
:where (?x ?y ?z)
(:select *
:where (?x ?y ?z)
:limit 20
:offset 10)
:limit 20
:offset 10))
Enable special URI syntax with (sparql:enable-uri-syntax)
.
After that, you can write uris like:
#u<rdf:type>
and you get the expanded uri:
#<PURI:URI http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
.
Use define-uri-prefix
to define new uri prefixes expansions, like:
(define-uri-prefix rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#")
(define-uri-prefix xsd "http://www.w3.org/2001/XMLSchema#")
(define-uri-prefix ex "http://www.franz.com/things#")
(define-uri-prefix rdfs "http://www.w3.org/2000/01/rdf-schema#")
(define-uri-prefix fn "http://www.w3.org/2005/xpath-functions#")
(define-uri-prefix err "http://www.w3.org/2005/xqt-errors#")
(define-uri-prefix owl "http://www.w3.org/2002/07/owl#")
(define-uri-prefix xs "http://www.w3.org/2001/XMLSchema#")
Those are already defined.
(sparql
(:select ?x ?v ?z
:where (?x #u<rdf:type> #u<owl:Ontology>)
(?y ?v ?w)
(:optional (?x ?y ?z))
:limit 20))
I think the embedded domain specific language technique used is interesting. parser-combinators
library is used, but, instead of using for parsing strings, it is used for parsing already read Lisp lists.
MIT
Next: Files, Previous: Introduction, Up: The cl-sparql Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
SPARQL query builder for Common Lisp
Mariano Montone <marianomontone@gmail.com>
MIT
0.0.1
Next: Packages, Previous: Systems, Up: The cl-sparql Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: cl-sparql/package.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
cl-sparql (system).
Next: cl-sparql/sparql.lisp, Previous: cl-sparql/cl-sparql.asd, Up: Lisp [Contents][Index]
cl-sparql (system).
Next: cl-sparql/uri.lisp, Previous: cl-sparql/package.lisp, Up: Lisp [Contents][Index]
package.lisp (file).
cl-sparql (system).
Previous: cl-sparql/sparql.lisp, Up: Lisp [Contents][Index]
sparql.lisp (file).
cl-sparql (system).
Next: Definitions, Previous: Files, Up: The cl-sparql Reference Manual [Contents][Index]
Packages are listed by definition order.
Next: Indexes, Previous: Packages, Up: The cl-sparql Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Public Interface, Up: Public Interface [Contents][Index]
Next: Generic functions, Previous: Macros, Up: Public Interface [Contents][Index]
Previous: Ordinary functions, Up: Public Interface [Contents][Index]
Previous: Public Interface, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Internals, Up: Internals [Contents][Index]
Next: Generic functions, Previous: Special variables, Up: Internals [Contents][Index]
Join adjacent strings in a list, leave other values intact.
Parser: parse a SPARQL variable.
Concatenate a list of strings into a single one.
Parser: transform and return the result, when the transformation applies (not null)
Previous: Ordinary functions, Up: Internals [Contents][Index]
Previous: Definitions, Up: The cl-sparql Reference Manual [Contents][Index]
Jump to: | C D E F G I M P R S T U W |
---|
Jump to: | C D E F G I M P R S T U W |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Jump to: | C F P S U |
---|
Jump to: | C F P S U |
---|