当前位置: 首页>>代码示例>>Java>>正文


Java LexBIGService.getNodeSet方法代码示例

本文整理汇总了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;
}
 
开发者ID:NCIP,项目名称:lexevs-service,代码行数:25,代码来源:CommonResourceUtils.java

示例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;
}
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:43,代码来源:DataUtils.java

示例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;
}
 
开发者ID:NCIP,项目名称:nci-mapping-tool,代码行数:43,代码来源:DataUtils.java


注:本文中的org.LexGrid.LexBIG.LexBIGService.LexBIGService.getNodeSet方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。