Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COUNT(distinct ?s) doesn't work with a remote endpoint #54

Open
rudenis opened this issue May 27, 2013 · 3 comments
Open

COUNT(distinct ?s) doesn't work with a remote endpoint #54

rudenis opened this issue May 27, 2013 · 3 comments
Labels
bug sparql+ ARC2 version of SPARQL waiting for feedback Waiting for essential feedback of one of the parties in the conversation.

Comments

@rudenis
Copy link

rudenis commented May 27, 2013

This test query -

select ?s (COUNT(distinct ?s) AS ?count)
where {
?s a ?Concept .
FILTER (?s = http://dbpedia.org/ontology/deathDate)
}
GROUP BY ?s
LIMIT 1

should work at the dbpedia endpoint.

With arc2 it works only without 'distinct', i.e. as -

select ?s (COUNT(?s) AS ?count)

EDIT by @k00ni: Formatted the SPARQL queries.

@ross-spencer
Copy link

I'm finding the same for a local endpoint, so query:

No result bindings specified. in ARC2_SPARQLPlusParser

SELECT (COUNT(DISTINCT ?s) as ?total)
WHERE {
{
 ?s  <http://digipres.org/formats/sources/pronom/formats/#hasMagic> "true" . 
} UNION {
 ?s  <http://the-fr.org/prop/format-registry/hasPRONOMContainerMagic> "true" .
}
}

Endpoint: http://the-fr.org/public/sparql/endpoint.php?

Query URL: http://the-fr.org/public/sparql/endpoint.php?query=SELECT+%28COUNT%28DISTINCT+%3Fs%29+as+%3Ftotal%29%0D%0AWHERE+%7B%0D%0A%7B%0D%0A+%3Fs++%3Chttp%3A%2F%2Fdigipres.org%2Fformats%2Fsources%2Fpronom%2Fformats%2F%23hasMagic%3E+%22true%22+.+%0D%0A%7D+UNION+%7B%0D%0A+%3Fs++%3Chttp%3A%2F%2Fthe-fr.org%2Fprop%2Fformat-registry%2FhasPRONOMContainerMagic%3E+%22true%22+.%0D%0A%7D%0D%0A%7D%0D%0A&output=tsv&jsonp=&key=&show_inline=1

@johanneshahn

This comment has been minimized.

@k00ni k00ni added bug sparql+ ARC2 version of SPARQL labels Jun 14, 2018
@k00ni
Copy link
Collaborator

k00ni commented Jun 14, 2018

Hi, anyone find a solution/workaround for this?

@k00ni k00ni added the waiting for feedback Waiting for essential feedback of one of the parties in the conversation. label Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug sparql+ ARC2 version of SPARQL waiting for feedback Waiting for essential feedback of one of the parties in the conversation.
Projects
None yet
Development

No branches or pull requests

4 participants