KM Wikidata export: Difference between revisions

From Inguma Wikibase
Line 166: Line 166:
PREFIX ipq: <https://wikibase.inguma.eus/prop/qualifier/>
PREFIX ipq: <https://wikibase.inguma.eus/prop/qualifier/>


select ?aipatzen_duena ?aipatzen_duenaLabel (group_concat(?egileaLabel) as ?egileak) (year(?data) as ?urtea) ?oocc_item ?oocc_id ?oocc_title ?wd_cit_iturri ?wd_cit_xede
select distinct ?aipatzen_duena ?aipatzen_duenaLabel (group_concat(?egileaLabel; SEPARATOR=", ") as ?egileak) (year(?data) as ?urtea) ?oocc_item ?oocc_title ?wd_cit_iturri ?wd_cit_xede
where {
where {
   ?oocc_item ip:P89 ?oocc_st.
   ?oocc_item ip:P89 ?oocc_st.
Line 172: Line 172:
   ?oocc_st ipq:P75 ?oocc_text.
   ?oocc_st ipq:P75 ?oocc_text.
   ?oocc_item idp:P10 ?oocc_title.
   ?oocc_item idp:P10 ?oocc_title.
 
  optional {?aipatzen_duena idp:P1 ?wd_cit_iturri.}
   ?oocc_item idp:P1 ?wd_cit_xede.
   ?oocc_item idp:P1 ?wd_cit_xede.
    
    
   ?aipatzen_duena idp:P62 [idp:P88* ?oocc_item].
   ?aipatzen_duena idp:P62 [idp:P88* ?oocc_item].
  ?aipatzen_duena idp:P19 ?data; idp:P17 [rdfs:label ?egileaLabel]. filter(lang(?egileaLabel)="eu")
  optional {?aipatzen_duena idp:P1 ?wd_cit_iturri.}
    
    
  ?aipatzen_duena idp:P19 ?data; idp:P17 [rdfs:label ?egileaLabel]. filter(lang(?egileaLabel)="eu")
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,eu". }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,eu". }
}   
}   
group by ?aipatzen_duena ?aipatzen_duenaLabel ?egileak ?data ?oocc_item ?oocc_id ?oocc_title ?wd_cit_iturri ?wd_cit_xede
group by ?aipatzen_duena ?aipatzen_duenaLabel ?egileak ?data ?oocc_item ?oocc_id ?oocc_title ?wd_cit_iturri ?wd_cit_xede
order by xsd:integer(?oocc_id)       
order by ?aipatzen_duena     
</sparql>
</sparql>
Bureaucrats, emailconfirmed, Administrators
58,048

edits