query-f04afc4c3ac437c4ef96a4186c8f8f13
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?entity ?entityLabel ?director ?directorLabel ?start ?end WHERE
{
?entity rdfs:label "Biblioteca Acadêmico Luiz Viana Filho"@pt .
?entity p:P1037 ?statement .
?statement ps:P1037 ?director.
OPTIONAL {?statement pq:P580 ?start.}
OPTIONAL {?statement pq:P582 ?end.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "pt-br" . }
} order by ?directorLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?director"):::projected
v1("?directorLabel"):::projected
v6("?end"):::projected
v2("?entity"):::projected
v5("?start"):::projected
v3("?statement")
c2([sBiblioteca Acadêmico Luiz Viana Filho^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal
c8(["bd:serviceParam"]):::iri
c10(["pt-br"]):::literal
v2 --"rdfs:label"--> c2
v2 --"p:P1037"--> v3
v3 --"p:statement/P1037"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P580".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P582".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end