EntityValue[] Not Working

Hi,
I am trying to understand the knowledge representation primitives in Mathematica 10.1. While trying some of the examples given in the Help documentation, I noticed that the following expressions do not work for me:

EntityValue[]

Entity["Mythology"]["Properties"]

When I evaluate these expressions, the same expression is returned. What am I doing wrong?

Regards,

Rangarajan

Hi,

try

EntityProperties["Mythology"]

Cheers,

M.

Thanks, but this also does not work. The same expression is returned. Weird!

Regards,

Rangarajan

Hi

then I do not understand what you are looking for. Does it not look like this:

This is expected behaviour, I believe. That looks just like in the Documentation, does it not? What happens when you do it? When you say the same expressions are returned, do you mean that they are not evaluating? Do you have a screenshot? Have you restarted the Kernel?

Cheers,
Marco

What OS are you using? Evaluate ds. This prints a summary about which version of Mathematica you are using.

Maybe you have an internet connection issue? Do you see any error messages? Can you evaluate:

Import["http://www.google.com"]

Something may be wrong with Mathematica’s configuration. I would suggestion following this article:

I am able to execute this:

Import[“http://www.google.com”]

It works as expected (I get some output from the site), so the internet connection is OK. But EntityValue[] and EntityProperties[“Mythology”] are not evaluated. I do not get the output shown above. I have followed the suggestion given in the support URL, but no improvement.

I am running OSX 10.9.5 with Mathematica 10.1

Regards,

Rangarajan

Hi Everyone,

I can (sort of) reproduce this. It works just fine on my computers (mostly all sorts of Macs running OS X). I am, however, admin of a site license and I have now found people who have this issue. On their computers (Macs, Windows) Entity and related commands to not evaluate properly - see below. The symptoms are similar to the ones described here . All computers can see the internet. We reinstalled Mathematica - taking care of all previous Mathematica related files on the computers; and, because we suspected an issue with a new version of Java, we also used different Java versions, with no conclusive results.

Here is what happens:

EntityProblem.gif

This is as opposed to:

EntityWorks.gif

This only appears to concern MMA 10.1. MMA 10.0.2 runs well on these machines. We also tried different scenarios with and without removing MMA10.0.2 first. We also checked whether it could be a slightly updated version of Mathematica’s installer, as described here, but we could not find any correlation.

Cheers,

Marco

Both of those results are the same except for formatting. The form at the top is how it actually looks in the language and the bottom version is a pretty version that is a bit more readable. Both, however, should work the exact same.

There are a couple of minor issues which sometimes cause this. They only affect how it looks - they don’t affect how it works.

Do these entities not work when you try to use them?

Dear Sean,

thank you for your help. I am aware that they should be the same but the format without the yellow boxes does not evaluate - sorry I should have made that clearer. It is like in this post . If you ask for, say the population size, you do get an unevaluated function. In the “good” system you get the population size.

I cannot really pin the problem down. Mathematica works as expected on my 15+ computers. But it appears that on all the ones of a colleague it has issues. We are working with academic licenses. Some days ago we bought a Standard (commercial) license each for my colleague and myself. It is installed on a Windows server, where I first noticed the problem. When we checked my colleague’s computers (>5 independent machines), they all had problems. Also one of hist Post-docs seems to have the exact same problem. First we thought that it might be because they run a more recent version of Java, but that does not explain it. (Downgrading Java and new install does not fix it.)

Also I have noticed that there could be a server issue at least contributing to the problem. I don’t think that this explains it all. Here is what I see on one of the one for the problematic system:

And then the one for the ok system:

This is curious because both computers are connected to the internet. They are in the same network and have the same network config as far as I can see. I have not had the time to test this systematically though. BTW, I would to ask for the population of Berlin like that with an “=” sign at the beginning, but if I do it in the standard way with EntityValue, I do just get the input unevaluated.

Anyway, on the good system, the “plain text command” and the orange box one seem to evaluate fine. On the other system they do not.

Oh, yes, on all systems, when I use the Preferences tab to check the internet connectivity, all systems say that they can connect to the Wolfram server.

Best wishes and thanks again for your help,

Marco

I am seeing the same issue as Rangarajan.

In[1]:= EntityProperties["Mythology"]

Out[1]= EntityProperties["Mythology"]

using version 10.1 on OS X.

If I try one of the documentation examples, I get the same thing, rather than what the documentation shows is supposed to happen:

In[4]:= EntityProperties["Aircraft"]

Out[4]= EntityProperties["Aircraft"]

This was just cut and pasted from the documentation.

I seem to be able to get to the internet:

In[5]:= Berlin	»	
Entity["City",{"Berlin","Connecticut","UnitedStates"}]	\[SpanFromLeft]	\[SpanFromLeft]


Out[5]= Entity[City,{Berlin,Connecticut,UnitedStates}]

(I had trouble getting the = sign to show up.)

However, I do not get a pod that has information about Berlin.

I can try re-inatalling Mathematica 10, but somehow, I don’t think that will solve the problem.

I found the problem.

After dumping the UserBaseDirectory, BaseDirectory, re-installing Mathematica, etc. I found out what would fix the problem.

I installed Java 8 update 45 on my system. I got this from the Java (Oracle) website.

After doing this, the code for EntityValue[] works – even the documentation code works.

Previously, if you ran Mathematica on an Mac that did not have Java, the OS would notice that Java was missing, and offer to download and instal Java 6 SE. This worked just fine up to version 9, and I believe 10.0, but I can’t be sure.

Apparently 10.1 requires Java 8.

I think that Mathematica should be smart enough to look for the required files and offer to install them.

Hi,

thanks a lot for looking into this problem.

I followed your guidelines, George, but for me it unfortunately does not solve the problem. I tried various computers by now, I have the problem on all of them.

Best wishes and thanks for your help

Bjoern

I included a link to this discussion in the e-mail I sent to tech support. (If you have not sent them a missive, I suggest that you do.) Perhaps they will read this and have some suggestions.

Mine is a pretty simple set up – no corporate firewalls, etc. and, as of yesterday, a plain vanilla installation of Mathematica 10.1. Dealing with curated data involves a lot of ‘moving parts’.

If I get a response from tech support, I will post it here.

Thanks everyone for looking into this. The Java remedy does not seem to fix it for me.

DoesNotEvaluate.gif

I’ll try to get advice from tech support, too.

Cheers,

M.

OK.

Can you let us know in the community what worked (assuming you find out). We may be in a similar position some day.

Perhaps the Java solution just applied to Macs – Apple has been trying to wean users away from Java for the last couple OS releases.

Sure. If I find anything out, I will post it here.

Thanks a lot,

Marco

It seems that something might be generally wrong with accessing curated data from MMA 10.1. This is from the documentation of StarData:

But when trying out the example, the result is less than informative:

StarDataresponse.png

Tried this on two different PC’s. One W7, the other W8.1

Hi,

I believe that that is the same issue. If I execute that on a “good” computer it works. If I run it on a “bad” one that does not work. Could you please run one of the commands we discussed above to check whether they work?

A couple of minutes ago I got one computer working by reinstalling Java, deleting Mathematica completely and then reinstalling it. But this does not always seem to work. I am not really sure what is going on here, but I am getting more and more convinced that George is right and it is a mere Java issue. I just do not understand why reinstalling Java and then Mathematica does not always fix the problem. There might be some remaining files on the system or something.

Cheers,

Marco

The input of EntityProperties[“Aircraft”] just returns the input. On both PC’s.

On one of them I have tried to:

  • Reset Mathematica according to KB12464. The problems remained.
  • Uninstalled and then reinstalled Mathematica 10.1. Still the problems remains.

Hi,

which Java version do you use?

Cheers,

Marco