GraphStore`
GraphStore`

SPARQLFilter

SPARQLFilter[expr]

represents a filter in a SPARQL graph pattern.

更多信息和选项

  • A filter can appear anywhere inside a list of SPARQL patterns.
  • A list of SPARQL patterns is known as a group graph pattern.
  • expr typically contains SPARQLVariable objects.
  • expr typically is an expression that evaluates to a Boolean. Examples include SPARQLVariable["x"]>5 and SPARQLEvaluation["strstarts"][SPARQLVariable["title"],"A"].
  • A group graph pattern {patt1,,SPARQLFilter[expr],} matches a list of triples if all the patterns patti match and values for variables from those matches, when substituted into the expression expr, make the expression evaluate to True.

范例

打开所有单元关闭所有单元

基本范例  (1)

Data about books:

Find books published before 1850:

Properties & Relations  (1)

Export a query containing a filter as a SPARQL string:

Wolfram Research (2020),SPARQLFilter,Wolfram 语言函数,https://reference.wolfram.com/language/GraphStore/ref/SPARQLFilter.html.

文本

Wolfram Research (2020),SPARQLFilter,Wolfram 语言函数,https://reference.wolfram.com/language/GraphStore/ref/SPARQLFilter.html.

CMS

Wolfram 语言. 2020. "SPARQLFilter." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLFilter.html.

APA

Wolfram 语言. (2020). SPARQLFilter. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GraphStore/ref/SPARQLFilter.html 年

BibTeX

@misc{reference.wolfram_2024_sparqlfilter, author="Wolfram Research", title="{SPARQLFilter}", year="2020", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLFilter.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_sparqlfilter, organization={Wolfram Research}, title={SPARQLFilter}, year={2020}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLFilter.html}, note=[Accessed: 22-November-2024 ]}