INCEpTION and lexemes

34 views
Skip to first unread message

Jaka Čibej

unread,
Jul 3, 2024, 1:52:16 PM7/3/24
to inception-users
Hi, everyone

We've been trying to use INCEpTION to link tokens to their corresponding senses from a sense inventory (a dictionary) which is hosted on WikiBase. We have two questions:

(1) How could we query WikiData lexemes (e.g. "house", https://www.wikidata.org/wiki/Lexeme:L512) in the same way that we can query WikiData items (e.g. "house", https://www.wikidata.org/wiki/Q3947) from within INCEpTION? It appears that the current query builder only supports items. 

(2) Instead of WikiData, we would like to connect INCEpTION to our own instance of WikiBase. Do you have any examples on how to set up the knowledge base with remote SPARQL query for WikiBase?

Thanks in advance for your reply and best regards

Jaka Čibej
(University of Ljubljana, Slovenia)

Richard Eckart de Castilho

unread,
Jul 3, 2024, 1:55:01 PM7/3/24
to incepti...@googlegroups.com
Hi Jaka

> On 3. Jul 2024, at 17:17, Jaka Čibej <jaka....@gmail.com> wrote:
>
> We've been trying to use INCEpTION to link tokens to their corresponding senses from a sense inventory (a dictionary) which is hosted on WikiBase. We have two questions:
>
> (1) How could we query WikiData lexemes (e.g. "house", https://www.wikidata.org/wiki/Lexeme:L512) in the same way that we can query WikiData items (e.g. "house", https://www.wikidata.org/wiki/Q3947) from within INCEpTION? It appears that the current query builder only supports items.
>
> (2) Instead of WikiData, we would like to connect INCEpTION to our own instance of WikiBase. Do you have any examples on how to set up the knowledge base with remote SPARQL query for WikiBase?

I'd also like to figure out how to make INCEpTION connect to custom WikiBase instances.

Are you using Wikibase Cloud [1]?

Can you point me to a SPARQL endpoint that I could try to connect to?

Best,

-- Richard

[1] https://www.wikibase.cloud/

Jaka Čibej

unread,
Jul 4, 2024, 2:41:15 AM7/4/24
to incepti...@googlegroups.com
Hi, Richard

Yes, we are using WikiBase Cloud, our instance is available here: https://unidive.wikibase.cloud/wiki/SPARQL. We tried using the following endpoint: "https://unidive.wikibase.cloud/query/sparql" in the Access Settings, but the knowledge base remains empty.

If you have any pointers on how to make this work, we would very much appreciate it. In any case, I think INCEpTION should support lexemes as well.

Thanks in advance and best regards

J.

V V sre., 3. jul. 2024 ob 19:55 je oseba Richard Eckart de Castilho <richard...@gmail.com> napisala:
--
You received this message because you are subscribed to the Google Groups "inception-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inception-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inception-users/E098100D-4416-41AA-906D-D1C2E7CBC520%40gmail.com.

Richard Eckart de Castilho

unread,
Jul 5, 2024, 2:22:08 AM7/5/24
to inception-users
Hi Jaka

> On 4. Jul 2024, at 08:40, Jaka Čibej <jaka....@gmail.com> wrote:
>
> Yes, we are using WikiBase Cloud, our instance is available here: https://unidive.wikibase.cloud/wiki/SPARQL. We tried using the following endpoint: "https://unidive.wikibase.cloud/query/sparql" in the Access Settings, but the knowledge base remains empty.
>
> If you have any pointers on how to make this work, we would very much appreciate it. In any case, I think INCEpTION should support lexemes as well.

Here is an example.

In this example, I have configured INCEpTION to consider the "part-of" relation (P8) to be the subclass relation. This causes all lexemes to show up under the dictionary (Q15).

I was also going to try an example where the senses would show up under the lexemes, but looking at a sense I did not find a property indicating that the sense belongs to a particular lexeme.

Also, INCEpTION does currently not support the "wikibase:label" service - only the corresponding Wikidata version. So queries are a bit slow at the moment.

Maybe this can be a starting point for looking further into mapping your data to INCEpTION.

-- Richard

Screenshot 2024-07-05 at 07.38.31.png
Screenshot 2024-07-05 at 07.41.18.png

David Lindemann

unread,
Jul 5, 2024, 9:39:15 AM7/5/24
to inception-users
Hi Richard,

and many thanks for looking at this.

The property that connects lexemes to senses in a Wikibase is ontolex:sense, as you can see in https://unidive.wikibase.cloud/wiki/Special:EntityData/L129.ttl , line 54-56. Both LexicalEntry and LexicalSense have labels as rdfs:label; to display these in inception would be enough for the user to select the sense that applies.

What we would like to do is to enable users to annotate lexemes in a corpus with Wikibase sense IDs, e.g. https://unidive.wikibase.cloud/entity/L129-S2 .

Best regards,

David Lindemann

David Lindemann
Faculty Member
UPV/EHU University of the Basque Country
Dept. of Linguistics and Basque Studies
wikidata: Q57694630 | email: david.l...@ehu.eus

Richard Eckart de Castilho

unread,
Jul 5, 2024, 12:46:45 PM7/5/24
to incepti...@googlegroups.com
Hi David, Jaka,

to avoid sending around mails with lots of large screenshots, I have opened a discussion forum thread for this:

https://github.com/inception-project/inception/discussions/4928

Does that work for you?

-- Richard

Reply all
Reply to author
Forward
0 new messages