Knowledge Representation & Access

Topic Overview

Deeply integrated into the Wolfram Language is access to the immense and continuously updated Wolfram Knowledgebase also used in Wolfram|Alpha. Free-form linguistics makes it easy to identify many millions of entities and many thousands of properties and automatically generate precise Wolfram Language representations suitable for extensive further computation. The Wolfram Language also supports custom entity stores that allow the same computations as the built-in knowledgebase, and can be associated with external relational databases.

() — give free-form linguistics to be converted to Wolfram Language form

Entity — symbolic representation of a named entity of any type (e.g. "City", "Person", ...):

EntityClass — representation of a class of entities of a given type (e.g. countries in Europe):

EntityValue — value of a property of an entity or set of entities (e.g. density of gold)

EntityList — generate an explicit list of entities from a specification

RandomEntity — generate a random entity of a given type

EntityClassList — give the list of entity classes of a given type

EntityInstance — specific instance of an entity (e.g. 5 kg of gold or USA in 1850)

EntityCopies — multiple copies of an entity (e.g. 10 baseballs)

EntityGroup — group of entities (e.g. hamburger and fries)

EntityProperties — properties available for a class of entities

EntityProperty — symbolic representation of a property for a type of entity (e.g. "Population"):

EntityPropertyClass — a class of properties of a given type (e.g. demographics)

EntityFunction — symbolic representation of a function with entity constructs as parameters

Entity Classes Implicitly Defined by Property Values

EntityClass[type,propvalues] — classes of entities with properties satisfying conditions

TakeLargest  ▪  TakeSmallest

GreaterThan  ▪  LessThan  ▪  Between  ▪  NearestTo

ContainsAny  ▪  ContainsAll  ▪  ContainsOnly  ▪  ContainsNone  ▪  ContainsExactly

Transformations & Computations on Entity Classes »

FilteredEntityClass — symbolic representation of an entity class filtered by a predicate

SortedEntityClass  ▪  SampledEntityClass  ▪  ExtendedEntityClass  ▪  AggregatedEntityClass  ▪  CombinedEntityClass  ▪  UnionedEntityClass  ▪  IntersectedEntityClass  ▪  ComplementedEntityClass

Standard Properties

CommonName — common printable name of an entity or property

CanonicalName — unique canonical name of an entity or property

EntityTypeName — name of the type of an entity

Dated — represent an entity or property on a specific date

GeoPosition  ▪  DateObject  ▪  Quantity

ToEntity — convert from an ordinary expression (e.g. character) to an entity

FromEntity — convert if possible from an entity to an ordinary expression

WolframLanguageData — computable data about all built-in Wolfram Language functions

EntityPrefetch — preload property values for a set of entities (e.g. country populations)

Specific Domains »

Country City Chemical Company Person Planet Food Species Building University ...

Direct Wolfram|Alpha Access »

WolframAlpha — get results in many possible forms from Wolfram|Alpha

( at beginning of input) — use free-form linguistics to generate Wolfram Language output

( at beginning of input) — generate full Wolfram|Alpha output

Setting Up Custom Entity Stores

EntityStore — representation of custom entities and their properties

EntityRegister — register an entity store so its entities can be used directly

EntityUnregister  ▪  EntityStores

Wolfram Data Repository

ResourceObject — symbolic representation of a resource object with content and metadata

ResourceData — extract specific elements from a resource object

Wolfram Data Drop »

Databin — symbolic representation of an incrementally accumulated databin

External Database Connectivity »

RelationalDatabase — symbolic representation of a relational database and its schema

DatabaseExplorer  ▪  MongoConnect  ▪  RDFStore  ▪  ...

SPARQLExecute — run a SPARQL query against an external SPARQL endpoint

LLM Access »

LLMSynthesize — generate text using an LLM

LLMResourceFunction — use prompts from the Wolfram Prompt Repository

LLMConfiguration  ▪  LLMFunction  ▪  LLMTool  ▪  ...

External Knowledgebases

ExternalIdentifier — symbolic representation of externally specified entities

WikipediaData — material from Wikipedia about an entity or topic

WikidataData  ▪  WikipediaSearch  ▪  WikidataSearch

ServiceExecute — access many external services (Yelp, PubMed, PubChem, arXiv, ...)

Web Content

WebSearch — integrated web search (using external services)

WebImageSearch — integrated web image search (using external services)

WebImage — capture an image of a webpage

Textual Question Answering

FindTextualAnswer — attempt to find answers to questions from text

SemanticInterpretation — convert free-form linguistics to Wolfram Language form

SemanticImport — import data, converting entities etc. to Wolfram Language form

Interpreter — interpret input of various types (e.g. "City", "Date", etc.)

System Configuration

Edit ▶ Preferences... ▶ Internet Connectivity — enable and disable connectivity to the Wolfram Knowledgebase