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


Java Individual.addProperty方法代码示例

本文整理汇总了Java中org.apache.jena.ontology.Individual.addProperty方法的典型用法代码示例。如果您正苦于以下问题:Java Individual.addProperty方法的具体用法?Java Individual.addProperty怎么用?Java Individual.addProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.jena.ontology.Individual的用法示例。


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

示例1: addKeyPair

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void addKeyPair(Individual dictionary, long position,
        Individual listItem) {
    dictionary.addProperty(hadMember, listItem);
    Individual keyPair = model.createIndividual(KeyEntityPair);
    keyPair.addProperty(pairEntity, listItem);
    keyPair.addLiteral(pairKey, position);
    dictionary.addProperty(hadDictionaryMember, keyPair);

}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:10,代码来源:ProvModel.java

示例2: setUsed

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public Individual setUsed(Individual activity, Individual usedEntity) {
    activity.addProperty(used, usedEntity);
    Individual usage = model.createIndividual(Usage);
    activity.addProperty(qualifiedUsage, usage);
    usage.addProperty(entity, usedEntity);
    return usage;
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:8,代码来源:ProvModel.java

示例3: addPrevious

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
private void addPrevious(OntModel model,
		Revision revision, Revision previous) {
	OntClass VersionableResource = model.createClass("http://purl.org/wf4ever/roevo#VersionableResource");
	VersionableResource.addSuperClass(Prov_o.Entity);
	
	Individual revisionResource = model.createIndividual(revision.getIdentifier().toASCIIString(), 
			VersionableResource);
	Individual previousResource = model.createIndividual(previous.getIdentifier().toASCIIString(), 
			VersionableResource);
	revisionResource.addProperty(Prov_o.wasRevisionOf, previousResource);
}
 
开发者ID:apache,项目名称:incubator-taverna-language,代码行数:12,代码来源:ROEvoSerializer.java

示例4: setWasDerivedFrom

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void setWasDerivedFrom(Individual derived, Individual original) {
    derived.addProperty(wasDerivedFrom, original);
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:4,代码来源:ProvModel.java

示例5: setWasPartOfWorkflowRun

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void setWasPartOfWorkflowRun(Individual process,
        Individual parentProcess) {
    process.addProperty(wasPartOfWorkflowRun, parentProcess);
    parentProcess.addProperty(hasPart, process);
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:6,代码来源:WfprovModel.java

示例6: setWasEnactedBy

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public Individual setWasEnactedBy(Individual workflowRun, Individual workflowEngine, Individual wfplan) {
    Individual association = setWasAssociatedWith(workflowRun, workflowEngine, wfplan);
    workflowRun.addProperty(wasEnactedBy, workflowEngine);
    return association;
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:6,代码来源:WfprovModel.java

示例7: setDescribedByWorkflow

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void setDescribedByWorkflow(Individual workflowRun, Individual wfplan) {
    workflowRun.addProperty(describedByWorkflow, wfplan);
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:4,代码来源:WfprovModel.java

示例8: addSubProcess

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void addSubProcess(Individual wf, Individual proc) {
//      parentWf.getWfdescHasSubProcesses().add(procPlan);
//      objCon.addDesignation(parentWf, Resource.class).getDctermsHasPart().add(procPlan);
      wf.addProperty(hasSubProcess, proc);
      wf.addProperty(hasPart, proc);
  }
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:7,代码来源:WfprovModel.java

示例9: setDescribedByProcess

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void setDescribedByProcess(Individual processRun, Individual processPlan) {
    processRun.addProperty(describedByProcess, processPlan);
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:4,代码来源:WfprovModel.java

示例10: setUsedInput

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public Individual setUsedInput(Individual activity, Individual entity) {
    Individual usage = setUsed(activity, entity);
    activity.addProperty(usedInput, entity);
    return usage;
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:6,代码来源:WfprovModel.java

示例11: setWasOutputFrom

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public Individual setWasOutputFrom(Individual entity, Individual activity) {
    Individual usage = setWasGeneratedBy(entity, activity);
    entity.addProperty(wasOutputFrom, activity);
    return usage;
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:6,代码来源:WfprovModel.java

示例12: setDescribedByParameter

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void setDescribedByParameter(Individual entity, Individual portRole, Individual involvement) {
    setRole(involvement, portRole);        
    entity.addProperty(describedByParameter, portRole);
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:5,代码来源:WfprovModel.java

示例13: setRole

import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void setRole(Individual involvement, Individual role) {
    involvement.addProperty(hadRole, role);

}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:5,代码来源:ProvModel.java


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