1,482
edits
Line 53: | Line 53: | ||
} group by ?lexical_entry ?lang ?lemma order by desc(?in_how_many_articles) | } group by ?lexical_entry ?lang ?lemma order by desc(?in_how_many_articles) | ||
</sparql> | </sparql> | ||
=== All articles that contain terms denoting one concept === | |||
<sparql tryit="1"> | |||
#title: All articles that contain terms denoting one concept, here: "Q976" Neologism | |||
PREFIX enwb: <https://eneoli.wikibase.cloud/entity/> | |||
PREFIX endp: <https://eneoli.wikibase.cloud/prop/direct/> | |||
select ?concept ?conceptLabel ?article ?articleLabel ?article_languageLabel | |||
where { bind(enwb:Q976 as ?concept) # change "Q976" for another concept | |||
?article endp:P5 enwb:Q2; endp:P7 ?article_language; endp:P65 [ontolex:sense [endp:P12 enwb:Q976]]. | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | |||
} | |||
</sparql> | |||
=== Authors and the terms they use === | |||
<sparql tryit="1"> | |||
#title: Authors, and the terms that occur in their texts | |||
PREFIX enwb: <https://eneoli.wikibase.cloud/entity/> | |||
PREFIX endp: <https://eneoli.wikibase.cloud/prop/direct/> | |||
select ?author ?authorname (group_concat(distinct str(?lemma);SEPARATOR=", ") as ?terms) # (count(?bib_item) as ?in_how_many_articles) (lang(?lemma) as ?lang) | |||
where { | |||
?lexical_entry wikibase:lemma ?lemma. | |||
?bib_item endp:P40 ?author; | |||
endp:P65 ?lexical_entry. | |||
?author rdfs:label ?authorname. filter(lang(?authorname)="en") | |||
} group by ?author ?authorname ?terms order by ?authorname | |||
</sparql> | |||
=== All articles that contain terms denoting one concept === | === All articles that contain terms denoting one concept === | ||
<sparql tryit="1"> | <sparql tryit="1"> |