This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class TestFreebaseGraph { | |
| public static void main(String[] args) { | |
| TitanGraph g=TitanFactory.open("/Users/lili/soft/titan-server-0.4.4/conf/titan-hbase-es.properties"); | |
| Vertex v1=g.addVertex(null); | |
| String name="Jack Brown"; | |
| v1.setProperty("name", name); | |
| v1.setProperty("l_name", name.toLowerCase()); | |
| v1.setProperty("f_name", name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0 [main] INFO com.thinkaurelius.titan.diskstorage.Backend - Configuring index [search] based on: | |
| backend: elasticsearch | |
| hostname: 127.0.0.1 | |
| client-only: true | |
| cluster-name: mytestcluster |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CreateFreebaseGraph { | |
| public static final String INDEX_NAME = "search"; | |
| public static void main(String[] args) { | |
| TitanGraph graph=TitanFactory.open("/Users/lili/soft/titan-server-0.4.4/conf/titan-hbase-es.properties"); | |
| graph.shutdown(); | |
| TitanCleanup.clear(graph); | |
| graph=TitanFactory.open("/Users/lili/soft/titan-server-0.4.4/conf/titan-hbase-es.properties"); | |
NewerOlder