Deprecated Features
Review the deprecated features in Oracle Graph Server and Client.
- PG_VIEW Field
The PG_VIEW constant is deprecated from GraphSource and SourceType. Instead, use PG_PGQL.
- PgxSession.readSubgraph() methods
session.readSubgraph().fromPgView()is deprecated. Instead, usesession.readSubgraph().fromPgPgql().graph.expandGraph().withPgql().fromPgView()is deprecated. Instead, usegraph.expandGraph().withPgql().fromPgPgql().
- PgxSession.getGraphs() function
The
PgxSession.getGraphs()method is deprecated. Instead, usegetGraphs(Namespace namespace). - PyPGX
PgxSession.read_subgraph_from_pg_view()is deprecated. Instead, usePgxSession.read_subgraph_from_pg_pgql().- The following function signatures are
deprecated for
PgxGraph:get_or_create_edge_property(name, data_type=None, dim=0)Instead, use
get_or_create_edge_property(type, /, name).get_or_create_edge_vector_property(data_type, dim, name=None)Instead, use
get_or_create_edge_vector_property(type, dimension, /, name).get_or_create_vertex_property(name, data_type=None, dim=0)Instead, use
get_or_create_vertex_property(type, /, name).get_or_create_vertex_vector_property(data_type, dim, name=None)Instead, use
get_or_create_vertex_vector_property(type, dimension, /, name).
Note the following changes that apply for the new signatures:
nameis no longer optionaltypeis the first argument followed bydimension, andnameis the final argumentdata_typeanddimare deprecated
DeepWalkModel.validation_fraction,Pg2vecModel.validation_fraction, and thevalidation_fractionargument ofAnalyst.pg2vec_builder()are deprecated.The loss is computed on all samples.
- The following attributes on
Operationare now deprecated:graph_id,operation_type,cost_estimate,total_cost_estimate,cardinality_estimate,pattern_info, andchildren. Instead, use the corresponding getter methods, such asget_graph_id(),get_operation_type(), and so on. - The
pgx_versionattribute inServerInstanceclass is deprecated. Instead, useget_version(). - The attribute
pg_view_nameinPartitionedGraphConfigis deprecated. Instead, usesource_nameandsource_type. set_standarizeinGraphWiseModelConfigis deprecated. Instead, useset_standardize.- The return value of
PgqlResultSet.get_vertex_labelsmay or may not be a list.
- PgxML
- The methods
setValidationFractionandgetValidationFractionare deprecated for DeepWalk and Pg2vec, the loss is now computed on all samples. GraphWiseModel.inferAndGetExplanation()is deprecated. Instead, useGraphWiseModel.gnnExplainer()to obtain aGnnExplainerobject for the model and useGnnExplainer.inferAndExplain().Pg2vecModelBuilder.setUseGraphletSize(java.lang.Boolean useGraphletSize)method inoracle.pgx.api.mllibAPI is deprecated. Instead, use thePg2vecModelBuilder.setUseGraphletSize(boolean useGraphletSize)method.SupervisedGraphWiseModelBuilder.setLossFunction(SupervisedGraphWiseModelConfig.LossFunction ...)is deprecated. Instead, useSupervisedGraphWiseModelBuilder.setLossFunction(LossFunction ...)function.
- The methods
- GraphServer#getInstance API
The following
GraphServer#getInstanceAPIs are deprecated:GraphServer.getInstance(ClientConfig clientConfig, String username, char[] password, int refreshTimeBeforeTokenExpiry)GraphServer.getInstance(String baseUrl, String username, char[] password, int refreshTimeBeforeTokenExpiry)GraphServer.getInstance(String baseUrl, String kerberosTicketPath, int refreshTimeBeforeTokenExpiry)
Instead, configure the
refresh_time_before_token_expiry_secondsparameter in thepgx.conffile. - Methods deprecated for
PgqlViewGraphExpanderPgqlViewGraphExpander.schema(String)andPgqlViewGraphExpander.owner(String)are deprecated. Instead, usePgqlViewGraphExpander.fromPgView(String, String). - Graph Server (PGX) Configuration Fields
The graph server configuration fields,
server_certandserver_private_keyare deprecated. Instead, useserver_keystore. - Subgraph Loading
Creating Subgraphs using filter expressions is deprecated. Instead, use Loading a Subgraph from a PGQL Property Graph.
Parent topic: Changes in This Release for This Guide