query-2a95d3c294dd721dae625879d4fa2886
Propertiescontributor to the creative work or subject (P767)instance of (P31)Library of Congress authority ID (P244)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX bf: <http://bibframe.org/vocab/>
PREFIX relators: <http://id.loc.gov/vocabulary/relators/>
CONSTRUCT {
?s bf:contributor ?lccnURI;
relators:cbt ?lccnURI;
bf:contributor [
a bf:Contributor;
bf:role "creator";
bf:agent ?lccnURI
].
?lccnURI a bf:Person;
rdfs:label ?contributorLabel;
} WHERE {
?s wdt:P767 ?contributor .
?contributor wdt:P31 wd:Q5;
rdfs:label ?contributorLabel;
wdt:P244 ?lccn .
BIND(URI(CONCAT('http://id.loc.gov/rwo/', ?lccn)) AS ?lccnURI)
# SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
FILTER (LANG(?contributorLabel)='en')
FILTER (?s=wd:Q7785623)
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?_anon_42b5416610844a34809f33a099ae9de135640")
v12("?_const_3d4e802c_lit_e2eec718")
v6("?_const_47e72fc2_uri")
v15("?_const_9285ccfc_uri"):::projected
v10("?_const_ab50d7a2_uri")
v11("?_const_bc16976f_uri")
v13("?_const_c5c90b2c_uri")
v14("?_const_d63fc42e_uri")
v7("?_const_e56fb63_uri")
v9("?_const_f5e5585a_uri")
v3("?contributor"):::projected
v2("?contributorLabel"):::projected
v4("?lccn"):::projected
v7("?lccnURI"):::projected
v1("?s"):::projected
c5(["wd:Q5"]):::iri
f0[["?s = 'wd:Q7785623'"]]
f0 --> v1
f1[["?contributorLabel = 'en'"]]
f1 --> v2
v1 --"wdt:P767"--> v3
v3 --"wdt:P31"--> c5
v3 --"rdfs:label"--> v2
v3 --"wdt:P244"--> v4
bind2[/"concat('http://id.loc.gov/rwo/',?lccn)"/]
v4 --o bind2
bind2 --as--o v7
bind3[/"http://bibframe.org/vocab/contributor"/]
bind3 --as--o v6
bind4[/"?lccnURI"/]
v7 --o bind4
bind4 --as--o v7
bind5[/"http://id.loc.gov/vocabulary/relators/cbt"/]
bind5 --as--o v7
bind6[/""/]
bind6 --as--o v8
bind7[/""a""/]
bind7 --as--o v9
bind8[/"http://bibframe.org/vocab/Contributor"/]
bind8 --as--o v10
bind9[/"http://bibframe.org/vocab/role"/]
bind9 --as--o v11
bind10[/"'creator'"/]
bind10 --as--o v12
bind11[/"http://bibframe.org/vocab/agent"/]
bind11 --as--o v13
bind12[/"http://bibframe.org/vocab/Person"/]
bind12 --as--o v14
bind13[/"'rdfs:label'"/]
bind13 --as--o v15