Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upHTTP 500 error for /author/random #298
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
I get "Internal Server Error" |
fnielsen
added
the
bug
label
Apr 1, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
fnielsen
Apr 1, 2018
Owner
Neither works:
SELECT ?author WHERE {
?author ^wdt:P50 / wdt:P31 wd:Q13442814 .
}
ORDER BY RAND()
LIMIT 1
Neither works:
|
Daniel-Mietchen
added
the
P50-author
label
Aug 23, 2018
Daniel-Mietchen
added this to To do
in Authors
via automation
Aug 29, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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
Two SPARQL queries after each other. SELECT (COUNT(?author) AS ?count) WHERE { [] wdt:P50 [] }
SELECT *
WHERE {
[] wdt:P50 ?author
}
OFFSET {{offset}}
LIMIT 1 Here the bad news is that the last query may return something like "t1105721757" for |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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.
Such "t1105721757" results usually indicate cases where a statement has things like "unknown". |
Daniel-Mietchen commentedApr 1, 2018
as of now
https://tools.wmflabs.org/scholia/author/random .
Noticed in relation to #284 .