query-0ef49343b93cdfeb0db63a9fd6b03250

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?title ?eswiki ?dewiki (GROUP_CONCAT(DISTINCT ?gsprache; SEPARATOR = ", ") AS ?sprachen) ?LTAid (URI(CONCAT("https://www.librarything.com/author/", ?LTAid)) AS ?LTAurl) WHERE {
  {
    ?item wdt:P7400 ?LTAid;
      wdt:P31 ?instanz.
    OPTIONAL {
      ?eowiki schema:about ?item;
        schema:isPartOf <https://es.wikipedia.org/>;
        schema:name ?title.
    }
    OPTIONAL {
      ?dewiki schema:about ?item;
        schema:isPartOf <https://es.wikipedia.org/>;
        schema:name ?de_title.
    }
    OPTIONAL { ?item wdt:P1412 ?sprache. }
    FILTER((BOUND(?eswiki)) && (?instanz = wd:Q5))
    SERVICE wikibase:label {
      bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
      ?sprache rdfs:label ?gsprache.
    }
  }
}
GROUP BY ?item ?title ?eswiki ?dewiki ?LTAid
ORDER BY (?title)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?LTAid"):::projected v12("?LTAurl") v8("?de_title") v7("?dewiki"):::projected v6("?eowiki") v2("?eswiki"):::projected v10("?gsprache"):::projected v3("?instanz") v4("?item"):::projected v9("?sprache") v11("?sprachen") v1("?title"):::projected c10(["bd:serviceParam"]):::iri c6([https://es.wikipedia.org/]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["bound(?eswiki)?instanz = 'wd:Q5'"]] f0 --> v2 f0 --> v3 v4 --"wdt:P7400"--> v5 v4 --"wdt:P31"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v6 -."schema:about".-> v4 v6 --"schema:isPartOf"--> c6 v6 --"schema:name"--> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v7 -."schema:about".-> v4 v7 --"schema:isPartOf"--> c6 v7 --"schema:name"--> v8 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P1412".-> v9 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 v9 --"rdfs:label"--> v10 end bind2[/"?gsprache"/] v10 --o bind2 bind2 --as--o v11 bind3[/"concat('https://www.librarything.com/author/',?LTAid)"/] v5 --o bind3 bind3 --as--o v12