{"id":15994161,"url":"https://github.com/jexp/graph-wrapper","last_synced_at":"2026-07-02T03:31:10.057Z","repository":{"id":1923525,"uuid":"2851628","full_name":"jexp/graph-wrapper","owner":"jexp","description":"diverse graph wrappers, for object networks, dom, etc.","archived":false,"fork":false,"pushed_at":"2011-11-25T23:10:58.000Z","size":108,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T02:02:23.958Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jexp.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-25T18:58:24.000Z","updated_at":"2018-01-04T20:23:11.000Z","dependencies_parsed_at":"2022-09-09T02:23:06.487Z","dependency_job_id":null,"html_url":"https://github.com/jexp/graph-wrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jexp/graph-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fgraph-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fgraph-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fgraph-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fgraph-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jexp","download_url":"https://codeload.github.com/jexp/graph-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fgraph-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35032145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T07:06:41.850Z","updated_at":"2026-07-02T03:31:10.027Z","avatar_url":"https://github.com/jexp.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## purpose\n\nWrap existing, large in memory object networks behind the Neo4j graph database API's to enable:\n\n* fast traversals\n* graph algorithms\n* cypher queries\n* gremlin expressions\n* visualization\n* server\n\n## usage\n\n    class User {\n        private String twid;\n        private Collection\u003cTweet\u003e tweeted = new ArrayList\u003cTweet\u003e();\n        ...\n    }\n\n     class Tag {\n        private String name;\n        private Collection\u003cTweet\u003e tagged = new HashSet\u003cTweet\u003e();\n        ...\n     }\n\n    class Tweet {\n        private String id;\n        private String text;\n        private long date;\n        private User tweeted;\n        private Collection\u003cTag\u003e tagged = new HashSet\u003cTag\u003e();\n    }\n\n    user = new User(\"mesirii\");\n    neo4j = new Tag(\"neo\");\n    graphdb = new Tag(\"graphdb\");\n    tweet1 = user.tweet(\"tweet1\", neo4j);\n    tweet2 = user.tweet(\"tweet2\", neo4j, graphdb);\n    tweet3 = user.tweet(\"tweet3\", graphdb);\n    tweet4 = user.tweet(\"tweet4\", graphdb);\n\n    gdb = new ObjectGraphDatabaseService(user);\n    allTweets = asList(tweet1, tweet2, tweet3,tweet4);\n\n    ObjectNode tweetNode = gdb.createNode(user);\n    Iterable\u003cRelationship\u003e relationships = tweetNode.getRelationships(Direction.OUTGOING, DynamicRelationshipType.withName(\"tweeted\"));\n    Iterable\u003cObject\u003e tweets = tweetNode.getEndNodeObjects(relationships);\n    assertEquals(allTweets, IteratorUtil.asCollection(tweets));\n\n    String query = \"start me=node:User(twid={user})\n      match me-[:tweeted]-\u003etweet-[:tagged]-\u003etag\n      return count(tweet),tag.name order by tag.name asc\";\n    ExecutionResult result = new ExecutionEngine(gdb).execute(query, map(\"user\", \"mesirii\"));\n\n\n## current state\n\n* mostly readonly, some write operations supported\n* cypher, traversals, id-lookup, index-lookups work\n* no Relationship-Entity support\n\n## ideas\n\n* createNode(type)\n* find getNodeById() via traversal not by storing a map\n* InstanceIndex which reflects the actual instances\n* Relationships for classes with exactly 2 entity-instance fields\n* Superclass support ?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjexp%2Fgraph-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjexp%2Fgraph-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjexp%2Fgraph-wrapper/lists"}