Extension talk:Semantic Image Annotator

About this board

Typo in SemanticImageAnnotatorSpecial.php?

Tommyheyser (talkcontribs)

Line 59 - 67 of d291837, Special/SemanticImageAnnotatorSpecial.php

$out->addWikiText( '== '.$this->msg( 'sta-reinstall-header' ).' ==' );
            $btn = new OOUI\ButtonWidget( array(
                'infusable' => true,
                'id' => 'reinstall-btn',
                'label' => ''.$this->msg( 'sta-reinstall-header' ).'',
            ) );

            $out->addWikiText( ''.$this->msg( 'sta-reinstall-text' ).'' );

Shouldn't the "sta" be "sia"?

Reply to "Typo in SemanticImageAnnotatorSpecial.php?"
RogerA1 (talkcontribs)


I have just updated to 1.31 and cannot get this extension to operate correctly. Old annotations are not available and if I try to annotate a new image the image goes dark and the annotation is not added.

If I can help in debugging let me know.


Roger A

RogerA1 (talkcontribs)


I reapplied headers and this has fixed it and it now works as it should. I am not sure what the best way to recover from this was as I could have tried deleting the form template association first but I did not test this.

I will test a little more carefully if this happens again,


Roger A

24pm (talkcontribs)

What do you meat by "reapplied headers"?

I have encountered the same problem on MW 1.31: when I push "Save" in pop-up annotation window a small empty windows appears, which is expected to be a form, but there is nothing in it. The only thing you can do is just push the X and close the windows. So annotation disappears and nothing creates nor changes.

RogerA1 (talkcontribs)

On the special page Sematic Image Annotator below the area were you add the form tehre is a button called sta-reinstall-headers. I pressed that and it fixd the problem and I can use the annotator. I believe this did remove previous annotation so make sure you have a backup before testing.



24pm (talkcontribs)

Reinstall-headers did not help in my case. Page Special:SemanticImageAnnotator is not updating in such a case. It shows the message "Loading..." and nothing happens. Browser console throws the error:

"Uncaught TypeError: Cannot read property 'results' of undefined"

and then after a while:

"Failed to load resource: the server responded with a status of 403 (Forbidden)"

from freegeoip.net with link on message about updating API endpoint:


The thing is in SSL as I suppose. The site I'm trying to run SemanticImageAnnotator is running via HTTP not HTTPS.

Why do we need freegeoip.net in this extension anyway? Is it possible to switch it off?

I test this on my playground site, where the error could be reproduced:


Reply to "Mediwiki 1.31"

Are annotations only visible when the user clicks on the "Annotate" tab?

Amirfaour (talkcontribs)

Is there a way to make the annotations visible when an image is loaded on a wiki page without having the user click on the "Annotate" tab?

Amirfaour (talkcontribs)

I managed to fork Semantic Image Annotator and modify modules/ex.annotator.js.

It now always shows annotations, for those interested.

Reply to "Are annotations only visible when the user clicks on the "Annotate" tab?"

Duplicate Special pages

Amirfaour (talkcontribs)

Great work on this extension.

I noticed after installing it that it creates two Special pages:


Special:Semantic Image Annotator

Is that on purpose or in error?



Kghbln (talkcontribs)
Reply to "Duplicate Special pages"
Loman87 (talkcontribs)

Hi ,

I am having this error after installing the extension:

Notice: Did not find alias for special page 'SemanticImageAnnotator'. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in /var/lib/mediawiki/includes/specialpage/SpecialPageFactory.php at line 688] in /var/lib/mediawiki/includes/debug/MWDebug.php on line 300

It is shown in Special:SpecialPages; however in the version page, the extesion seems to be correctly installed.

When I try to use the extension, a box appears saying 'You have not yet installed the Extension. Please go to Special Page'.

My mw configuration is

Product Version
MediaWiki 1.27.1
PHP 7.0.18-0ubuntu0.16.04.1 (apache2handler)
MySQL 5.7.18-0ubuntu0.16.04.1
ICU 55.1
Lua 5.1.5
Elasticsearch 1.7.3

Any ideas?



Loman87 (talkcontribs)

I have understood the message: after the usual installation, you have to go to SpecialPages, click on SemanticImageAnnotator and then click on install again.

Now the extension works, but still remains the debugger notice.

I have the same issue after the installation of SemanticTextAnnotator

Notice: Did not find alias for special page 'SemanticTextAnnotator'. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in /var/lib/mediawiki/includes/specialpage/SpecialPageFactory.php at line 688] in /var/lib/mediawiki/includes/debug/MWDebug.php on line 300

Tobias Weller (talkcontribs)

Hey Lorenzo,

ok., thanks for the notice. Indeed, no alias file has been added. I think this would solve this issue.

I will add it to the next version (for both annotators)



Loman87 (talkcontribs)

Hi Tobias,

thanks for the answer and for your work, these extensions are really wonderful!



Tobias Weller (talkcontribs)

Thanks, I really appreciate it :)

Reply to "Installation issue"
Cavila (talkcontribs)

Dear Felix Obenauer,

I'm not sure if you're still working on this, although suggests that you were at least in the process of updating the extension last year. Anyway, let me begin by saying that this extension is a wonderful idea that more users should learn about (I wasn't aware of it mself) and by thanking you for your efforts. I'm afraid it doesn't work on my MW installation, possibly as a result of more recent changes to SMW. Here are my comments so far based on SIA 0.5 with SMW 1.9.2 and SF 2.7:

  • Currently, there's only one form for any type of image, whether it's a photo of a building, a group of people, a landscape, or a painting, a manuscript, an early map, etc. It would be more logical to allow for different usages through SF's "Page has default form" (or otherwise an equivalent unique to SIA).
  • The image cannot be seen when the form pop ups, which makes it difficult, for instance, to transcribe a selection of text.
  • If you cancel the form, the extension still automatically creates an empty, unused page in the SIA namespace.
  • About the queries
    • Queries unfortunately produce an error, "Some subquery has no valid condition", so I don't know what the result looks like.
    • It may be a minor thing, but wouldn't it be wiser to use a syntax that conforms to result formats, thats's to say, a pipe before the "format=imageannotation"

Please let us know if you intend to work on this.

Loman87 (talkcontribs)

Dear Cavila,

do you have any news about this extension? I couldn't succeed to find any update on the web. I am very interested in both Semantic Image Annotator and Semantic Text Annotator.

Thanks for your collaboration!

Cavila (talkcontribs)
Reply to "First comments"

AjaxDispatcher deprecated

Kghbln (talkcontribs)

AjaxDispatcher will be removed from MediaWiki core with version 1.26. Since this extension probably uses it, it should be migrated to an API module as this e-mail suggests. There is also a tracking bug. Thanks and cheers

Reply to "AjaxDispatcher deprecated"
Kghbln (talkcontribs)

Heiya, I have added information about this extension's namespace to this spot. This is just for informatory purposes. Cheers

Reply to "Extension default namespaces"
There are no older topics