NeoVoc: Difference between revisions
From eneoli wikibase
No edit summary |
|||
Line 5: | Line 5: | ||
== SPARQL queries == | == SPARQL queries == | ||
=== All NeoVoc | === All NeoVoc concept entries === | ||
<sparql tryit="1"> | <sparql tryit="1"> | ||
Line 22: | Line 22: | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". } | SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". } | ||
} | } | ||
</sparql> | |||
=== All NeoVoc lexical entries === | |||
<sparql tryit="1"> | |||
#title: All NeoVoc lexical entries with linked concept nodes | |||
PREFIX enwb: <https://eneoli.wikibase.cloud/entity/> | |||
PREFIX endp: <https://eneoli.wikibase.cloud/prop/direct/> | |||
select ?lexical_entry (lang(?lemma) as ?lang) ?lemma ?concept ?conceptLabel (iri(concat(str(wd:),?wd)) as ?wikidata) ?descript_en ?descript_fr | |||
where { | |||
?lexical_entry a ontolex:LexicalEntry; wikibase:lemma ?lemma; ontolex:sense ?sense. | |||
optional {?sense endp:P12 ?concept. | |||
optional {?concept endp:P1 ?wd.} | |||
optional {?concept schema:description ?descript_en. filter(lang(?descript_en)="en")} | |||
optional {?concept schema:description ?descript_fr. filter(lang(?descript_fr)="fr")} | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". }} | |||
</sparql> | </sparql> | ||
Revision as of 17:59, 14 June 2024
NeoVoc, a glossary of Neology
- Access a page containing information about the tasks related to NeoVoc, regarding the language you are working on here.
SPARQL queries
All NeoVoc concept entries
#title: All NeoVoc concepts with labels in your browser's language (with English or French as fallback), and English and French descriptions.
PREFIX enwb: <https://eneoli.wikibase.cloud/entity/>
PREFIX endp: <https://eneoli.wikibase.cloud/prop/direct/>
select ?concept ?conceptLabel (iri(concat(str(wd:),?wd)) as ?wikidata) ?descript_en ?descript_fr
where {
?concept endp:P5 enwb:Q12. # instances of "NeoVoc Concept"
optional {?concept endp:P1 ?wd.}
optional {?concept schema:description ?descript_en. filter(lang(?descript_en)="en")}
optional {?concept schema:description ?descript_fr. filter(lang(?descript_fr)="fr")}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". }
}
All NeoVoc lexical entries
#title: All NeoVoc lexical entries with linked concept nodes
PREFIX enwb: <https://eneoli.wikibase.cloud/entity/>
PREFIX endp: <https://eneoli.wikibase.cloud/prop/direct/>
select ?lexical_entry (lang(?lemma) as ?lang) ?lemma ?concept ?conceptLabel (iri(concat(str(wd:),?wd)) as ?wikidata) ?descript_en ?descript_fr
where {
?lexical_entry a ontolex:LexicalEntry; wikibase:lemma ?lemma; ontolex:sense ?sense.
optional {?sense endp:P12 ?concept.
optional {?concept endp:P1 ?wd.}
optional {?concept schema:description ?descript_en. filter(lang(?descript_en)="en")}
optional {?concept schema:description ?descript_fr. filter(lang(?descript_fr)="fr")}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". }}
Coverage of NeoVoc concepts with mutlilingual equivalents
#title:Number of equivalents present in the NeoVoc data
#defaultView:BarChart
PREFIX enwb: <https://eneoli.wikibase.cloud/entity/>
PREFIX endp: <https://eneoli.wikibase.cloud/prop/direct/>
PREFIX enp: <https://eneoli.wikibase.cloud/prop/>
PREFIX enps: <https://eneoli.wikibase.cloud/prop/statement/>
PREFIX enpq: <https://eneoli.wikibase.cloud/prop/qualifier/>
select ?language (count(?concept) as ?labels)
where {
?concept endp:P5 enwb:Q12. # instances of "NeoVoc Concept"
?concept rdfs:label ?label.
bind (lang(?label) as ?language)
} group by ?language ?labels order by desc(?labels)