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


Java ICoreIcons类代码示例

本文整理汇总了Java中org.topicquests.common.api.ICoreIcons的典型用法代码示例。如果您正苦于以下问题:Java ICoreIcons类的具体用法?Java ICoreIcons怎么用?Java ICoreIcons使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ICoreIcons类属于org.topicquests.common.api包,在下文中一共展示了ICoreIcons类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: newCitation

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
@Override
public ICitation newCitation(String publicationTypeLocator,
		String docTitle, String docAbstract, String language,
		String publicationTitle, String publisherLocator,
		String userLocator, boolean isPrivate) {
	ICitation result = (ICitation)nodeModel.newInstanceNode(publicationTypeLocator, docTitle, docAbstract, language, userLocator, 
			ICoreIcons.PUBLICATION_SM, ICoreIcons.PUBLICATION, isPrivate);
	result.setPublisherLocator(publisherLocator);
	result.setJournalTitle(publicationTitle);
	return result;
}
 
开发者ID:SolrSherlock,项目名称:JSONTopicMap,代码行数:12,代码来源:CitationModel.java

示例2: getOrCreateTag

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
/**
 * <p>Find the {@link INode} for this <code>tag</code>. If it doesn't
 * exist, create it.</p>
 * @param tag
 * @param lang
 * @param userId
 * @return
 */
private IResult getOrCreateTag(String tag, String lang, String userId) {
	String lox = formTagLocator(tag);
	IResult result = database.getNode(lox, credentials);
	if (result.getResultObject() == null) {
		//newInstanceNode(String locator,String typeLocator,String label, String description, 
		//  String lang, String userId, String smallImagePath, String largeImagePath, boolean isPrivate);
		INode n = nodeModel.newInstanceNode(lox, INodeTypes.TAG_TYPE, tag, "A tag with the label: "+tag, lang, userId, ICoreIcons.TAG_SM, ICoreIcons.TAG, false);
		database.putNode(n, true);
		result.setResultObject(n);
	}
	environment.logDebug("SocialBookmarkModel.getOrCreateTag+ "+result.getResultObject());		
	return result;
}
 
开发者ID:SolrSherlock,项目名称:JSONTopicMap,代码行数:22,代码来源:SocialBookmarkModel.java

示例3: wireMerge

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
/**
 * Wire up a MergeAssertion
 * @param virtualProxy
 * @param targetProxy
 * @param mergeData key = reason, value = vote
 * @param mergeConfidence not used at the moment
 * @param userLocator
 * @return tupleLocator is included
 */
IResult wireMerge(INode virtualProxy, INode targetProxy, Map<String, Double> mergeData,
		double mergeConfidence, String userLocator) {
	//force relation engine to re-fetch the nodes for accurate surgery
	//changed my mind
	//TODO rethink this algorithm; it's a lot of node fetches
	IResult result = relateNodes(virtualProxy, targetProxy, 
			 userLocator, ICoreIcons.RELATION_ICON_SM, ICoreIcons.RELATION_ICON, 
			 false, targetProxy.getIsPrivate(), mergeData);
	// result contains the tuple's locator
	// use that to fetch it and wire up scopes from mergeData
	return result;
}
 
开发者ID:SolrSherlock,项目名称:JSONTopicMap,代码行数:22,代码来源:BaseVirtualizer.java

示例4: doBootstrap

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
/**
 * Returns a Boolean <code>true</code> if everything bootstraps well; otherwise <code>false</code>
 * @return
 */
private IResult doBootstrap() {
	IResult result = new ResultPojo();
	result.setResultObject(new Boolean(true)); // optimistic default value
	//CLASSES
	makeSubclassNode(ITopicQuestsOntology.CLASS_TYPE,IBiblioLegend.BLOG_PUBLICATION_TYPE,ICoreIcons.CLASS_ICON_SM,ICoreIcons.CLASS_ICON,"Blog Publication Type", "The TopicQuests Biblio typology blog publication type.", result);
	makeSubclassNode(ITopicQuestsOntology.CLASS_TYPE,IBiblioLegend.BOOK_PUBLICATION_TYPE,ICoreIcons.CLASS_ICON_SM,ICoreIcons.CLASS_ICON,"Book Publication Type", "The TopicQuests Biblio typology book publication type.", result);
	makeSubclassNode(ITopicQuestsOntology.NODE_TYPE,IBiblioLegend.CITATION_NODE_TYPE,ICoreIcons.CLASS_ICON_SM,ICoreIcons.CLASS_ICON,"Citation Node Type", "The TopicQuests Biblio typology citation node type.", result);
	makeSubclassNode(ITopicQuestsOntology.CLASS_TYPE,IBiblioLegend.DATABASE_PUBLICATION_TYPE,ICoreIcons.CLASS_ICON_SM,ICoreIcons.CLASS_ICON,"Database Publication Type", "The TopicQuests Biblio typology database publication type.", result);
	makeSubclassNode(ITopicQuestsOntology.CLASS_TYPE,IBiblioLegend.JOURNAL_PUBLICATION_TYPE,ICoreIcons.CLASS_ICON_SM,ICoreIcons.CLASS_ICON,"Journal Publication Type", "The TopicQuests Biblio typology journal publication type.", result);
	makeSubclassNode(ITopicQuestsOntology.CLASS_TYPE,IBiblioLegend.NEWSPAPER_PUBLICATION_TYPE,ICoreIcons.CLASS_ICON_SM,ICoreIcons.CLASS_ICON,"Newspaper Publication Type", "The TopicQuests Biblio typology newspaper publication type.", result);
	makeSubclassNode(ITopicQuestsOntology.CLASS_TYPE,IBiblioLegend.OTHER_PUBLICATION_TYPE,ICoreIcons.CLASS_ICON_SM,ICoreIcons.CLASS_ICON,"Other Publication Type", "The TopicQuests Biblio typology other publication type.", result);
	makeSubclassNode(ITopicQuestsOntology.CLASS_TYPE,IBiblioLegend.PATENT_PUBLICATION_TYPE,ICoreIcons.CLASS_ICON_SM,ICoreIcons.CLASS_ICON,"Patent Publication Type", "The TopicQuests Biblio typology patent publication type.", result);
	makeSubclassNode(ITopicQuestsOntology.CLASS_TYPE,IBiblioLegend.REPORT_PUBLICATION_TYPE,ICoreIcons.CLASS_ICON_SM,ICoreIcons.CLASS_ICON,"Report Publication Type", "The TopicQuests Biblio typology report publication type.", result);
	makeSubclassNode(ITopicQuestsOntology.CLASS_TYPE,IBiblioLegend.WEBPAGE_PUBLICATION_TYPE,ICoreIcons.CLASS_ICON_SM,ICoreIcons.CLASS_ICON,"Webpage Publication Type", "The TopicQuests Biblio typology webpage publication type.", result);
	makeSubclassNode(ITopicQuestsOntology.CLASS_TYPE,IBiblioLegend.WIKI_PUBLICATION_TYPE,ICoreIcons.CLASS_ICON_SM,ICoreIcons.CLASS_ICON,"Wiki Publication Type", "The TopicQuests Biblio typology wiki publication type.", result);
	makeSubclassNode(ITopicQuestsOntology.CLASS_TYPE,IBiblioLegend.MICROBLOG_PUBLICATION_TYPE,ICoreIcons.CLASS_ICON_SM,ICoreIcons.CLASS_ICON,"Microblog Publication Type", "The TopicQuests Biblio typology microblog publication type.", result);

	
	//PROPERTIES
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.AFFILIATIONS_LIST_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"Affiliations List Property Type", "The TopicQuests Biblio typology affiliations list property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.AUTHOR_LIST_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"Author List Property Type", "The TopicQuests Biblio typology cluster author list property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.DOI_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"DOI Property Type", "The TopicQuests Biblio typology DOI property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.ISBN_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"ISBN Property Type", "The TopicQuests Biblio typology ISBN property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.ISSN_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"ISSN Property Type", "The TopicQuests Biblio typology ISSN property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.JOURNAL_NUMBER_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"Journal Number Property Type", "The TopicQuests Biblio typology journal number property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.JOURNAL_TITLE_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"Journal Title Property Type", "The TopicQuests Biblio typology journal title property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.JOURNAL_VOLUME_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"Journal Volume Property Type", "The TopicQuests Biblio typology journal volume property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.LANGUAGES_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"Languages Property Type", "The TopicQuests Biblio typology languages property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.PAGES_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"Pages Property Type", "The TopicQuests Biblio typology pages property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.PUBLICATION_DATE_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"Publication Date Property Type", "The TopicQuests Biblio typology publication date property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.PUBLICATION_TYPES_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"Publication Types Property Type", "The TopicQuests Biblio typology publication types property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.PUBLISHER_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"Publisher Property Type", "The TopicQuests Biblio typology publisher property type.", result);
	makeSubclassNode(ITopicQuestsOntology.PROPERTY_TYPE,IBiblioLegend.RIGHTS_PROPERTY,ICoreIcons.PROPERTY_ICON_SM,ICoreIcons.PROPERTY_ICON,"Rights Property Type", "The TopicQuests Biblio typology rights property type.", result);
	return result;
}
 
开发者ID:agibsonccc,项目名称:solrsherlock-maven,代码行数:40,代码来源:BiblioBootstrap.java

示例5: newPerson

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
@Override
public IResult newPerson(String firstName, String middleNames,
		String familyName, String nameAppendages, String description,
		String language, Date dateOfBirth, String locationOfBirth,
		String userId, boolean isPrivate) {
	IResult result = model.newInstanceNode(IPersonLegend.PERSON_TYPE, "", description, language, userId, 
			ICoreIcons.PROPERTY_ICON_SM, ICoreIcons.PERSON_ICON, isPrivate);
	IPersonEvent n = (IPersonEvent)result.getResultObject();
	String label = "";
	if (firstName != null && !firstName.equals("")) {
		n.setFirstName(firstName);
		label += firstName;
	} 
	if (middleNames != null && !middleNames.equals("")) {
		n.setMiddleNames(middleNames);
		label += " "+middleNames;
	} 
	if (familyName != null && !familyName.equals("")) {
		label += " "+familyName;
	}
	n.addLabel(label.trim(), language, userId, false);
	if (nameAppendages != null && !nameAppendages.equals("")) {
		n.setNameAppendages(nameAppendages);
		label += " "+nameAppendages;
		n.addLabel(label.trim(), language, userId, false);
	}
	if (dateOfBirth != null)
		n.setStartDate(dateOfBirth);
	if (locationOfBirth != null && !locationOfBirth.equals(""))
		n.setLocationOfOriginName(locationOfBirth);
	return result;
}
 
开发者ID:agibsonccc,项目名称:solrsherlock-maven,代码行数:33,代码来源:PersonEventModel.java

示例6: newEvent

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
@Override
public IResult newEvent(String eventTypeLocator, String eventName,
		String eventLocation, String description, String language,
		Date eventStartDate, Date eventEndDate, String userId, boolean isPrivate) {
	String eventLox = eventTypeLocator;
	if (eventLox == null || eventLox.equals(""))
		eventLox = IEventLegend.EVENT_TYPE;
	IResult result = model.newInstanceNode(eventLox, eventName, description, language, userId, 
			ICoreIcons.CLASS_ICON_SM, ICoreIcons.CLASS_ICON, isPrivate);
	return result;
}
 
开发者ID:agibsonccc,项目名称:solrsherlock-maven,代码行数:12,代码来源:PersonEventModel.java

示例7: cause

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
@Override
public IResult cause(INode sourceNode, INode targetNode,
		String userLocator, boolean isPrivate) {
	return _assert(sourceNode,targetNode, IRelationsLegend.CAUSES_RELATION_TYPE, userLocator,
			ICoreIcons.RELATION_ICON_SM, ICoreIcons.RELATION_ICON, isPrivate);
}
 
开发者ID:SolrSherlock,项目名称:JSONTopicMap,代码行数:7,代码来源:RelationModel.java

示例8: what

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
@Override
public IResult what(INode sourceNode, INode targetNode, String userLocator,
		boolean isPrivate) {
	return _assert(sourceNode,targetNode, IRelationsLegend.EXPLAINS_WHAT_RELATION_TYPE, userLocator,
			ICoreIcons.RELATION_ICON_SM, ICoreIcons.RELATION_ICON, isPrivate);
}
 
开发者ID:SolrSherlock,项目名称:JSONTopicMap,代码行数:7,代码来源:RelationModel.java

示例9: why

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
@Override
public IResult why(INode sourceNode, INode targetNode, String userLocator,
		boolean isPrivate) {
	return _assert(sourceNode,targetNode, IRelationsLegend.EXPLAINS_WHY_RELATION_TYPE, userLocator,
			ICoreIcons.RELATION_ICON_SM, ICoreIcons.RELATION_ICON, isPrivate);
}
 
开发者ID:SolrSherlock,项目名称:JSONTopicMap,代码行数:7,代码来源:RelationModel.java

示例10: how

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
@Override
public IResult how(INode sourceNode, INode targetNode, String userLocator,
		boolean isPrivate) {
	return _assert(sourceNode,targetNode, IRelationsLegend.EXPLAINS_HOW_RELATION_TYPE, userLocator,
			ICoreIcons.RELATION_ICON_SM, ICoreIcons.RELATION_ICON, isPrivate);
}
 
开发者ID:SolrSherlock,项目名称:JSONTopicMap,代码行数:7,代码来源:RelationModel.java

示例11: similar

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
@Override
public IResult similar(INode sourceNode, INode targetNode,
		String userLocator, boolean isPrivate) {
	return _assert(sourceNode,targetNode, IRelationsLegend.IS_SIMILAR_TO_RELATION_TYPE, userLocator,
			ICoreIcons.RELATION_ICON_SM, ICoreIcons.RELATION_ICON, isPrivate);
}
 
开发者ID:SolrSherlock,项目名称:JSONTopicMap,代码行数:7,代码来源:RelationModel.java

示例12: analogous

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
@Override
public IResult analogous(INode sourceNode, INode targetNode,
		String userLocator, boolean isPrivate) {
	return _assert(sourceNode,targetNode, IRelationsLegend.IS_ANALOGOUS_RELATION_TYPE, userLocator,
			ICoreIcons.RELATION_ICON_SM, ICoreIcons.RELATION_ICON, isPrivate);
}
 
开发者ID:SolrSherlock,项目名称:JSONTopicMap,代码行数:7,代码来源:RelationModel.java

示例13: notAnalogous

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
@Override
public IResult notAnalogous(INode sourceNode, INode targetNode,
		String userLocator, boolean isPrivate) {
	return _assert(sourceNode,targetNode, IRelationsLegend.IS_NOT_ANALOGOUS_RELATION_TYPE, userLocator,
			ICoreIcons.RELATION_ICON_SM, ICoreIcons.RELATION_ICON, isPrivate);
}
 
开发者ID:SolrSherlock,项目名称:JSONTopicMap,代码行数:7,代码来源:RelationModel.java

示例14: metaphor

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
@Override
public IResult metaphor(INode sourceNode, INode targetNode,
		String userLocator, boolean isPrivate) {
	return _assert(sourceNode,targetNode, IRelationsLegend.IS_METAPHOR_RELATION_TYPE, userLocator,
			ICoreIcons.RELATION_ICON_SM, ICoreIcons.RELATION_ICON, isPrivate);
}
 
开发者ID:SolrSherlock,项目名称:JSONTopicMap,代码行数:7,代码来源:RelationModel.java

示例15: agree

import org.topicquests.common.api.ICoreIcons; //导入依赖的package包/类
@Override
public IResult agree(INode sourceNode, INode targetNode,
		String userLocator, boolean isPrivate) {
	return _assert(sourceNode,targetNode, IRelationsLegend.AGREES_WITH_RELATION_TYPE, userLocator,
			ICoreIcons.PRO_SM, ICoreIcons.PRO, isPrivate);
}
 
开发者ID:SolrSherlock,项目名称:JSONTopicMap,代码行数:7,代码来源:RelationModel.java


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