Extension talk:VIKI

Jump to navigation Jump to search

About this board

Graph: Uncaught TypeError: mw.loader.using is not a function

2 (talkcontribs)

Hey there,

So I'm using MW 1.32.0 + SWM 3.0.1 + Semantic Title 4.0 + Title Icon 4.0 + VikiST 1.4.0 and VikiTI 1.4.0.

I had this problem with Title Icon 4.0 and TYPE_STRING so I corrected as in Title Icon 4.1:

if ( ( defined( 'SMWDataItem::TYPE_STRING' ) &&

$value->getDIType() == SMWDataItem::TYPE_STRING ) ||

$value->getDIType() == SMWDataItem::TYPE_BLOB ) {

$strings[] = trim( $value->getString() );

So now Title Icon 4.(1) is okay, but VIKI is not.

Graph are not rendering and I got this in console :

Graph:206 Uncaught TypeError: mw.loader.using is not a function

I tried the php maintenance/refreshLinks.php, but that's not it?

Any idea? Maybe I upgraded too far with everything...


Cindy.cicalese (talkcontribs)

VIKI is not actively maintained at this point. However, if somebody determines that a fix is necessary for upgrading and submits a patch, it is possible that it could be considered.

Reply to "Graph: Uncaught TypeError: mw.loader.using is not a function"

HTML numbers instead of symbols

Silkwood (talkcontribs)

If the NODE (i.e. the page title) contains symbols (e.g. a single quote), VIKI puts the HTML number instead (e.g. ')

For example if I have the node Rickett's Hornpipe VIKI will render it as Rickett's Hornpipe

Is there a way to solve this misbehaviour?

Thank you

Cindy.cicalese (talkcontribs)

Unfortunately, there is no longer an active maintainer for Extension:VIKI.

Reply to "HTML numbers instead of symbols"

Not working in MediaWiki 1.30.0

Summary by Legaulph

I did not set the width and height

Legaulph (talkcontribs)
MediaWiki 1.30.0
PHP 7.1.8 (apache2handler)
Semantic MediaWiki 2.5.6
Page Forms 4.2.1 (624f2a9) 18:20, 16 January 2018
VIKI 1.6.0 17:12, 23 March 2015

Does not display anything, and no errors showing

--Legaulph (talk) 16:13, 1 March 2018 (UTC) (talkcontribs)

I just installed the extension and it shows up in the Version Special Page.

It looks like the collaborate.mitre.com site is offline (for ever?) and I don't know how to set up the Graph?

There is no Special Page for the Extension and I couldn't find any other way to interact wirth the extension.

I just feel kinda dump...

Cindy.cicalese (talkcontribs)

There was some infrastructure maintenance over the weekend that took collaborate.mitre.org offline. It is back up now and has the information that you are looking for.

Reply to "Where to start?"

viki graph on SMW and non-SMW wikis

Tenbergen (talkcontribs)

I just installed VIKI on two mediawikis.

One does NOT have SMW installed, and the extension works.

The and DOES have SMW installed, and the extension does NOT work.

I would have expected the opposite behavior. Why would this be?


So, I waited a day and checked again, now it works. The wiki that would not work initially is a LOT more interlinked and larger and I have had some problems with the runJobs not working right, so this might have just been a matter of the time to populate new data. Not certain, but thought I'd update here.

Cindy.cicalese (talkcontribs)

I'm glad that it started working! Thank you for your report and the update that it did begin working.

Tenbergen (talkcontribs)

Interesting though, at least one of my colleagues got the same look of the page, with no indication of the VIKI call. I did a (ctrl-F5) on her computer and then it worked. We never had a page with that name before, so it seems strange that it would have cached something that did not work. In any case, cache flush fixed it, so I am good to go, but wanted to report that back.

Reply to "viki graph on SMW and non-SMW wikis"
Tenbergen (talkcontribs)

We have a very interlinked wiki with >2700 pages. Almost 600 are redirects, many left intentionally so people can find and link pages under different names, e.g. an acronym. I don't know if others use redirects the same way, would be interesting to find out.

It would be nice if VIKI could "mask" these and just show them as a direct link. Many of our articles have >10 links in and out, including all the redirects makes for a cluttered display.

Cindy.cicalese (talkcontribs)

That does sound like it would be useful in a situation with many redirects. While we are not actively adding new features to VIKI right now, we can add this to our list of future enhancements. We are also willing to accept patches from other contributors. Thanks!

Reply to "redirects"
Tenbergen (talkcontribs)

Wow, that is one very cool extension! I have been trying to explain to some of my colleagues for years how the info is all there in one big network, but it took a long time to convince them. Being able to visualize the concept like this is great.

I had been thinking about coming out to EMWCon before installing this, but now I am convinced that I have to go! Thanks foran excellent tool!

Cindy.cicalese (talkcontribs)

Great! Looking forward to meeting you at EMWCon.

Reply to "Thanks for a great tool!"

Start with no nodes elaborated?

RDGGDR (talkcontribs)

It would be useful to have a VIKI graph showing only specified nodes. For example, you have a wiki showing the solar system, you could do a VIKI graph specifying "All Planets" and initially it would only show all the planets. Then on elaborating, say, Earth, it could show all the other pages that link into/out from Earth.

At the moment the only way to display such a thing is to make separate pages that only contain the required links, and use Semantic Titles appropriately - which is not a great solution.

Ckoerner (talkcontribs)

Perhaps one way would be to limit via category? "Only show nodes/pages in Category X"?

Cindy.cicalese (talkcontribs)

Thank you for your feedback. We will add those suggestions to our list of requests. We used to have such functionality in an earlier implementation and agree that it could be useful. We also welcome patches in gerrit.

Reply to "Start with no nodes elaborated?"

Show categories and sub-categories as nodes?

S3r3nd1 (talkcontribs)

Hi, thanks for this fantastic extension!

I was playing around and wondering if it was possible to display Categories as nodes?

Let's say to map a graph of categories and subcategories or visually linking categories within a page for examples.

Cindy.cicalese (talkcontribs)

Thank you for your suggestion. Yes, we have considered showing categories as nodes. This functionality does not currently exist in VIKI, but may be added in the future. However, we are not currently working on any enhancements at this time.

S3r3nd1 (talkcontribs)

Thanks for your answer, I've seen all the projects you're contributing to Cindy, and I really appreciate all the work.

I've tried differently and I've been sastisfied with the result without categories' noding. This could be a pretty mess anyway, or not. ;)

For now, I can't get SemanticTitle / Title Icon to display in pages and VIKI graph, so I'm still investigating but maybe I'll post question on the proper talk page if I can't get it to work.

Reply to "Show categories and sub-categories as nodes?"

Show properties/Exclude non existent pages

TheFamilyBusiness (talkcontribs)

Thank you very much for this great extension! I have two questions regarding the illustration of the VIKI graph:

  • Is it possible to display the properties "between" two pages in the graph? Like <pre>Page1 --> Property --> Page2</pre>
  • Is it possible to exlude pages that do not exist yet? Right now, they are displayed as red links in the graph and hamper the readability.

Thank you very much in advance for an answer.

Jji (talkcontribs)

Hi there, sorry for the delayed response, and thanks for using VIKI! Unfortunately, neither of these things is possible. VIKI is really designed to show direct page links between pages, so inserting properties between nodes on the graph wouldn't be possible. It's also not possible to exclude nonexistent (red) pages, although that's an interesting idea and a possible future feature.

Reply to "Show properties/Exclude non existent pages"