query-bee932d5fee1a558969888b4cc01f342
title: Lexemes associated with items about entities studied by invasion biology and/or ecology SELECT DISTINCT ?qid (GROUP_CONCAT(DISTINCT ?lemma; separator=" // ") AS ?lexemes) (CONCAT("https://ordia.toolforge.org/Q", STR(?qid ) ) AS ?ordia)
WHERE { { ?item wdt:P2579 wd:Q42985020 .} UNION { ?item wdt:P2579 wd:Q7150 .} ?item ^wdt:P5137 ?sense . ?sense ^ontolex:sense ?lexeme . ?lexeme wikibase:lemma ?lemma . BIND(xsd:integer(STRAFTER(STR(?item), 'Q')) as ?qid) } GROUP BY ?qid ?lexemes ?ordia ORDER BY ASC(?qid)
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
#title: Lexemes associated with items about entities studied by invasion biology and/or ecology
SELECT
DISTINCT ?qid
(GROUP_CONCAT(DISTINCT ?lemma; separator=" // ") AS ?lexemes)
(CONCAT("https://ordia.toolforge.org/Q", STR(?qid ) ) AS ?ordia)
WHERE {
{ ?item wdt:P2579 wd:Q42985020 .}
UNION
{ ?item wdt:P2579 wd:Q7150 .}
?item ^wdt:P5137 ?sense .
?sense ^ontolex:sense ?lexeme .
?lexeme wikibase:lemma ?lemma .
BIND(xsd:integer(STRAFTER(STR(?item), 'Q')) as ?qid)
}
GROUP BY ?qid ?lexemes ?ordia
ORDER BY ASC(?qid)