SampledEntityClass
SampledEntityClass[class,n]
represents an entity class containing n entities from class.
SampledEntityClass[class,{m,n}]
represents an entity class containing entities m through n of class.
Details
- SampledEntityClass[class,n] gives the first n entities from the internal representation of class. This representation may change when operations are done on class.
- SampledEntityClass[SortedEntityClass[class,…],n] gives the first n entities from class with an ordering defined by SortedEntityClass.
- If class contains fewer than n entities, SampledEntityClass[class,n] is equivalent to class.
Examples
open allclose allBasic Examples (3)
Use SampledEntityClass to look at the first few entities:
Use SampledEntityClass to look at the following entities by specifying an offset:
When used with relational-database-backed entities, SampledEntityClass is compiled to LIMIT and OFFSET statements:
Properties & Relations (2)
When SampledEntityClass is applied to SortedEntityClass:
The same class can be more simply expressed by using SortedEntityClass with three arguments:
Some entity types support the special property "SampleEntities":
SampledEntityClass can also be used on various types of entity classes:
Text
Wolfram Research (2019), SampledEntityClass, Wolfram Language function, https://reference.wolfram.com/language/ref/SampledEntityClass.html.
CMS
Wolfram Language. 2019. "SampledEntityClass." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SampledEntityClass.html.
APA
Wolfram Language. (2019). SampledEntityClass. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SampledEntityClass.html