query-f7431d388e68affda91cb96d6d3d44ca
Related lexemes
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX target: <http://www.wikidata.org/entity/L1265531>
SELECT
?score
?lexeme
(?lemma AS ?lexemeLabel)
(CONCAT("#lexeme/", SUBSTR(STR(?lexeme), 32)) AS ?lexemeUrl)
?features
?language ?languageLabel
?lexical_category ?lexical_categoryLabel
WITH {
SELECT
(SUM(?score_) AS ?score__)
?lexeme
(GROUP_CONCAT(DISTINCT ?feature; separator=", ") AS ?features_)
WHERE {
{
BIND("explicit synonym" AS ?feature)
target: ontolex:sense / wdt:P5973 / ^ontolex:sense ?lexeme .
BIND(10 AS ?score_)
}
UNION
{
BIND("explicit hyponym" AS ?feature)
target: ontolex:sense / ^wdt:P6593 / ^ontolex:sense ?lexeme .
BIND(7 AS ?score_)
}
UNION
{
BIND("implicit synonym" AS ?feature)
target: ontolex:sense / wdt:P5137 / ^wdt:P5137 / ^ontolex:sense ?lexeme .
target: dct:language / ^dct:language ?lexeme .
BIND(8 AS ?score_)
}
UNION
{
BIND("derived to" AS ?feature)
target: wdt:P5191 ?lexeme .
BIND(5 AS ?score_)
}
UNION
{
BIND("derived from" AS ?feature)
?lexeme wdt:P5191 target: .
BIND(4 AS ?score_)
}
UNION
{
BIND("same descriptor" AS ?feature)
target: wdt:P1343 / ^wdt:P1343 ?lexeme .
BIND(2 AS ?score_)
}
UNION
{
BIND("same attestor" AS ?feature)
target: wdt:P5323 / ^wdt:P5323 ?lexeme .
BIND(3 AS ?score_)
}
UNION
{
BIND("part in" AS ?feature)
target: wdt:P5238 ?lexeme .
BIND(5 AS ?score_)
}
UNION
{
BIND("part in part in" AS ?feature)
target: wdt:P5238 / wdt:P5238 ?lexeme .
BIND(2 AS ?score_)
}
UNION
{
BIND("is compound" AS ?feature)
?lexeme wdt:P5238 target: .
BIND(5 AS ?score_)
}
UNION
{
BIND("homophone form" AS ?feature)
?lexeme ontolex:lexicalForm / (wdt:P10822