query-526ac729cf9cd17338ff12a7557328a0
Bibliographic items
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?bibliographic_item ?bibliographic_itemLabel
?monumenta ?monumentaLabel ?monumentaUrl
?wikidata ?wikidataLabel ?wikidataUrl
WHERE {
?bibliographic_item <https://monumenta.wikibase.cloud/prop/direct/P5> <https://monumenta.wikibase.cloud/entity/Q4> .
OPTIONAL {
?bibliographic_item <https://monumenta.wikibase.cloud/prop/direct/P1> ?wikidata .
BIND(CONCAT(?wikidata, " ↗") AS ?wikidataLabel)
BIND(CONCAT("https://www.wikidata.org/wiki/", ?wikidata) AS ?wikidataUrl)
}
BIND(?bibliographic_item AS ?monumenta)
BIND(CONCAT(SUBSTR(STR(?bibliographic_item), 41), " ↗") AS ?monumentaLabel)
BIND(?bibliographic_item AS ?monumentaUrl)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?bibliographic_item"):::projected
v5("?monumenta"):::projected
v6("?monumentaLabel"):::projected
v7("?monumentaUrl"):::projected
v2("?wikidata"):::projected
v3("?wikidataLabel"):::projected
v4("?wikidataUrl"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2([https://monumenta.wikibase.cloud/entity/Q4]):::iri
v1 --https://monumenta.wikibase.cloud/prop/direct/P5--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -.https://monumenta.wikibase.cloud/prop/direct/P1.-> v2
bind0[/"concat(?wikidata,' ↗')"/]
v2 --o bind0
bind0 --as--o v3
bind1[/"concat('https://www.wikidata.org/wiki/',?wikidata)"/]
v2 --o bind1
bind1 --as--o v4
end
bind2[/"?bibliographic_item"/]
v1 --o bind2
bind2 --as--o v5
bind3[/"concat(substring(str(?bibliographic_item),'41^^xsd:integer'),' ↗')"/]
v1 --o bind3
bind3 --as--o v6
bind4[/"?bibliographic_item"/]
v1 --o bind4
bind4 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end