query-9ee705eabd2046bf14e382dd8c203332

rq turtle/ttl

list of Massachusetts state legislators

included in the Massachusetts Legislative Biography File

compiled by Caleb Tillinghast and Edmund Thomas

in the collection of the Massachusetts State Library

SELECT ?item ?itemLabel ?date_of_birth ?image
?family_nameLabel WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?item wdt:P1343 wd:Q107290461. OPTIONAL { ?item wdt:P569 ?date_of_birth. } OPTIONAL { ?item wdt:P18 ?image. } OPTIONAL { ?item wdt:P734 ?family_name. } } ORDER BY (?family_nameLabel)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# list of Massachusetts state legislators
# included in the Massachusetts Legislative Biography File
# compiled by Caleb Tillinghast and Edmund Thomas
# in the collection of the Massachusetts State Library

SELECT ?item ?itemLabel 
?date_of_birth 
?image  
?family_nameLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?item wdt:P1343 wd:Q107290461.
  OPTIONAL { ?item wdt:P569 ?date_of_birth. }
  OPTIONAL { ?item wdt:P18 ?image. }
  OPTIONAL { ?item wdt:P734 ?family_name. }
}
ORDER BY (?family_nameLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?date_of_birth"):::projected v5("?family_name") v1("?family_nameLabel"):::projected v4("?image"):::projected v2("?item"):::projected c2(["bd:serviceParam"]):::iri c6(["wd:Q107290461"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v2 --"wdt:P1343"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P569".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P734".-> v5 end