SPARQLLimit[l]
is a query operator that yields the first l solutions.
SPARQLLimit[l,o]
skips the first o solutions.
SPARQLLimit
SPARQLLimit[l]
is a query operator that yields the first l solutions.
SPARQLLimit[l,o]
skips the first o solutions.
Details and Options
- A RightComposition of operators SPARQLSelect[…]/*…/*SPARQLLimit[…]/*… can be used in SPARQLExecute to query a SPARQL endpoint. Composition is also supported.
- SPARQLLimit is usually applied after SPARQLOrderBy.
Examples
open all close allBasic Examples (1)
Needs["GraphStore`"]books = GraphStore`RDFStore[{GraphStore`RDFTriple[URL["http://example.org/gravitation"],
URL["https://schema.org/datePublished"], DateObject[{1973}, "Year", "Gregorian", 2.]],
GraphStore`RDFTriple[URL["http://example.org/faust"], URL["https://schema.org/datePublished"],
DateObject[{1808}, "Year", "Gregorian", 2.]]}, Association[]];select = SPARQLSelect[RDFTriple[SPARQLVariable["book"], URL["https://schema.org/datePublished"], SPARQLVariable["date"]]];books//SPARQLQuery[
select /* SPARQLOrderBy[SPARQLVariable["date"]] /* SPARQLLimit[1]
]Properties & Relations (1)
Needs["GraphStore`"]sols = Table[<|"x" -> i|>, {i, 10}];Extract 3 solutions, skipping the first 4:
lim = 3;off = 4;sols//SPARQLLimit[lim, off]The same using Take:
Take[sols, {off + 1, off + lim}]Take[Drop[sols, off], lim]Related Guides
Text
Wolfram Research (2020), SPARQLLimit, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLLimit.html.
CMS
Wolfram Language. 2020. "SPARQLLimit." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLLimit.html.
APA
Wolfram Language. (2020). SPARQLLimit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/SPARQLLimit.html
BibTeX
@misc{reference.wolfram_2026_sparqllimit, author="Wolfram Research", title="{SPARQLLimit}", year="2020", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLLimit.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_sparqllimit, organization={Wolfram Research}, title={SPARQLLimit}, year={2020}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLLimit.html}, note=[Accessed: 15-June-2026]}