Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remap node and edge properties #69

Closed
wants to merge 2 commits into from
Closed

Remap node and edge properties #69

wants to merge 2 commits into from

Conversation

deepakunni3
Copy link
Member

@cmungall

This PR adds the ability to remap the value of a node property with the value of another existing node property, on-the-fly when loading nodes from a connected local or remote Neo4j.

The most common use case is to remap the id property of a node with another defined node property.

Similarly for edge properties.

Usage:

    # initialize NeoTransformer
    n = NeoTransformer(None, uri, username, password)

    # add remap conditions
    n.remap_node_properties.append(("id", "alternate_id"))
    n.remap_edge_properties.append(("source", "is_defined_by"))

    # load
    n.load()

@deepakunni3 deepakunni3 requested a review from cmungall June 6, 2018 16:42
@deepakunni3
Copy link
Member Author

Closing in favor of #70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant