Page History
Template:Menu LexEVS 6.0 CTS2
Scrollbar | ||
---|---|---|
|
Page info | ||||
---|---|---|---|---|
|
Panel | ||||
---|---|---|---|---|
| ||||
|
Introduction
LexEVS CTS2 Association Query Operation API provides capability to query Associations available in the system.
Interface
org.lexevs.cts2.query.AssociationQueryOperation is the main interface for all the queries against Associations. This interface can be accessed using main LexEVSCTS2 interface:
org.lexevs.cts2.query.AssociationQueryOperation associationQueryOp = new org.lexevs.cts2.LexEvsCTS2Impl().getQueryOperation().getAssociationQueryOperation();
Query Functions
Here are the major query functions available using AssociationQueryOperation interface:
listAssociations
This function returns the resolved concept reference (which contains the associations) according to given node.
...
Panel |
---|
org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList csrList = associationQueryOp.listAssociations("CodeSystem",null,"ns","code",null,false,1,-1); | |
determineTransitiveConceptRelationship
Returns the path according to given two nodes.
...
Panel |
---|
org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList csrList = associationQueryOp.determineTransitiveConceptRelationship("CodeSystem",null,"r1","hasSubtype","sc","sns","tc","tns"); | |
computeSubsumptionRelationship
Return whether the two nodes has a transitive closure path.
...
Panel |
---|
boolean isSubsumed = associationQueryOp.computeSubsumptionRelationship("CodeSystem",null,"hasSubtype",source,target"); | |
getAssociationDetails
Return association triple according to association instance id.
...
Panel |
---|
AssociationTriple triple = csQueryOp.getAssociationDetails ("Automobiles", versionOrTag, "id12345"); | |
Scrollbar | ||
---|---|---|
|