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


Java Individual.setPropertyValue方法代码示例

本文整理汇总了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;
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:12,代码来源:ProvModel.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:12,代码来源:ProvModel.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:12,代码来源:ProvModel.java

示例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;

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

示例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;
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:8,代码来源:ProvModel.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:6,代码来源:TavernaProvModel.java


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