Deprecated Features
Review the deprecated features in Oracle Graph Server and Client.
- PG_VIEW FieldThe PG_VIEW constant is deprecated from GraphSource and SourceType. Instead, use PG_PGQL. 
- PgxSession.readSubgraph() methods- session.readSubgraph().fromPgView()is deprecated. Instead, use- session.readSubgraph().fromPgPgql().
- graph.expandGraph().withPgql().fromPgView()is deprecated. Instead, use- graph.expandGraph().withPgql().fromPgPgql().
 
- PgxSession.getGraphs() functionThe PgxSession.getGraphs()method is deprecated. Instead, usegetGraphs(Namespace namespace).
- PyPGX- PgxSession.read_subgraph_from_pg_view()is deprecated. Instead, use- PgxSession.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 optional
- typeis the first argument followed by- dimension, and- nameis the final argument
- data_typeand- dimare deprecated
 
- DeepWalkModel.validation_fraction,- Pg2vecModel.validation_fraction, and the- validation_fractionargument of- Analyst.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_standarizein- GraphWiseModelConfigis deprecated. Instead, use- set_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, use- GraphWiseModel.gnnExplainer()to obtain a- GnnExplainerobject for the model and use- GnnExplainer.inferAndExplain().
- Pg2vecModelBuilder.setUseGraphletSize(java.lang.Boolean useGraphletSize)method in- oracle.pgx.api.mllibAPI is deprecated. Instead, use the- Pg2vecModelBuilder.setUseGraphletSize(boolean useGraphletSize)method.
- SupervisedGraphWiseModelBuilder.setLossFunction(SupervisedGraphWiseModelConfig.LossFunction ...)is deprecated. Instead, use- SupervisedGraphWiseModelBuilder.setLossFunction(LossFunction ...)function.
 
- The methods
                                                  
- GraphServer#getInstance APIThe 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 FieldsThe graph server configuration fields, server_certandserver_private_keyare deprecated. Instead, useserver_keystore.
- Subgraph LoadingCreating 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