Basque Dictionaries: Difference between revisions
From LexBib
(Created page with "This page describes Euskarazko Hiztegien LOD katalogoa, a project funded by [https://wikimedia.eus Wikimedia Basque Country], starting 2023. It is the first use case for a catalogue of dictionaries based on the LexMeta data model.") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This page describes Euskarazko Hiztegien LOD katalogoa, a project funded by [https://wikimedia.eus Wikimedia Basque Country], starting 2023. It is the first use case for a catalogue of dictionaries based on the [[LexMeta]] data model. | This page describes ''Euskarazko Hiztegien LOD katalogoa'', a project funded by [https://wikimedia.eus Wikimedia Basque Country], starting 2023. It is the first use case for a catalogue of dictionaries based on the [[LexMeta]] data model. | ||
=SPARQL Queries= | |||
==LCR CSV for bilingual dictionaries source and target language annotation== | |||
<sparql tryit="1"> | |||
PREFIX lwb: <https://lexbib.elex.is/entity/> | |||
PREFIX ldp: <https://lexbib.elex.is/prop/direct/> | |||
PREFIX lp: <https://lexbib.elex.is/prop/> | |||
PREFIX lps: <https://lexbib.elex.is/prop/statement/> | |||
PREFIX lpq: <https://lexbib.elex.is/prop/qualifier/> | |||
PREFIX lpr: <https://lexbib.elex.is/prop/reference/> | |||
select ?lcr | |||
(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 | |||
# ?distr (strafter(str(?distr), "https://lexbib.elex.is/entity/") as ?distrqid) ?distrLabel | |||
(YEAR(?distrdate) as ?date) | |||
(group_concat(distinct ?authorname; SEPARATOR="; ") as ?authors) | |||
where { | |||
?lcr ldp:P5 lwb:Q4; ldp:P55 ?distr . | |||
?distr ldp:P15 ?distrdate . | |||
optional {?distr lp:P12 [lpq:P38 ?authorname].} | |||
optional {?lcr lp:P115 [lps:P115 lwb:Q14384; lpq:P150 ?sourcelangitem; lpq:P134 ?targetlangitem]. | |||
?sourcelangitem ldp:P32 ?sourcelang. ?targetlangitem ldp:P32 ?targetlang.} | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }} | |||
group by ?lcr ?sourcelangs ?targetlangs ?lcrLabel # ?distr ?distrLabel | |||
?distrdate ?authors | |||
order by ?lcrLabel ?distrdate | |||
</sparql> |
Latest revision as of 21:54, 23 December 2022
This page describes Euskarazko Hiztegien LOD katalogoa, a project funded by Wikimedia Basque Country, starting 2023. It is the first use case for a catalogue of dictionaries based on the LexMeta data model.
SPARQL Queries
LCR CSV for bilingual dictionaries source and target language annotation
PREFIX lwb: <https://lexbib.elex.is/entity/>
PREFIX ldp: <https://lexbib.elex.is/prop/direct/>
PREFIX lp: <https://lexbib.elex.is/prop/>
PREFIX lps: <https://lexbib.elex.is/prop/statement/>
PREFIX lpq: <https://lexbib.elex.is/prop/qualifier/>
PREFIX lpr: <https://lexbib.elex.is/prop/reference/>
select ?lcr
(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
# ?distr (strafter(str(?distr), "https://lexbib.elex.is/entity/") as ?distrqid) ?distrLabel
(YEAR(?distrdate) as ?date)
(group_concat(distinct ?authorname; SEPARATOR="; ") as ?authors)
where {
?lcr ldp:P5 lwb:Q4; ldp:P55 ?distr .
?distr ldp:P15 ?distrdate .
optional {?distr lp:P12 [lpq:P38 ?authorname].}
optional {?lcr lp:P115 [lps:P115 lwb:Q14384; lpq:P150 ?sourcelangitem; lpq:P134 ?targetlangitem].
?sourcelangitem ldp:P32 ?sourcelang. ?targetlangitem ldp:P32 ?targetlang.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }}
group by ?lcr ?sourcelangs ?targetlangs ?lcrLabel # ?distr ?distrLabel
?distrdate ?authors
order by ?lcrLabel ?distrdate