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

CSV (wikibase dump) -> Neo4j format #2

Open
NuriaQueralt opened this issue Dec 6, 2018 · 0 comments
Open

CSV (wikibase dump) -> Neo4j format #2

NuriaQueralt opened this issue Dec 6, 2018 · 0 comments

Comments

@NuriaQueralt
Copy link
Owner

NuriaQueralt commented Dec 6, 2018

Following the reasoning in #6, i am gonna update the library:

Nodes file

  • fill blank fields with "NA" (fillna())
  • rename: synonyms:IGNORE to synonyms (because synonyms includes name since they are merged)
  • [OPTIONAL] rename: name to name:IGNORE. This field contains "preflabel + (ID)" for those terms that have more than one ID.

Edges file

  • fill blank fields with "NA" (fillna())
  • rename: reference_date to reference_date:IGNORE
  • check all :TYPE (edge_type) are in CURIE format and no string, e.g. colocalizes_with. There is the problem of None edge type.. #4
    • colocalizes with (RO:0002325)
    • contributes to (RO:0002326)
match path=(n)-[r]-(m) return distinct type(r)
  • normalize string labels with all "space" not "underscore", e.g. has phenotype or has_genotype
match path=(n)-[r]-(m) return distinct r.property_label
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

No branches or pull requests

1 participant