本文整理汇总了Java中org.neo4j.rest.graphdb.RestGraphDatabase类的典型用法代码示例。如果您正苦于以下问题:Java RestGraphDatabase类的具体用法?Java RestGraphDatabase怎么用?Java RestGraphDatabase使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RestGraphDatabase类属于org.neo4j.rest.graphdb包,在下文中一共展示了RestGraphDatabase类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Neo4jAccessUtils
import org.neo4j.rest.graphdb.RestGraphDatabase; //导入依赖的package包/类
public Neo4jAccessUtils (String dbURI) {
db = new RestGraphDatabase(dbURI);
engine = new RestCypherQueryEngine( db.getRestAPI() );
annLabel = createLabel("Annotation");
ontologyTermLabel = createLabel("OntologyTerm");
channelLabel = createLabel("Channel");
imageLabel = createLabel("Image");
userLabel = createLabel("User");
userGroupLabel = createLabel("UserGroup");
releaseLabel = createLabel("Release");
datasourceLabel = createLabel("DataSource");
speciesLabel = createLabel("Species");
ontologyLabel = createLabel("Ontology");
}
示例2: Neo4JRemoteServer
import org.neo4j.rest.graphdb.RestGraphDatabase; //导入依赖的package包/类
/**
* @see <a href="https://github.com/neo4j/java-rest-binding">Java binding for the Neo4j Server</a>
*/
public Neo4JRemoteServer() {
db = new RestGraphDatabase(DEFAULT_DB_URI);
// To make sure Neo4j is shut down properly you can add a shutdown hook:
registerShutdownHook(db);
}