SPARQLLimit[l]
最初の l 個の解を与えるクエリ演算子である.
SPARQLLimit[l,o]
最初の o 個の解を飛ばす.
SPARQLLimit
SPARQLLimit[l]
最初の l 個の解を与えるクエリ演算子である.
SPARQLLimit[l,o]
最初の o 個の解を飛ばす.
詳細とオプション
- 演算子SPARQLSelect[…]/*…/*SPARQLLimit[…]/*…のRightCompositionをSPARQLExecuteで使ってSPARQL Endpointのクエリを行うことができる.Compositionもサポートされている.
- SPARQLLimitは,通常はSPARQLOrderByの後に適用される.
例題
すべて開く すべて閉じる例 (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]
]特性と関係 (1)
Needs["GraphStore`"]sols = Table[<|"x" -> i|>, {i, 10}];lim = 3;off = 4;sols//SPARQLLimit[lim, off]Takeを使って同じことを行う:
Take[sols, {off + 1, off + lim}]Take[Drop[sols, off], lim]関連するガイド
テキスト
Wolfram Research (2020), SPARQLLimit, Wolfram言語関数, 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: 07-August-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: 07-August-2026]}