Anonymous

Main Page: Difference between revisions

From clb-lod
Line 2: Line 2:


== SPARQL Queries ==
== SPARQL Queries ==
=== UDC Classificators in CLB-LOD ===
See [[SPARQL examples]].
UDC Classificators, at the moment, are represented as literals as in MARC. A conceptual mapping, i.e. linking classificators to concepts, is planned.
<sparql tryit="1">
PREFIX clbwb: <https://clb-lod.wikibase.cloud/entity/>
PREFIX clbdp: <https://clb-lod.wikibase.cloud/prop/direct/>
PREFIX clbp: <https://clb-lod.wikibase.cloud/prop/>
PREFIX clbps: <https://clb-lod.wikibase.cloud/prop/statement/>
PREFIX clbpq: <https://clb-lod.wikibase.cloud/prop/qualifier/>
PREFIX clbpr: <https://clb-lod.wikibase.cloud/prop/reference/>
PREFIX clbno: <https://clb-lod.wikibase.cloud/prop/novalue/>
 
select ?udc_literal (count(?wikibase_item) as ?bibitems)
       
where {
  ?wikibase_item clbp:P86 [clbpq:P87 ?udc_literal] .
 
} group by ?udc_literal ?bibitems order by desc(?bibitems)
</sparql>
 
See also some more [[SPARQL examples]].