costezki / rdf2gremlin

It has never been easier to transform your RDF data into a property graph based on TinkerPop-Gremlin.
GNU General Public License v3.0
24 stars 3 forks source link

Add node for every node #19

Open leoschenkel opened 4 years ago

leoschenkel commented 4 years ago

Hi there!

Thanks for this amazing lib.

I'd like to know if it's possible to add a new node and vertex to every node.

I'm loading a ttl and inserting with the load function to my graph database.

Leo

costezki commented 4 years ago

Hi Leo, thank you for using rdf2g.

Unfortunately, this use case is not supported by the library, though it could be easily extended. Nor I believe it needs to be as this sounds like a post-loading operation. But I understand why it would be convenient to do it at the load time. So, I would check load_rdf2g, create_node and add_property functions in the update.py module.

I imagine that an additional lambda function parameter in the load_rdf2g function would solve your problem. If you have time to extend this, I will accept the pull request.

Best regards Eugeniu