Basque Dictionaries: Difference between revisions

Line 12: Line 12:


select ?lcr
select ?lcr
?sourcelang ?targetlang
(group_concat(distinct ?sourcelang;SEPARATOR=",") as ?sourcelangs)
(group_concat(distinct ?targetlang;SEPARATOR=",") as ?targetlangs)
(strafter(str(?lcr), "https://lexbib.elex.is/entity/") as ?lcrqid) ?lcrLabel
(strafter(str(?lcr), "https://lexbib.elex.is/entity/") as ?lcrqid) ?lcrLabel
?distr (strafter(str(?distr), "https://lexbib.elex.is/entity/") as ?distrqid) ?distrLabel  
?distr (strafter(str(?distr), "https://lexbib.elex.is/entity/") as ?distrqid) ?distrLabel  
Line 24: Line 25:
           ?sourcelangitem ldp:P32 ?sourcelang. ?targetlangitem ldp:P32 ?targetlang.}
           ?sourcelangitem ldp:P32 ?sourcelang. ?targetlangitem ldp:P32 ?targetlang.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }}
group by ?lcr ?sourcelang ?targetlang ?lcrLabel ?distr ?distrLabel ?distrdate ?authors
group by ?lcr ?sourcelangs ?targetlangs ?lcrLabel ?distr ?distrLabel ?distrdate ?authors
order by ?lcrLabel ?distrdate
order by ?lcrLabel ?distrdate
</sparql>
</sparql>