I have the following RDF graph with prefixes
PREFIX r: <http://dbpedia.org/resources/>
PREFIX o: <http://dbpedia.org/ontology/>
And the query
PREFIX r: <http://dbpedia.org/resources/>
PREFIX o: <http://dbpedia.org/ontology/>
SELECT ?s ?author
WHERE {
?s o:type o:Book .
?s o:author ?author .
?author ?incategory r:Category:American_atheists.
}
I am now wondering what the output would look like. I have tried using https://dbpedia.org/sparql but this results in a parsing error.
Is this a proper query anyway ?
The graph has the prefix r for Book and the query has o:Book in the triple.

r:Category:American_atheists.is invalid. Either you use the full URI<http://dbpedia.org/resources/Category:American_atheists>you use an additional prefix for the categories, usually it'sPREFIX dbc: <http://dbpedia.org/resources/Category:>and then writedbc:American_atheistshttp://dbpedia.org/resource/2) it must berdf:typea, i.e.?s a o:Book .