Package com.ibm.fhir.term.graph
Interface FHIRTermGraph
- 
- All Known Implementing Classes:
 FHIRTermGraphImpl
public interface FHIRTermGraph 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclose()Close the graph and its underlying resources.org.apache.commons.configuration2.Configurationconfiguration()Get the configuration used to create thisFHIRTermGraph.voiddrop()Drop the graph.voiddropAllVertices()Drop all vertices and edges from the graph.org.janusgraph.core.JanusGraphgetJanusGraph()Get the underlyingJanusGraphinstance behind thisFHIRTermGraph.default Stream<org.janusgraph.core.JanusGraphIndexQuery.Result<org.janusgraph.core.JanusGraphVertex>>indexQuery(String query)Query the indexing backend using the Lucene query parser syntax.Stream<org.janusgraph.core.JanusGraphIndexQuery.Result<org.janusgraph.core.JanusGraphVertex>>indexQuery(String query, int limit, int offset)Query the indexing backend using the Lucene query parser syntax and the provided limit and offset.org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSourcetraversal()Get the graph traversal source associated with the underlyingJanusGraphinstance. 
 - 
 
- 
- 
Field Detail
- 
IS_A
static final String IS_A
The edge label that represents an is-a relationship in the graph- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
configuration
org.apache.commons.configuration2.Configuration configuration()
Get the configuration used to create thisFHIRTermGraph.- Returns:
 - the configuration
 
 
- 
getJanusGraph
org.janusgraph.core.JanusGraph getJanusGraph()
Get the underlyingJanusGraphinstance behind thisFHIRTermGraph.- Returns:
 - the 
JanusGraphinstance 
 
- 
traversal
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource traversal()
Get the graph traversal source associated with the underlyingJanusGraphinstance.- Returns:
 - the graph traversal source
 
 
- 
indexQuery
default Stream<org.janusgraph.core.JanusGraphIndexQuery.Result<org.janusgraph.core.JanusGraphVertex>> indexQuery(String query)
Query the indexing backend using the Lucene query parser syntax.- Parameters:
 query- the query- Returns:
 - results of the specified query
 
 
- 
indexQuery
Stream<org.janusgraph.core.JanusGraphIndexQuery.Result<org.janusgraph.core.JanusGraphVertex>> indexQuery(String query, int limit, int offset)
Query the indexing backend using the Lucene query parser syntax and the provided limit and offset.- Parameters:
 query- the querylimit- the limitoffset- the offset- Returns:
 - results of the specified query using the provided limit and offset
 
 
- 
close
void close()
Close the graph and its underlying resources. 
- 
drop
void drop()
Drop the graph. 
- 
dropAllVertices
void dropAllVertices()
Drop all vertices and edges from the graph. 
 - 
 
 -