[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

Gremlin Query Language – Create Vertex/Node and Edge/Relationship

Open Gremlin Console Initial command to work/test with inmemory storage graph = TitanFactory.build().set('storage.backend','inmemory').open() g=graph.traversal(standard()) Example 1: Create Vertex. Label property is optional. The below queries will return vertex references. graph.addVertex('property1','value1','property2','value2'); OR graph.addVertex(label,'USER','property1','value1','property2','value2'); OR graph.addVertex(T.label,'USER','property1','value1','property2','value2'); OR graph.addVertex(T.label,'USER').property('property1','value1').property('property2','value2'); OR graph.addVertex('LABEL_NAME'); Example 2: Create Edge with/without properties using system generated unique ID g.V(123).next().addEdge('EDGE_LABEL',g.V(456).next()) OR g.E(g.V(123).next().addEdge('EDGE_LABEL',g.V(456).next())).property('property1','value1').property('property2','value2') Example 3: Create Edge with/without… Read More »

Read more
Alternative text

Update Vertex If Exist – Gremlin Query – Titan

Update Vertex If Exist – Gremlin Query – Titan g.V().hasLabel('TEST_LABEL').has('property1','value1').tryNext().ifPresent{ g.V().hasLabel('TEST_LABEL').has('property2','value2').property('property3','value3').iterate(); }; Related Links:

Read more
Alternative text

Social Mobile Apps for Indian General Election 2014

      The internet was once a craze among people. Now it has become very much common. With the internet spread all over the world, the idea of social networking in internet came in picture. Social Networking created a great platform for every one including small-scale to large-scale industries. People were able to build… Read More »

Read more
Alternative text

Raspberry Pi – A credit card sized computer for 25$

              Have you ever heard of a computer which is sized like a floppy disk? Of-course we already have Intel’s NUC, Sapphire’s VS8 etc. But are they really as small like a floppy disk? No, they are not.Here we have such a small computer which is  85.60mm x 56mm x 21mm in size… Read More »

Read more
Alternative text

Search Bar HTML Widget for WordPress Without Using Plugins

            Use the following code with any HTML/Javascript widget to display search bar in the widgets area. I used Enhanced Text WordPress plugin to implement this code. Enhanced Text WordPress plugin is a plugin which is used in embed HTML, JavaScript or CSS in the widgets area. Search Bar HTML Code(for Widgets)… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]