RelationalAI Python API Reference#
This section contains reference documentation for the RelationalAI Python API.
relationalai
#
The relationalai
namespace contains classes for fundamental concepts, including the
Model
, Type
, and Producer
classes.
relationalai.std
#
The relationalai.std
namespace contains the RelationalAI Query Builder Standard Library.
This includes functions for performing aggregations
as well as classes for creating and working with graphs.
relationalai.std.aggregates
#
relationalai.std.dates
#
Date()
DateTime()
date()
date.fromdatetime()
date.fromordinal()
date.fromisoformat()
date_add()
date_range()
date_subtract()
datetime()
datetime.fromdate()
datetime.fromordinal()
datetime.strptime()
day()
days()
dayofyear()
hour()
hours()
ISO
isoweekday()
microseconds()
milliseconds()
minute()
minutes()
month()
months()
nanoseconds()
quarter()
second()
seconds()
strftime()
week()
weekday()
year()
years()
relationalai.std.graphs
#
Graph
Edge
EdgeInstance
Compute
.adamic_adar()
.avg_clustering_coefficient()
.avg_degree()
.avg_indegree()
.avg_outdegree()
.betweenness_centrality()
.cosine_similarity()
.common_neighbor()
.degree_centrality()
.degree()
.diameter_range()
.distance()
.eigenvector_centrality()
.indegree()
.is_connected()
.is_reachable()
.is_triangle()
.label_propagation()
.local_clustering_coefficient()
.louvain()
.max_degree()
.max_indegree()
.max_outdegree()
.min_degree()
.min_indegree()
.min_outdegree()
.num_edges()
.num_nodes()
.num_triangles()
.outdegree()
.pagerank()
.preferential_attachment()
.reachable_from()
.triangles()
.weakly_connected_component()
.weighted_distance()
.weighted_cosine_similarity()
.weighted_degree_centrality()
.weighted_jaccard_similarity()
relationalai.std.math
#
abs()
acos()
asin()
atan()
isclose()
ceil()
cbrt()
cos()
degrees()
floor()
log()
radians()
sign()
sin()
sqrt()
tan()
trunc_divide()