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 and Options

  • 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.

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2023_sparqloptional, organization={Wolfram Research}, title={SPARQLOptional}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLOptional.html}, note=[Accessed: 19-April-2024 ]}