query-cdabc0c127d1329e932bf3a896541327
Query #16: Construct WIKIDATA:WRITTEN WORK (Q47461344) TO BIBFRAME:WORK, INCLUDING BIBFRAME:INSTANCE
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 skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX bf: <http://id.loc.gov/ontologies/bibframe/>
PREFIX bflc: <http://id.loc.gov/ontologies/bflc/>
PREFIX cts: <http://id.loc.gov/vocabulary/contentTypes/>
CONSTRUCT
{
?work a bf:Work .
?work bflc:aap ?workLabel ;
a bf:Text,bf:Monograph ;
bf:language ?work_language ;
bf:title _:work_title .
_:work_title a bf:Title .
_:work_title bf:mainTitle ?workLabel .
?work bf:content cts:txt .
?work bf:summary _:work_summary .
_:work_summary a bf:Summary .
_:work_summary rdfs:label ?workDescription .
?work bf:subject ?work_subject .
?work_subject a skos:Concept .
?work_subject skos:prefLabel ?work_subjectLabel .
?work bf:hasInstance ?hasEdition .
}
WHERE
{
?work wdt:P31 wd:Q47461344 ;
wdt:P495 wd:Q30 ;
wdt:P407 wd:Q1860 ;
wdt:P747 ?hasEdition ;
wdt:P407 ?work_language ;
wdt:P921 ?work_subject ;
wdt:P1476 ?work_title .
OPTIONAL {?work wdt:P1680 ?work_subTitle} .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr,es". }
} LIMIT 1
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v15("?_anon_1")
v21("?_anon_2")
v17("?_const_1d68bb54_uri")
v9("?_const_2f2fbb2e_uri")
v19("?_const_343b61fa_uri")
v26("?_const_4171603_uri")
v12("?_const_4e6edf60_uri")
v22("?_const_56d76bfb_uri")
v13("?_const_887ff583_uri")
v23("?_const_9285ccfc_uri")
v16("?_const_98c3f7ed_uri")
v14("?_const_9a86e80d_uri")
v18("?_const_9b0f60ee_uri")
v29("?_const_b53e3b44_uri")
v11("?_const_ba9ae8f8_uri")
v8("?_const_ba9c6adc_uri")
v27("?_const_c9f3cb8c_uri")
v25("?_const_f30281a1_uri")
v20("?_const_f39ed41b_uri")
v7("?_const_f5e5585a_uri")
v2("?hasEdition"):::projected
v1("?work"):::projected
v24("?workDescription"):::projected
v10("?workLabel"):::projected
v3("?work_language"):::projected
v6("?work_subTitle"):::projected
v4("?work_subject"):::projected
v28("?work_subjectLabel"):::projected
v5("?work_title"):::projected
c4(["wd:Q30"]):::iri
c2(["wd:Q47461344"]):::iri
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en,fr,es"]):::literal
c6(["wd:Q1860"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P495"--> c4
v1 --"wdt:P407"--> c6
v1 --"wdt:P747"--> v2
v1 --"wdt:P407"--> v3
v1 --"wdt:P921"--> v4
v1 --"wdt:P1476"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1680".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end
bind0[/""a""/]
bind0 --as--o v7
bind1[/"http://id.loc.gov/ontologies/bibframe/Work"/]
bind1 --as--o v8
bind2[/"http://id.loc.gov/ontologies/bflc/aap"/]
bind2 --as--o v9
bind3[/"?workLabel"/]
v10 --o bind3
bind3 --as--o v10
bind4[/"http://id.loc.gov/ontologies/bibframe/Text"/]
bind4 --as--o v11
bind5[/"http://id.loc.gov/ontologies/bibframe/Monograph"/]
bind5 --as--o v12
bind6[/"http://id.loc.gov/ontologies/bibframe/language"/]
bind6 --as--o v13
bind7[/"http://id.loc.gov/ontologies/bibframe/title"/]
bind7 --as--o v14
bind8[/""/]
bind8 --as--o v15
bind9[/"http://id.loc.gov/ontologies/bibframe/Title"/]
bind9 --as--o v16
bind10[/"http://id.loc.gov/ontologies/bibframe/mainTitle"/]
bind10 --as--o v17
bind11[/"http://id.loc.gov/ontologies/bibframe/content"/]
bind11 --as--o v18
bind12[/"http://id.loc.gov/vocabulary/contentTypes/txt"/]
bind12 --as--o v19
bind13[/"http://id.loc.gov/ontologies/bibframe/summary"/]
bind13 --as--o v20
bind14[/""/]
bind14 --as--o v21
bind15[/"http://id.loc.gov/ontologies/bibframe/Summary"/]
bind15 --as--o v22
bind16[/"'rdfs:label'"/]
bind16 --as--o v23
bind17[/"?workDescription"/]
v24 --o bind17
bind17 --as--o v24
bind18[/"http://id.loc.gov/ontologies/bibframe/subject"/]
bind18 --as--o v25
bind19[/"'skos:Concept'"/]
bind19 --as--o v26
bind20[/"'skos:prefLabel'"/]
bind20 --as--o v27
bind21[/"?work_subjectLabel"/]
v28 --o bind21
bind21 --as--o v28
bind22[/"http://id.loc.gov/ontologies/bibframe/hasInstance"/]
bind22 --as--o v29