12,303
edits
m (→InflectedForm) |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 30: | Line 30: | ||
* [[Item:Q107|Transcription Scheme Tag]] | * [[Item:Q107|Transcription Scheme Tag]] | ||
This full reification of DMLEX controlled values (i.e., that they are not blank nodes, but Q-entities) allows to qualify the statements using properties that point to literal ''dmlex:tag'' properties attached to dictionary content with the corresponding controlled value entity. | This full reification of DMLEX controlled values (i.e., that they are not blank nodes, but Q-entities) allows to qualify the statements using properties that point to literal ''dmlex:tag'' properties attached to dictionary content with the corresponding controlled value entity ([[Lexeme:L170#S3|example]]). | ||
=== Datatype properties === | === Datatype properties === | ||
Line 52: | Line 52: | ||
== Sense == | == Sense == | ||
a lexeme sense, on Wikibase, is by default modeled as instance of ''ontolex:LexicalSense''. The DMLex class ''dmlex:Sense'' is mapped to this. '''Note: in [https://github.com/oasis-tcs/lexidma/blob/master/dmlex-v1.0/specification/serializations/RDF/ontology/dmlex.ttl dmlex.ttl], ''dmlex:Sense'' is declared subclass of ''ontolex:LexicalConcept'', and not of ''ontolex:LexicalSense''.''' | |||
=== Datatype properties === | |||
* "definition" is mapped to [[Property:P209|P209]], datatype "string". | |||
* "example" is mapped to [[Property:P208|P208]], datatype "string". | |||
== Inflected Form == | == Inflected Form == | ||
= SPARQL = | |||
== Slovar slovenskih členkov ([[Item:Q34165|Q34165]]) == | |||
<sparql tryit="1"> | |||
#title: Slovar slovenskih členkov entries | |||
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/> | |||
PREFIX lno: <https://lexbib.elex.is/prop/novalue/> | |||
select ?lexeme ?lexeme_nr ?lemma (count (distinct ?sense) as ?num_of_senses) (count (distinct ?def) as ?num_of_defs) (count (distinct ?expl) as ?num_of_examples) | |||
where { | |||
?lexeme ldp:P207 lwb:Q34165; wikibase:lemma ?lemma; ontolex:sense ?sense. | |||
optional {?sense ldp:P209 ?def.} optional {?sense ldp:P208 ?expl.} | |||
bind (xsd:integer(strafter(str(?lexeme),"https://lexbib.elex.is/entity/L")) as ?lexeme_nr) | |||
filter (?lexeme_nr > 34) # this is because of bug https://phabricator.wikimedia.org/T363312 | |||
} | |||
group by ?lexeme ?lexeme_nr ?lemma ?num_of_senses ?num_of_defs ?num_of_examples | |||
order by ?lexeme_nr | |||
</sparql> |