Anonymous

SPARQL examples: Difference between revisions

From clb-lod
Line 134: Line 134:
   } group by ?number_of_unreconciled
   } group by ?number_of_unreconciled
</sparql>
</sparql>
===Co-authors of one author===
This shows the co-authors of one author as graph visualization (change visualization type to "table" for seeing the source data used for the graph visualization)
<sparql tryit="1">
#defaultView:Graph
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 ?author ?authorLabel ?coauthor ?coauthorLabel (count(?bibItem) as ?count)
where {
  bind(clbwb:Q204 as ?author) # author we want to see the co-authors (e.g. Q204, V. Malínek)
  ?author rdfs:label ?authorLabel. filter(lang(?authorLabel) = "cs")
  ?bibItem clbdp:P5 clbwb:Q3; clbdp:P12 ?author. # all bibitems authored by that author
  ?bibItem clbdp:P12 ?coauthor. filter(?coauthor != ?author).
  ?coauthor rdfs:label ?coauthorLabel. filter(lang(?coauthorLabel) = "cs")
  } group by ?author ?authorLabel ?coauthor ?coauthorLabel ?count order by desc(?count)
</sparql>
== UDC Classificators ==
== UDC Classificators ==
=== UDC Classificators in CLB-LOD ===
=== UDC Classificators in CLB-LOD ===