예제 #1
0
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.operation.java_field_return_value_type_linker import JavaFieldTypeLinkerOperation
from skgraph.graph.graph_operator import GraphOperator

graphOperator = GraphOperator(GraphClient(server_number=1))
graphOperator.operate_on_all_nodes(500, ['java abstract property'],
                                   JavaFieldTypeLinkerOperation())
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.graph_operator import GraphOperator
from skgraph.graph.operation.java_exception_throw_description_exception_type_linker import \
    JavaThrowExceptionDescriptionTypeLinkerOperation

graphOperator = GraphOperator(GraphClient(server_number=1))
graphOperator.operate_on_all_nodes(
    500, ['java throw exception description'],
    JavaThrowExceptionDescriptionTypeLinkerOperation())
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.graph_operator import GraphOperator
from skgraph.graph.operation.java_exception_throw_type_linker import JavaExceptionTypeLinkerOperation

graphOperator = GraphOperator(GraphClient(server_number=1))
graphOperator.operate_on_all_nodes(500, ['java method'],
                                   JavaExceptionTypeLinkerOperation())
예제 #4
0
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.graph_operator import GraphOperator
from skgraph.graph.operation.wall_node_fix import FixWallNodeLabelErrorOperation

graphOperator = GraphOperator(GraphClient(server_number=1))
graphOperator.operate_on_all_nodes(3000, ['wall'],
                                   FixWallNodeLabelErrorOperation())
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.graph_operator import GraphOperator
from skgraph.graph.operation.java_package_add_alias_property import JavaPackageAliasPropertyCreateOperation

graphOperator = GraphOperator(GraphClient(server_number=1))
graphOperator.operate_on_all_nodes(1000, ['java package'],
                                   JavaPackageAliasPropertyCreateOperation())
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.operation.java_field_add_alias_property import JavaFieldAliasPropertyCreateOperation
from skgraph.graph.graph_operator import GraphOperator

graphOperator = GraphOperator(GraphClient(server_number=1))
graphOperator.operate_on_all_nodes(400, ['java field'],
                                   JavaFieldAliasPropertyCreateOperation())
예제 #7
0
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.operation.java_parameter_type_linker import JavaParameterTypeLinkerOperation
from skgraph.graph.graph_operator import GraphOperator

graphOperator = GraphOperator(GraphClient(server_number=1))
graphOperator.operate_on_all_nodes(500, ['java method parameter'],
                                   JavaParameterTypeLinkerOperation())
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.graph_operator import GraphOperator
from skgraph.graph.operation.api_node_entity_label_adder import APINodeEntityLabelAdderOperation

graphOperator = GraphOperator(GraphClient(server_number=1))
graphOperator.operate_on_all_nodes(500, ['wikidata'],
                                   APINodeEntityLabelAdderOperation())
from script.api_linking.api_linker_operation import APILinkerOperation
from db.api_linker import APILinker
from shared.logger_util import Logger
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.accessor.graph_client_for_api import APIGraphAccessor
from skgraph.graph.graph_operator import GraphOperator

client = GraphClient(server_number=1)
graphOperator = GraphOperator(client)
api_linker = APILinker()
logger = Logger("API_Name_Linking").get_log()
accessor = APIGraphAccessor(GraphClient())
operation = APILinkerOperation(logger, accessor, api_linker)
graphOperator.operate_on_all_nodes(500, ['api'], operation)
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.operation.java_class_add_alias_property import JavaClassAliasPropertyCreateOperation
from skgraph.graph.graph_operator import GraphOperator

graphOperator = GraphOperator(GraphClient(server_number=1))
graphOperator.operate_on_all_nodes(1000, ['java class'], JavaClassAliasPropertyCreateOperation())
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.graph_operator import GraphOperator
from skgraph.graph.operation.java_class_parent_class_linker import JavaClassParentClassLinkerOperation

graphOperator = GraphOperator(GraphClient(server_number=1))
graphOperator.operate_on_all_nodes(1000, ['java class'], JavaClassParentClassLinkerOperation())
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.graph_operator import GraphOperator
from skgraph.graph.operation.build_node_alias_node_graph import BuildAliasNodeShadowGraphOperation

graphOperator = GraphOperator(GraphClient(server_number=1))
graphOperator.operate_on_all_nodes(1000, ['relation'],
                                   BuildAliasNodeShadowGraphOperation())
graphOperator.operate_on_all_nodes(1000, ['entity'],
                                   BuildAliasNodeShadowGraphOperation())
from skgraph.graph.accessor.graph_accessor import GraphClient
from skgraph.graph.graph_operator import GraphOperator
from skgraph.graph.operation.java_return_value_type_linker import JavaReturnValueTypeLinkerOperation

graphOperator = GraphOperator(GraphClient(server_number=1))
graphOperator.operate_on_all_nodes(500, ['java method return value'],
                                   JavaReturnValueTypeLinkerOperation())