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

HTTP 500 error for /author/random #298

Open
Daniel-Mietchen opened this Issue Apr 1, 2018 · 4 comments

Comments

Projects
2 participants
@Daniel-Mietchen
Collaborator

Daniel-Mietchen commented Apr 1, 2018

as of now
https://tools.wmflabs.org/scholia/author/random .

Noticed in relation to #284 .

@fnielsen

This comment has been minimized.

Show comment
Hide comment
@fnielsen

fnielsen Apr 1, 2018

Owner

I get "Internal Server Error"

Owner

fnielsen commented Apr 1, 2018

I get "Internal Server Error"

@fnielsen fnielsen added the bug label Apr 1, 2018

@fnielsen

This comment has been minimized.

Show comment
Hide comment
@fnielsen

fnielsen Apr 1, 2018

Owner

Neither works:

SELECT ?author WHERE {
  ?author ^wdt:P50 / wdt:P31 wd:Q13442814 .
}
ORDER BY RAND()
LIMIT 1
Owner

fnielsen commented Apr 1, 2018

Neither works:

SELECT ?author WHERE {
  ?author ^wdt:P50 / wdt:P31 wd:Q13442814 .
}
ORDER BY RAND()
LIMIT 1

@Daniel-Mietchen Daniel-Mietchen added this to To do in Authors via automation Aug 29, 2018

@fnielsen

This comment has been minimized.

Show comment
Hide comment
@fnielsen

fnielsen Sep 20, 2018

Owner

Two SPARQL queries after each other.

SELECT (COUNT(?author) AS ?count) WHERE { [] wdt:P50 [] }

?offset = ?count * RAND()

SELECT *
WHERE {
  [] wdt:P50 ?author
}
OFFSET {{offset}}
LIMIT 1

Here the bad news is that the last query may return something like "t1105721757" for ?author

Owner

fnielsen commented Sep 20, 2018

Two SPARQL queries after each other.

SELECT (COUNT(?author) AS ?count) WHERE { [] wdt:P50 [] }

?offset = ?count * RAND()

SELECT *
WHERE {
  [] wdt:P50 ?author
}
OFFSET {{offset}}
LIMIT 1

Here the bad news is that the last query may return something like "t1105721757" for ?author

@Daniel-Mietchen

This comment has been minimized.

Show comment
Hide comment
@Daniel-Mietchen

Daniel-Mietchen Sep 26, 2018

Collaborator

Such "t1105721757" results usually indicate cases where a statement has things like "unknown".
I suppose this is a bug in the serialization - not sure whether there is a Phabricator ticket for this.

Collaborator

Daniel-Mietchen commented Sep 26, 2018

Such "t1105721757" results usually indicate cases where a statement has things like "unknown".
I suppose this is a bug in the serialization - not sure whether there is a Phabricator ticket for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment