public class DefaultGraphQueryBuilder extends java.lang.Object implements GraphQueryBuilder
Modifier and Type | Class and Description |
---|---|
static class |
DefaultGraphQueryBuilder.InvalidMatchCodeNamspacePair |
Modifier and Type | Field and Description |
---|---|
static ConceptReference |
INVALID_MATCH_CONCEPT_REFERENCE |
Constructor and Description |
---|
DefaultGraphQueryBuilder(java.lang.String codingSchemeUri,
java.lang.String version)
Instantiates a new default graph query builder.
|
DefaultGraphQueryBuilder(java.lang.String codingSchemeUri,
java.lang.String version,
GraphQuery query) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<ConceptReference> |
getCodesFromCodedNodeSet(CodedNodeSet codes) |
GraphQuery |
getQuery()
Gets the query.
|
void |
restrictToAnonymous(java.lang.Boolean restrictToAnonymous) |
void |
restrictToAssociations(NameAndValueList association,
NameAndValueList associationQualifiers)
Restrict the graph to the nodes that participate as a source or target of
the named association and, if supplied, the named association qualifiers.
|
void |
restrictToCodes(CodedNodeSet codes)
Return a graph that contains only the codes that are present in the
supplied list, and all edges that still have a source and target code
remaining.
|
void |
restrictToCodeSystem(java.lang.String codingScheme)
Restrict the graph to codes (source and target) that originate
from the supplied code system.
|
void |
restrictToDirectionalNames(NameAndValueList directionalNames,
NameAndValueList associationQualifiers)
Restrict the graph to the nodes that participate as a source or target of
an association whose directional name matches the one provided and, if
supplied, the named association qualifiers.
|
void |
restrictToEntityTypes(LocalNameList localNameList) |
void |
restrictToSourceCodes(CodedNodeSet codes)
Restrict the graph to associations that have one of the codes in the
supplied list as source codes.
|
void |
restrictToSourceCodeSystem(java.lang.String codingScheme)
Restrict the graph to edges that have codes from the specified
code system as a source.
|
void |
restrictToTargetCodes(CodedNodeSet codes)
Restrict the graph to associations that have one of the codes in the
supplied list as target codes.
|
void |
restrictToTargetCodeSystem(java.lang.String codingScheme)
Restrict the graph to edges that have codes from the specified
code system as a target.
|
public static ConceptReference INVALID_MATCH_CONCEPT_REFERENCE
public DefaultGraphQueryBuilder(java.lang.String codingSchemeUri, java.lang.String version, GraphQuery query)
public DefaultGraphQueryBuilder(java.lang.String codingSchemeUri, java.lang.String version)
public GraphQuery getQuery()
GraphQueryBuilder
getQuery
in interface GraphQueryBuilder
public void restrictToAssociations(NameAndValueList association, NameAndValueList associationQualifiers) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToAssociations
in interface GraphQueryBuilder
association
- List of associations used to restrict the graph. The name and
value for each item in the list will be compared against the
id and URI of supported associations for participating
coding schemes.associationQualifiers
- If supplied, restriction only applies to associations that are
qualified by one or more of the supplied qualifiers. The name
and value for each item in the list will be compared against
the id and URI of supported association qualifiers for
participating coding schemes.LBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void restrictToCodeSystem(java.lang.String codingScheme) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToCodeSystem
in interface GraphQueryBuilder
codingScheme
- The local name or URI of the coding scheme to filter on.LBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void restrictToCodes(CodedNodeSet codes) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToCodes
in interface GraphQueryBuilder
codes
- Codes to filter on.LBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionprotected java.util.List<ConceptReference> getCodesFromCodedNodeSet(CodedNodeSet codes) throws LBInvocationException, LBParameterException
public void restrictToDirectionalNames(NameAndValueList directionalNames, NameAndValueList associationQualifiers) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToDirectionalNames
in interface GraphQueryBuilder
directionalNames
- List of directionalNames used to restrict the graph. A
directional name is compared against the forward and reverse
names for defined associations. If a given name matches more
than one forward or reverse label, all corresponding
associations are included in the restriction.associationQualifiers
- If supplied, restriction only applies to associations that are
qualified by one or more of the supplied qualifiers. The name
and value for each item in the list will be compared against
the id and URI of supported association qualifiers for
participating coding schemes.LBInvocationException
- ,LBParameterExceptionLBParameterException
- the LB parameter exceptionpublic void restrictToSourceCodeSystem(java.lang.String codingScheme) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToSourceCodeSystem
in interface GraphQueryBuilder
codingScheme
- The local name or URI of the coding scheme to filter on.LBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void restrictToSourceCodes(CodedNodeSet codes) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToSourceCodes
in interface GraphQueryBuilder
codes
- Codes to filter on.LBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void restrictToTargetCodeSystem(java.lang.String codingScheme) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToTargetCodeSystem
in interface GraphQueryBuilder
codingScheme
- The local name or URI of the coding scheme to filter on.LBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void restrictToTargetCodes(CodedNodeSet codes) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToTargetCodes
in interface GraphQueryBuilder
codes
- Codes to filter on.LBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void restrictToAnonymous(java.lang.Boolean restrictToAnonymous) throws LBInvocationException, LBParameterException
restrictToAnonymous
in interface GraphQueryBuilder
LBInvocationException
LBParameterException
public void restrictToEntityTypes(LocalNameList localNameList) throws LBInvocationException, LBParameterException
restrictToEntityTypes
in interface GraphQueryBuilder
LBInvocationException
LBParameterException