User:BlaueBlüte/sandbox/Wikidata lexeme query

From Wikispore
Jump to navigation Jump to search

This sandbox page explores ways to query lexicographical data from Wikidata.

UnlinkedWikibase

using mw:Extension:UnlinkedWikibase

Entity retrieval

Dump of example invocation

mw.ext.UnlinkedWikibase.getEntity( " L253777 " ) = "item-not-found"


Querying

Dump of example query result

SELECT:

mw.ext.UnlinkedWikibase.query( "SELECT ?lemma WHERE { wd:Q177332 ^wdt:P5137/^ontolex:sense/wikibase:lemma ?lemma. } " ) = [empty table]


DESCRIBE (but compare same effect using SELECT):

mw.ext.UnlinkedWikibase.query( "DESCRIBE wd:L253777" ) = [empty table]