GraphStore`
GraphStore`

SPARQLOptional

SPARQLOptional[patt]

represents part of a pattern that does not need to match in order for the whole pattern to match.

Details

  • In SPARQLOptional[patt], patt can take the same form as in SPARQLSelect[patt].

Examples

Basic Examples  (1)

Data about fruits:

Find the color and optionally the shape of fruits:

Wolfram Research (2019), SPARQLOptional, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLOptional.html.

Text

Wolfram Research (2019), SPARQLOptional, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLOptional.html.

BibTeX

@misc{reference.wolfram_2021_sparqloptional, author="Wolfram Research", title="{SPARQLOptional}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLOptional.html}", note=[Accessed: 21-June-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_sparqloptional, organization={Wolfram Research}, title={SPARQLOptional}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLOptional.html}, note=[Accessed: 21-June-2021 ]}

CMS

Wolfram Language. 2019. "SPARQLOptional." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLOptional.html.

APA

Wolfram Language. (2019). SPARQLOptional. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/SPARQLOptional.html