https://github.com/neo4jrb/neo4apis-github
An ruby gem to import github data to neo4j
https://github.com/neo4jrb/neo4apis-github
Last synced: 5 months ago
JSON representation
An ruby gem to import github data to neo4j
- Host: GitHub
- URL: https://github.com/neo4jrb/neo4apis-github
- Owner: neo4jrb
- License: mit
- Created: 2014-10-31T14:22:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T06:25:01.000Z (over 2 years ago)
- Last Synced: 2024-10-31T14:57:11.401Z (6 months ago)
- Language: Ruby
- Size: 16.6 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
neo4apis-github is a ruby gem for making importing data from github to neo4j easy
This adapter supports objects created from the `github_api` gem.
```ruby
require 'github_api'
github_client = Github.new(oauth_token: token)require 'neo4apis/github'
neo4japis_github = Neo4Apis::Github.new(Neo4j::Session.open)neo4japis_github.batch do
github_client.issues.list.each do |issue|
# Imports:
# * The issue
# * The creator / assignee
# * The repo
# * The owner of the repo
import :Issue, issue
end
end```
Currently supports importing of User, Issue, Repository, Comment, and Commit entities