Message Boards Message Boards

0
|
3888 Views
|
5 Replies
|
0 Total Likes
View groups...
Share
Share this post:

PersonData[ ] returning 500 in all output data?

Posted 3 years ago

(I am very new to Wolfram language, so forgive me for not knowing much, I am just glad I found this :))

when I call the function PersonData[person, "Dataset"] I get a dataset, but it's all 500. I do not know why. the "person" variable is a valid person

output below

Dynamic[If[TrueQ[OptionValue[EntityFramework`Utilities`Private`iBatchDownlo\

>         ad, {}, ShowStatus]] && 

>      EntityFramework`Utilities`Private`frontEndAvailableQ[], 

>     Internal`LoadingPanel[OptionValue[EntityFramework`Utilities`Private`iBa\

>         tchDownload, {}, StatusText][Length[{Entity[Person, 

>           AlbertEinstein::6tb7g]}] 

>        (EntityFramework`Utilities`Private`propRetrieved$26957 + 

>          Length[EntityFramework`Utilities`Private`currentPropBatch$26957]), 

>       Length[{Entity[Person, AlbertEinstein::6tb7g]}] 

>        Length[{EntityProperty[Person, AlternateNames] -> 500, 

>          EntityProperty[Person, AstrologicalSign] -> 500, 

>          EntityProperty[Person, BirthDate] -> 500, 

>          EntityProperty[Person, BirthPlace] -> 500, 

>          EntityProperty[Person, Brothers] -> 500, 

>          EntityProperty[Person, Children] -> 500, 

>          EntityProperty[Person, ChineseZodiacSign] -> 500, 

>          EntityProperty[Person, Daughters] -> 500, 

>          EntityProperty[Person, DeathDate] -> 500, 

>          EntityProperty[Person, DeathPlace] -> 500, 

>          EntityProperty[Person, EntityClasses] -> 500, 

>          EntityProperty[Person, Father] -> 500, 

>          EntityProperty[Person, FullName] -> 500, 

>          EntityProperty[Person, Gender] -> 500, 

>          EntityProperty[Person, Height] -> 500, 

>          EntityProperty[Person, Husbands] -> 500, 

>          EntityProperty[Person, Image] -> 64, 

>          EntityProperty[Person, KilledBy] -> 500, 

>          EntityProperty[Person, MannedSpaceMissions] -> 500, 

>          EntityProperty[Person, MathematicalAchievements] -> 500, 

>          EntityProperty[Person, Mother] -> 500, 

>          EntityProperty[Person, MovieAppearances] -> 500, 

>          EntityProperty[Person, MoviesDirected] -> 500, 

>          EntityProperty[Person, MoviesProduced] -> 500, 

>          EntityProperty[Person, MoviesWritten] -> 500, 

>          EntityProperty[Person, Name] -> 500, 

>          EntityProperty[Person, NationalityCountries] -> 500, 

>          EntityProperty[Person, NetWorth] -> 500, 

>          EntityProperty[Person, NotableArtworks] -> 500, 

>          EntityProperty[Person, NotableAstronomicalDiscoveries] -> 500, 

>          EntityProperty[Person, NotableBooks] -> 500, 

>          EntityProperty[Person, NotableChemistryProblems] -> 500, 

>          EntityProperty[Person, NotableFacts] -> 500, 

>          EntityProperty[Person, NotableInventions] -> 500, 

>          EntityProperty[Person, NotablePhysicsProblems] -> 500, 

>          EntityProperty[Person, Occupation] -> 500, 

>          EntityProperty[Person, Parents] -> 500, 

>          EntityProperty[Person, Siblings] -> 500, 

>          EntityProperty[Person, Sisters] -> 500, 

>          EntityProperty[Person, Sons] -> 500, 

>          EntityProperty[Person, Spouses] -> 500, 

>          EntityProperty[Person, Weight] -> 500, 

>          EntityProperty[Person, Wives] -> 500}]]]], 

>    Evaluator -> $ParentLink]EvaluationCell -> $Failed

Any help would be greatly appreciated!

POSTED BY: Faas Tubee
5 Replies
Posted 3 years ago

I wonder if the problem is that Dataset does not render in Jupyter? Try

Dataset[{<|"a" -> 1, "b" -> 2|>, <|"a" -> 3, "b" -> 4|>}]

If that is the issue, you can get all of the data as an Association.

PersonData[Entity["Person", "AlbertEinstein::6tb7g"], "PropertyAssociation"]

i am a 14 year old who has gotten interested in this language

Very cool! You will find a lot of helpful people on this site. If you have a question, please post the code that reproduces the problem (as text, not images) and any other relevant information. It would have helped if you had mentioned Jupyter and included the complete code you ran (definition of person is missing) in your original question.

POSTED BY: Rohit Namjoshi
Posted 3 years ago

Hi Faas,

I have not tried Jupyter with WL and I don't know what the limitations are. Some things to try and narrow down the issue. Doubt it has anything to do with your network.

The dataset includes images and references to other entities. Try simpler queries

PersonData[Entity["Person", "AlbertEinstein::6tb7g"]] // CanonicalName
PersonData[Entity["Person", "AlbertEinstein::6tb7g"]]
PersonData[Entity["Person", "AlbertEinstein::6tb7g"]]["Properties"] // CanonicalName
PersonData[Entity["Person", "AlbertEinstein::6tb7g"]]["Properties"] 
PersonData[Entity["Person", "AlbertEinstein::6tb7g"]]["Children"]
PersonData[Entity["Person", "AlbertEinstein::6tb7g"]]["Image"]

Try other datasets

WeatherData[Here, "Temperature", {2021, 3}] // DateListPlot

I am curious, what are you going to use Java for on this data? Can it be done in WL instead?

POSTED BY: Rohit Namjoshi
Posted 3 years ago

The simpler ones seem to work! Thank you. As for what I'm going to do with this? well, I am a 14 year old who has gotten interested in this language (don't worry, I'll try to not clog up the community posts too much ;))

POSTED BY: Faas Tubee
Posted 3 years ago

hmm, that too, does not work for me. it simple returns this (see picture). Can this have something to do with that im using jupyter notebook and am on a home network?

EDIT:: when i run that in the engine itself, it DOES work. i still need this to embed it in java though... any ideas on how i can fix this?

image

POSTED BY: Faas Tubee
Posted 3 years ago

Looks like the person is Albert Einstein. This works fine for me

PersonData[Entity["Person", "AlbertEinstein::6tb7g"], "Dataset"]
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract