query-1e85e29d76f54d89c457e9edd65c2cef

rq turtle/ttl

and when styled as a named subquery, gets a JSON.parse error

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT * WHERE
{
   { SELECT * WHERE 
{

  SERVICE <http://bnb.data.bl.uk/sparql> {
     SELECT ?author ?authorWD WHERE {
       ?author owl:sameAs ?authorWD 
       filter regex(?authorWD,"Q42$")
         } } } }  ?item wdt:P31 ?P31 .          
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?P31"):::projected v2("?author"):::projected v1("?authorWD"):::projected v3("?item"):::projected subgraph s1["http://bnb.data.bl.uk/sparql"] style s1 stroke-width:4px; f0[["regex(?authorWD,'Q42$')"]] f0 --> v1 v2 --"owl:sameAs"--> v1 end v3 --"wdt:P31"--> v4