Anonymous

NeoVoc: Difference between revisions

From eneoli wikibase
Line 70: Line 70:
</sparql>
</sparql>
=== Authors, and in how many of their articles NeoVoc terms appear ===
=== Authors, and in how many of their articles NeoVoc terms appear ===
<sparql tryit="1">
#title: Authors, and in how many of their articles NeoVoc terms appear
#title: Authors, and in how many of their articles NeoVoc terms appear


Line 82: Line 81:




select ?author ?lastname ?authorname (group_concat(distinct concat(str(?lemma)," (",str(?count),")");SEPARATOR=", ") as ?terms) # (count(?bib_item) as ?in_how_many_articles) (lang(?lemma) as ?lang)
select ?author ?lastname ?authorLabel (group_concat(distinct concat(str(?lemma)," (",str(?count),")");SEPARATOR=", ") as ?terms) # (count(?bib_item) as ?in_how_many_articles) (lang(?lemma) as ?lang)
        
        
where {  
where {  
  ?author rdfs:label ?authorname. filter(lang(?authorname)="en")
   ?author endp:P52 ?lastname.
   ?author endp:P52 ?lastname.
    
    
Line 94: Line 92:
                           } group by ?author ?lemma ?count order by ?count
                           } group by ?author ?lemma ?count order by ?count
          
          
  }
  } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,fr,pt". }
} group by ?author ?lastname ?authorname ?terms  order by ?lastname
} group by ?author ?lastname ?authorLabel ?terms  order by ?lastname
</sparql>
</sparql>