3
$\begingroup$

I'd like a function that returns a stringified entity at random. I can't seem to find a full list of classes from which to sample:

enter image description here

$\endgroup$
  • $\begingroup$ EntityValue[]? $\endgroup$ – Carl Woll Jun 11 at 3:52
  • 1
    $\begingroup$ Huh wasn’t obvious to me $\endgroup$ – M.R. Jun 11 at 3:55
  • 1
    $\begingroup$ Shouldn’t it be $EntityClasses or EntityClass[All] or something $\endgroup$ – M.R. Jun 11 at 4:03
4
$\begingroup$

You can get a list of entity types as follows (see the last bullet in the details section of the documentation of EntityValue):

EntityValue[] //Short

{AdministrativeDivision,Aircraft,Airline,Airport,<<288>>,YogaPosition,YogaProp,YogaSequence,ZIPCode}

Note that in the entity framework, classes are collections of entities from a single entity type. For example, "GroupOf8" is an entity class of the "Country" entity type.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.