本文整理汇总了Java中org.LexGrid.LexBIG.LexBIGService.LexBIGService.getNodeSet方法的典型用法代码示例。如果您正苦于以下问题:Java LexBIGService.getNodeSet方法的具体用法?Java LexBIGService.getNodeSet怎么用?Java LexBIGService.getNodeSet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.LexGrid.LexBIG.LexBIGService.LexBIGService
的用法示例。
在下文中一共展示了LexBIGService.getNodeSet方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getLexCodedNodeSet
import org.LexGrid.LexBIG.LexBIGService.LexBIGService; //导入方法依赖的package包/类
public static <T extends ResourceQuery> CodedNodeSet getLexCodedNodeSet(
LexBIGService lexBigService,
QueryData<T> queryData,
SortCriteria cts2SortCriteria){
CodedNodeSet lexCodedNodeSet = null;
if(queryData.hasNameAndVersion()){
try {
LocalNameList lexLocalNameList = new LocalNameList();
CodingSchemeRenderingList lexCodingSchemeRenderingList = lexBigService.getSupportedCodingSchemes();
boolean dataExists = CommonSearchFilterUtils.queryReturnsData(lexCodingSchemeRenderingList, queryData);
if(dataExists){
// Get Code Node Set from LexBIG service for given coding scheme
lexCodedNodeSet = lexBigService.getNodeSet(queryData.getLexSchemeName(), queryData.getLexVersionOrTag() , lexLocalNameList);
lexCodedNodeSet = CommonSearchFilterUtils.filterLexCodedNodeSet(lexCodedNodeSet, queryData);
}
} catch (LBException e) {
throw new RuntimeException(e);
}
}
return lexCodedNodeSet;
}
示例2: getConceptDomainNames
import org.LexGrid.LexBIG.LexBIGService.LexBIGService; //导入方法依赖的package包/类
public static Vector getConceptDomainNames() {
String scheme = "conceptDomainCodingScheme";
//scheme = "http://lexevs.org/codingscheme/conceptdomain";
String version = null;
CodingSchemeVersionOrTag csvt = new CodingSchemeVersionOrTag();
/*
if (version != null)
csvt.setVersion(version);
*/
Vector conceptDomainName_vec = new Vector();
try {
LexBIGService lbSvc = null;
lbSvc = new RemoteServerUtil().createLexBIGService();
LocalNameList entityTypes = new LocalNameList();
entityTypes.addEntry("conceptDomain");
//CodedNodeSet cns = lbSvc.getNodeSet(lbSvc, scheme, csvt);
CodedNodeSet cns = lbSvc.getNodeSet(scheme, csvt, entityTypes);
SortOptionList sortOptions = null;
LocalNameList filterOptions = null;
LocalNameList propertyNames = null;
CodedNodeSet.PropertyType[] propertyTypes = null;
boolean resolveObjects = true;
int maxToReturn = 1000;
ResolvedConceptReferenceList rcrl = cns.resolveToList(sortOptions, filterOptions, propertyNames, propertyTypes, resolveObjects, maxToReturn);
for (int i=0; i<rcrl.getResolvedConceptReferenceCount(); i++) {
ResolvedConceptReference rcr = rcrl.getResolvedConceptReference(i);
Entity entity = rcr.getReferencedEntry();
conceptDomainName_vec.add(entity.getEntityDescription().getContent());
}
} catch (Exception ex) {
ex.printStackTrace();
}
conceptDomainName_vec = SortUtils.quickSort(conceptDomainName_vec);
return conceptDomainName_vec;
}
示例3: getConceptDomainNames
import org.LexGrid.LexBIG.LexBIGService.LexBIGService; //导入方法依赖的package包/类
public static Vector getConceptDomainNames() {
String scheme = "conceptDomainCodingScheme";
//scheme = "http://lexevs.org/codingscheme/conceptdomain";
String version = null;
CodingSchemeVersionOrTag csvt = new CodingSchemeVersionOrTag();
/*if (version != null)
csvt.setVersion(version);
*/
Vector conceptDomainName_vec = new Vector();
try {
LexBIGService lbSvc = null;
lbSvc = new RemoteServerUtil().createLexBIGService();
LocalNameList entityTypes = new LocalNameList();
entityTypes.addEntry("conceptDomain");
//CodedNodeSet cns = lbSvc.getNodeSet(lbSvc, scheme, csvt);
CodedNodeSet cns = lbSvc.getNodeSet(scheme, csvt, entityTypes);
SortOptionList sortOptions = null;
LocalNameList filterOptions = null;
LocalNameList propertyNames = null;
CodedNodeSet.PropertyType[] propertyTypes = null;
boolean resolveObjects = true;
int maxToReturn = 1000;
ResolvedConceptReferenceList rcrl = cns.resolveToList(sortOptions, filterOptions, propertyNames, propertyTypes, resolveObjects, maxToReturn);
System.out.println("Number of concept domains: " + rcrl.getResolvedConceptReferenceCount());
for (int i=0; i<rcrl.getResolvedConceptReferenceCount(); i++) {
ResolvedConceptReference rcr = rcrl.getResolvedConceptReference(i);
Entity entity = rcr.getReferencedEntry();
conceptDomainName_vec.add(entity.getEntityDescription().getContent());
}
} catch (Exception ex) {
//ex.printStackTrace();
System.out.println("Unable to resolve " + scheme + " -- concept domain may not be available.");
}
conceptDomainName_vec = SortUtils.quickSort(conceptDomainName_vec);
return conceptDomainName_vec;
}