本文整理汇总了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);
}
示例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;
}
示例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);
}
示例4: setWasDerivedFrom
import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void setWasDerivedFrom(Individual derived, Individual original) {
derived.addProperty(wasDerivedFrom, original);
}
示例5: setWasPartOfWorkflowRun
import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void setWasPartOfWorkflowRun(Individual process,
Individual parentProcess) {
process.addProperty(wasPartOfWorkflowRun, parentProcess);
parentProcess.addProperty(hasPart, process);
}
示例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;
}
示例7: setDescribedByWorkflow
import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void setDescribedByWorkflow(Individual workflowRun, Individual wfplan) {
workflowRun.addProperty(describedByWorkflow, wfplan);
}
示例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);
}
示例9: setDescribedByProcess
import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void setDescribedByProcess(Individual processRun, Individual processPlan) {
processRun.addProperty(describedByProcess, processPlan);
}
示例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;
}
示例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;
}
示例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);
}
示例13: setRole
import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public void setRole(Individual involvement, Individual role) {
involvement.addProperty(hadRole, role);
}