SPARQLExecute[url, query]
executes query on the SPARQL endpoint located at url.
SPARQLExecute
SPARQLExecute[url, query]
executes query on the SPARQL endpoint located at url.
更多信息和选项
- In SPARQLExecute[url,query], query can be a symbolic SPARQL query or update request or a string.
- Possible symbolic query forms include SPARQLSelect, SPARQLAsk and SPARQLConstruct.
范例
基本范例 (1)
Needs["GraphStore`"]Count the triples in Wikidata:
SPARQLExecute[
"https://query.wikidata.org/sparql",
SPARQLSelect[RDFTriple[SPARQLVariable["x"], SPARQLVariable["y"], SPARQLVariable["z"]]] /* SPARQLAggregate["count" -> SPARQLEvaluation["count"][]]
]The same query using a query string:
SPARQLExecute[
"https://query.wikidata.org/sparql",
"select (count(*) as ?count) where {?x ?y ?z}"
]文本
Wolfram Research (2019),SPARQLExecute,Wolfram 语言函数,https://reference.wolfram.com/language/GraphStore/ref/SPARQLExecute.html.
CMS
Wolfram 语言. 2019. "SPARQLExecute." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLExecute.html.
APA
Wolfram 语言. (2019). SPARQLExecute. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GraphStore/ref/SPARQLExecute.html 年
BibTeX
@misc{reference.wolfram_2026_sparqlexecute, author="Wolfram Research", title="{SPARQLExecute}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLExecute.html}", note=[Accessed: 14-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_sparqlexecute, organization={Wolfram Research}, title={SPARQLExecute}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLExecute.html}, note=[Accessed: 14-August-2026]}