semantique.entity#
- semantique.entity(*reference, property=None)[source]#
Reference to a semantic concept being an entity.
- Parameters:
*reference (
str
) – The index of the semantic concept within the “entity” category of the mapping against which the query is processed.property (
str
) – Name of a property of the referenced semantic concept. If given, only this property of the semantic concept is translated. IfNone
, all properties of the semantic concept are translated and combined into a single semantic array.
- Returns:
ArrayProxy
– A textual reference to the concept that can be solved by the query processor.
Examples
>>> import semantique as sq >>> sq.entity("water")