@Test public void curiesAreEntailed() { Collection<String> resolvedTypes = util.resolveTypes("FOO:foo", true); assertThat(resolvedTypes, containsInAnyOrder("http: }
Collection<String> resolveTypes(String types, boolean entail) { Collection<String> resolvedTypes = transform(newHashSet(Splitter.on('|').omitEmptyStrings().split(types)), new Function<String, String>() { @Override public String apply(String type) { return curieUtil.getIri(type).orElse(type); } }); if (entail) { return getEntailedRelationshipNames(resolvedTypes); } else { return resolvedTypes; } }
CypherUtil { Collection<String> resolveTypes(String types, boolean entail) { Collection<String> resolvedTypes = transform(newHashSet(Splitter.on('|').omitEmptyStrings().split(types)), new Function<String, String>() { @Override public String apply(String type) { return curieUtil.getIri(type).orElse(type); } }); if (entail) { return getEntailedRelationshipNames(resolvedTypes); } else { return resolvedTypes; } } }
CypherUtil { Collection<String> resolveTypes(String types, boolean entail) { Collection<String> resolvedTypes = transform(newHashSet(Splitter.on('|').omitEmptyStrings().split(types)), new Function<String, String>() { @Override public String apply(String type) { return curieUtil.getIri(type).orElse(type); } }); if (entail) { return getEntailedRelationshipNames(resolvedTypes); } else { return resolvedTypes; } } @Inject  CypherUtil(GraphDatabaseService graphDb, CurieUtil curieUtil); }
CypherUtil { Collection<String> resolveTypes(String types, boolean entail) { Collection<String> resolvedTypes = transform(newHashSet(Splitter.on('|').omitEmptyStrings().split(types)), new Function<String, String>() { @Override public String apply(String type) { return curieUtil.getIri(type).orElse(type); } }); if (entail) { return getEntailedRelationshipNames(resolvedTypes); } else { return resolvedTypes; } } @Inject  CypherUtil(GraphDatabaseService graphDb, CurieUtil curieUtil); Result execute(String query, Multimap<String, Object> params, long timeout, TimeUnit unit); Result execute(String query, long timeout, TimeUnit unit); Result execute(String query, Multimap<String, Object> params); Result execute(String query); Set<RelationshipType> getEntailedRelationshipTypes(Collection<String> parents); @Deprecated String resolveStartQuery(String cypher); String resolveNodeIris(String cypher); String resolveRelationships(String cypher); Map<String, String> getCurieMap(); }
CypherUtil { Collection<String> resolveTypes(String types, boolean entail) { Collection<String> resolvedTypes = transform(newHashSet(Splitter.on('|').omitEmptyStrings().split(types)), new Function<String, String>() { @Override public String apply(String type) { return curieUtil.getIri(type).orElse(type); } }); if (entail) { return getEntailedRelationshipNames(resolvedTypes); } else { return resolvedTypes; } } @Inject  CypherUtil(GraphDatabaseService graphDb, CurieUtil curieUtil); Result execute(String query, Multimap<String, Object> params, long timeout, TimeUnit unit); Result execute(String query, long timeout, TimeUnit unit); Result execute(String query, Multimap<String, Object> params); Result execute(String query); Set<RelationshipType> getEntailedRelationshipTypes(Collection<String> parents); @Deprecated String resolveStartQuery(String cypher); String resolveNodeIris(String cypher); String resolveRelationships(String cypher); Map<String, String> getCurieMap();  }