本文整理汇总了Java中org.apache.jena.ontology.Individual.setPropertyValue方法的典型用法代码示例。如果您正苦于以下问题:Java Individual.setPropertyValue方法的具体用法?Java Individual.setPropertyValue怎么用?Java Individual.setPropertyValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.jena.ontology.Individual
的用法示例。
在下文中一共展示了Individual.setPropertyValue方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setEndedAtTime
import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public Individual setEndedAtTime(Individual endedActivity, Literal time) {
if (time == null) {
logger.warn("Unknown end time");
return null;
}
endedActivity.addLiteral(endedAtTime, time);
Individual end = model.createIndividual(End);
endedActivity.setPropertyValue(qualifiedEnd, end);
end.addLiteral(atTime, time);
return end;
}
示例2: setStartedAtTime
import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public Individual setStartedAtTime(Individual startedActivity, Literal time) {
if (time == null) {
logger.warn("Unknown start time");
return null;
}
startedActivity.addLiteral(startedAtTime, time);
Individual start = model.createIndividual(Start);
startedActivity.setPropertyValue(qualifiedStart, start);
start.addLiteral(atTime, time);
return start;
}
示例3: setWasAssociatedWith
import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public Individual setWasAssociatedWith(Individual activity,
Individual associatedAgent, Individual plan) {
activity.setPropertyValue(wasAssociatedWith, associatedAgent);
Individual association = model.createIndividual(Association);
activity.setPropertyValue(qualifiedAssociation, association);
association.setPropertyValue(agent, associatedAgent);
if (plan != null) {
association.setPropertyValue(hadPlan, plan);
}
return association;
}
示例4: setWasGeneratedBy
import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public Individual setWasGeneratedBy(Individual generated,
Individual generatingActivity) {
generated.setPropertyValue(wasGeneratedBy, generatingActivity);
Individual generation = model.createIndividual(Generation);
generated.setPropertyValue(qualifiedGeneration, generation);
generation.setPropertyValue(activity, generatingActivity);
return generation;
}
示例5: setWasInformedBy
import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public Individual setWasInformedBy(Individual informed, Individual informer) {
informed.setPropertyValue(wasInformedBy, informer);
Individual communication = model.createIndividual(Communication);
informed.setPropertyValue(qualifiedCommunication, communication);
communication.setPropertyValue(activity, informer);
return communication;
}
示例6: setContent
import org.apache.jena.ontology.Individual; //导入方法依赖的package包/类
public Individual setContent(Individual entity, URI uri) {
Individual cont = model.createIndividual(uri.toASCIIString(), Content);
entity.setPropertyValue(content, cont);
return cont;
}