2graph is a java-based API for abstracting graph databases. The API facilitates ETL pipelines and the translation/representation of resources (XML, Spreadsheets, and RDBs ) as graph structures.
The API currently handles connections with Neo4J (property graph) and Virtuoso (RDF). See this discussion for more details about the supported graph databases and graph data models.
See this example and start using 2graph.