SPARQLDistinct[]
is a query operator that deletes duplicate solutions.


SPARQLDistinct
SPARQLDistinct[]
is a query operator that deletes duplicate solutions.
Details and Options
- A RightComposition of operators SPARQLSelect[…]/*…/*SPARQLDistinct[]/*… can be used in SPARQLExecute to query a SPARQL endpoint. Composition is also supported.
- SPARQLDistinct[] can be applied to the result of a SPARQLSelect query.
- Solutions are represented as associations.
- SPARQLDistinct[] treats associations that differ only in the order of their keys as the same.
Examples
open all close allProperties & Relations (1)
The first two associations differ only in the order of their keys:
DeleteDuplicates treats associations with keys in a different order as different:
Related Guides
Text
Wolfram Research (2020), SPARQLDistinct, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLDistinct.html.
CMS
Wolfram Language. 2020. "SPARQLDistinct." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLDistinct.html.
APA
Wolfram Language. (2020). SPARQLDistinct. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/SPARQLDistinct.html
BibTeX
@misc{reference.wolfram_2025_sparqldistinct, author="Wolfram Research", title="{SPARQLDistinct}", year="2020", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLDistinct.html}", note=[Accessed: 17-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_sparqldistinct, organization={Wolfram Research}, title={SPARQLDistinct}, year={2020}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLDistinct.html}, note=[Accessed: 17-August-2025]}