What is the difference between DISTINCT and REDUCED in SPARQL?
What is the difference between DISTINCT and REDUCED in SPARQL?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
REDUCED is like a ‘best effort’ DISTINCT. Whereas DISTINCT guarantees no duplicated results, REDUCED may eliminate some, all, or no duplicates.
What’s the point? Well DISTINCT can be expensive; REDUCED can do the straightforward de-duplication work (e.g. remove immediately repeated results) without having to remember every row. In many applications that’s good enough.
Having said that I’ve never used REDUCE, I’ve never seen anyone use REDUCED, and never seen REDUCED mentioned in a talk or tutorial.