Basque Dictionaries: Difference between revisions

From LexBib
No edit summary
No edit summary
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
?sourcelang ?targetlang
(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 ?sourcelang ?targetlang ?lcrLabel ?distr ?distrLabel ?distrdate ?authors
order by ?lcrLabel ?distrdate
<sparql>

Revision as of 21:43, 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

<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 ?sourcelang ?targetlang (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 ?sourcelang ?targetlang ?lcrLabel ?distr ?distrLabel ?distrdate ?authors order by ?lcrLabel ?distrdate <sparql>