Issue with Wikidata Knowledge Base in INCEpTION

98 views
Skip to first unread message

Milica Ikonić Nešić

unread,
Aug 25, 2025, 1:03:31 PM8/25/25
to inception-users

Dear Community, 

Thank you for existing above all! 

I have been using the INCEpTION tool for a very long time and it has been extremely useful! At the moment, I am facing a problem: since noon, text connected to the Wikidata knowledge base shows an Error and returns the following message:

Unable to list root concepts: Please set a user-agent and respect our robot policy https://w.wiki/4wJS. See also T400119.

while running the query:

SELECT DISTINCT ?m ?dc ?dp ?subj WHERE { { { { VALUES ( ?subj ) { (<http://www.wikidata.org/entity/Q35120>) } } FILTER EXISTS { { ?subj <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q35120> . } UNION { [] <http://www.wikidata.org/prop/direct/P279> ?subj . } UNION { ?subj <http://www.wikidata.org/prop/direct/P279> [] . } } } } OPTIONAL { ?pMatch <http://www.w3.org/2000/01/rdf-schema#subPropertyOf>* <http://www.w3.org/2000/01/rdf-schema#label> . } OPTIONAL { { ?subj ?pMatch ?m . FILTER ( ( LANGMATCHES( LANG( ?m ), "en" ) || LANG( ?m ) = "" ) ) } } OPTIONAL { { ?subj <http://www.w3.org/2000/01/rdf-schema#comment> ?dc . FILTER ( ( LANGMATCHES( LANG( ?dc ), "en" ) || LANG( ?dc ) = "" ) ) } } OPTIONAL { { ?subj <http://www.w3.org/2002/07/owl#deprecated> ?dp . FILTER ( ( LANGMATCHES( LANG( ?dp ), "en" ) || LANG( ?dp ) = "" ) ) } } } LIMIT 2000

Could anyone please help me resolve this problem?

Best regards,

Milica

Richard Eckart de Castilho

unread,
Aug 25, 2025, 1:07:01 PM8/25/25
to inception-users
Hi,

I saw some post related to a change on the Wikidata mailing list, but
I didn't fully check it yet... I'll have a closer look at what new
requirements they have now and get back to you.

That said: the obvious way around those query limitations is that you
download the Wikidata dumps and set up your own SPARQL endpoint with
those and use that one instead of using the official Wikidata SPARQL
endpoint.

Cheers,

-- Richard
> --
> 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 visit https://groups.google.com/d/msgid/inception-users/29465c61-3ad9-4a4a-90fb-ac707f7ed4dfn%40googlegroups.com.

Richard Eckart de Castilho

unread,
Aug 26, 2025, 10:02:59 AM8/26/25
to inception-users
Hi,

> On 25. Aug 2025, at 19:06, Richard Eckart de Castilho <richard...@gmail.com> wrote:
>
> I saw some post related to a change on the Wikidata mailing list, but
> I didn't fully check it yet... I'll have a closer look at what new
> requirements they have now and get back to you.

I have just released INCEpTION 37.5 which should restore the ability to talk to
the WikiData SPARQL endpoint.

https://github.com/inception-project/inception/releases/tag/inception-37.5

Cheers,

-- Richard

Milica Ikonić Nešić

unread,
Aug 26, 2025, 3:12:35 PM8/26/25
to incepti...@googlegroups.com
Hi Richard,

Thank you very much for your quick response and assistance! Everything is working perfectly now!

Best regards,
Milica  

--
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.

Milica Ikonić Nešić

unread,
Aug 29, 2025, 6:21:34 PM8/29/25
to incepti...@googlegroups.com
Hi Richard, 

I used to see the description from Wikidata when I hovered over the linked entity, but now I don’t see it. How can I enable this again? 

Thanks in advance!  

Best regards,
Milica

Richard Eckart de Castilho

unread,
Aug 29, 2025, 6:43:21 PM8/29/25
to inception-users
Hi,

> On 30. Aug 2025, at 00:21, Milica Ikonić Nešić <milica.ikon...@gmail.com> wrote:
>
> I used to see the description from Wikidata when I hovered over the linked entity, but now I don’t see it. How can I enable this again?

Check if a description is shown under the concept input field in the right sidebar.

When a description is shown there, I also get it in the hover popup when using WikiData.

-- Richard

Milica Ikonić Nešić

unread,
Aug 29, 2025, 6:54:27 PM8/29/25
to incepti...@googlegroups.com
 
Hi, 
> I used to see the description from Wikidata when I hovered over the linked entity, but now I don’t see it. How can I enable this again?

Check if a description is shown under the concept input field in the right sidebar.

No, It’s not showing for me, although it used to.

When a description is shown there, I also get it in the hover popup when using WikiData.

-- Richard

--
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.

Richard Eckart de Castilho

unread,
Aug 30, 2025, 3:13:57 AM8/30/25
to incepti...@googlegroups.com
Hi,

> On 30. Aug 2025, at 00:54, Milica Ikonić Nešić <milica.ikon...@gmail.com> wrote:
>
> > I used to see the description from Wikidata when I hovered over the linked entity, but now I don’t see it. How can I enable this again?
>
> Check if a description is shown under the concept input field in the right sidebar.
>
> No, It’s not showing for me, although it used to.

Try annotating something with "Obama" (http://www.wikidata.org/entity/Q11462618) - that shows a description for me.

If that description does not show, try creating a new entity linking project and check if it works for you there.
If it does, check if you changed anything in the knowledge base sesttings in your old project, in particular
in the mapping part where all the IRIs are set.

-- Richard

Milica Ikonić Nešić

unread,
Feb 26, 2026, 3:46:19 PM (8 days ago) Feb 26
to incepti...@googlegroups.com
Dear Richard,

I am using version 37.5 of INCEpTION, and everything has been working fine until now. Now it is showing this kind of message for linked entities with Wikidata.   
image.png
Could you please help me? The same issue is happening in every project, and it is no longer connecting to Wikidata.

Kind regards,
Milica Ikonić Nešić

--
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.

Richard Eckart de Castilho

unread,
Feb 26, 2026, 4:23:15 PM (8 days ago) Feb 26
to incepti...@googlegroups.com
Hi,
image.png

Milica Ikonić Nešić

unread,
Feb 27, 2026, 3:28:13 AM (8 days ago) Feb 27
to incepti...@googlegroups.com
Dear Richard,

This is the error I receive when I start annotating.
image.png

I understand that it is possible to copy the Wikidata SPARQL server and use it as a local knowledge base, but I am not sure how to do this properly. Could you please guide me through the process?

Thank you in advance for your help.

Kind regards,
Milica Ikonić Nešić
--
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.

>
>
> Could you please help me? The same issue is happening in every project, and it is no longer connecting to Wikidata.

I just tried it locally (with the latest version), creating a project from the entity linking template,
imported a document and tired linking a concept to wikidata - worked.

So maybe either...

... you hit a transient problem and it will start working again ...

... or if you use INCEpTION heavily against the official wikidata SPARQL endpoint, you might have been rate-limited or banned.

I *believe* Wikidata has an idea that their services should be used fairly and if they determine that usage might go beyond fair,
they *might* reserve the option to limit/ban users. No proof of this theory though.

Here is some more info on their limits: https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual

Mind that INCEpTION (or rather RDF4J) probably doesn't really respect the HTTP code 429 and the Retry-After header...

Maybe you see a more informative error message in the logs? (E.g. as admin, go to Administration in the menu bar and then to logs)

I always suggest to people asking me that for heavy usage, people should set up their own copy of a Wikidata SPARQL server and connect to that instead of using the public one.

Cheers,


-- Richard

--
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.

Richard Eckart de Castilho

unread,
Feb 27, 2026, 3:37:55 PM (7 days ago) Feb 27
to incepti...@googlegroups.com
Hi,
image.png

Richard Eckart de Castilho

unread,
Feb 28, 2026, 11:45:06 AM (7 days ago) Feb 28
to incepti...@googlegroups.com

> On 27. Feb 2026, at 21:37, Richard Eckart de Castilho <richard...@gmail.com> wrote:
>
>> On 27. Feb 2026, at 09:28, Milica Ikonić Nešić <milica.ikon...@gmail.com> wrote:
>>
>> This is the error I receive when I start annotating.
>
> Does the error persist after you restart INCEpTION / your computer?

So this error here

java.lang.IllegalStateException: Connection pool shut down

does not seem to come from Wikidata itself. It seems like INCEpTION might have gotten
into a weird state. Without further investigation, we cannot tell what caused it.
If oyu have administrator permissions, you can click on "Administration" in the
menu bar and then on "logs" to maybe see more relevant error messages. Mind that
the "logs" page auto-refreshes by default - turn off the refresh at the top to
facilitate scrolling and reading.

As I hinted at above, I would advise restarting INCEpTION and then looking if the
problem persists. With a little luck, it might be gone. And if it comes back,
looking into the logs would again be advised.

At TU Darmstadt, we had at a time a Virtuoso Server with a copy of Wikidata running,
but tbh, I was not involved in setting it up, so I can't give advice on it.
I googled that briefly, but assuming that you are an individual annotator,
you probably won't have the necessary server sources required to host your own
copy. And as an individual user I would hope you also wouldn't issue so many calls
to Wikidata that it would get you blocked... but we'd have to find out to be sure.

-- Richard

Reply all
Reply to author
Forward
0 new messages