Triply-Dev / YASGUI.YASQE-deprecated

Deprecated, see https://github.com/TriplyDB/Yasgui for the Yasgui monorepo
MIT License
73 stars 36 forks source link

Query error on count distinct #82

Closed zorino closed 8 years ago

zorino commented 8 years ago

image

SELECT COUNT DISTINCT ?X should be valid

LaurensRietveld commented 8 years ago

Are you sure? This is not valid according to the SPARQL spec: https://www.w3.org/TR/sparql11-query/#rSelectClause Endpoints such as virtuoso are a bit more flexible though, and deviated from the SPARQL spec

LaurensRietveld commented 8 years ago

fyi, the valid version of your query

SELECT (COUNT(DISTINCT ?variable) as ?c) WHERE {
 ?variable ?pred ?obj   
}
zorino commented 8 years ago

sorry about that you're right, I should've checked the sparql spec first, thank you