• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java AddOntologyAnnotation类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty property = factory.getOWLAnnotationProperty(IRI.create(Namespaces.DC + "identifier"));

  Optional<IRI> optionalIri = ontology.getOntologyID().getOntologyIRI();
  if (optionalIri.isPresent()) {
    String iri = optionalIri.get().toString();
    OWLAnnotation identifier = factory.getOWLAnnotation(property, factory.getOWLLiteral(iri));

    addChangeToOntology(new AddOntologyAnnotation(ontology, identifier));
  }
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:13,代码来源:DcIdentifierFeature.java


示例2: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty property = factory.getOWLAnnotationProperty(IRI.create(Namespaces.DC + "contributor"));
  OWLAnnotation contributor = factory.getOWLAnnotation(property, factory.getOWLLiteral(ontologyConstants.getContributor()));

  addChangeToOntology(new AddOntologyAnnotation(ontology, contributor));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:DcContributorFeature.java


示例3: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty property = factory.getOWLAnnotationProperty(IRI.create(Namespaces.DC + "description"));
  OWLAnnotation description = factory.getOWLAnnotation(property, factory.getOWLLiteral(ontologyConstants.getDescription()));

  addChangeToOntology(new AddOntologyAnnotation(ontology, description));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:DcDescriptionFeature.java


示例4: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty property = factory.getOWLAnnotationProperty(IRI.create(Namespaces.DC + "date"));
  OWLAnnotation date = factory.getOWLAnnotation(property, factory.getOWLLiteral(ontologyConstants.getGenerationDate()));

  addChangeToOntology(new AddOntologyAnnotation(ontology, date));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:DcDateFeature.java


示例5: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty property = factory.getOWLAnnotationProperty(IRI.create(Namespaces.DC + "title"));
  OWLAnnotation title = factory.getOWLAnnotation(property, factory.getOWLLiteral(ontologyConstants.getTitle()));

  addChangeToOntology(new AddOntologyAnnotation(ontology, title));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:DcTitleFeature.java


示例6: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty property = factory.getOWLAnnotationProperty(IRI.create(Namespaces.DC + "publisher"));
  OWLAnnotation publisher = factory.getOWLAnnotation(property, factory.getOWLLiteral(ontologyConstants.getCreator()));

  addChangeToOntology(new AddOntologyAnnotation(ontology, publisher));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:DcPublisherFeature.java


示例7: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty property = factory.getOWLAnnotationProperty(IRI.create(Namespaces.DC + "creator"));
  OWLAnnotation creator = factory.getOWLAnnotation(property, factory.getOWLLiteral(ontologyConstants.getCreator()));

  addChangeToOntology(new AddOntologyAnnotation(ontology, creator));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:DcCreatorFeature.java


示例8: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty annotationProperty = factory.getOWLAnnotationProperty(RDFS_SEE_ALSO, pm);
  OWLAnnotation annotation = factory.getOWLAnnotation(annotationProperty, IRI.create(requestInformation.getGeneratorIri()));

  addChangeToOntology(new AddOntologyAnnotation(ontology, annotation));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:RdfsSeeAlsoFeature.java


示例9: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLLiteral titleLiteral = factory.getOWLLiteral(ontologyConstants.getTitle());
  OWLAnnotation title = factory.getOWLAnnotation(factory.getRDFSLabel(), titleLiteral);

  addChangeToOntology(new AddOntologyAnnotation(ontology, title));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:RdfsLabelOnOntologyFeature.java


示例10: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLLiteral descriptionLiteral = factory.getOWLLiteral(ontologyConstants.getDescription());
  OWLAnnotation comment = factory.getOWLAnnotation(factory.getRDFSComment(), descriptionLiteral);

  addChangeToOntology(new AddOntologyAnnotation(ontology, comment));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:RdfsCommentOnOntologyFeature.java


示例11: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty annotationProperty = factory.getOWLAnnotationProperty(RDFS_IS_DEFINED_BY, pm);
  OWLAnnotation annotation = factory.getOWLAnnotation(annotationProperty, IRI.create(requestInformation.getGeneratorIri()));

  addChangeToOntology(new AddOntologyAnnotation(ontology, annotation));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:RdfsIsDefinedByFeature.java


示例12: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty annotationProperty = factory.getOWLAnnotationProperty(OWL_INCOMPATIBLE_WITH, pm);
  IRI value = OntologyConstants.ONTOVIBE_CORE_IRI;
  OWLAnnotation annotation = factory.getOWLAnnotation(annotationProperty, value);

  addChangeToOntology(new AddOntologyAnnotation(ontology, annotation));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:9,代码来源:OwlIncompatibleWithFeature.java


示例13: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLLiteral version = factory.getOWLLiteral(ontologyConstants.getVersion());
  OWLAnnotation owlVersionInfo = factory.getOWLAnnotation(factory.getOWLVersionInfo(), version);

  addChangeToOntology(new AddOntologyAnnotation(ontology, owlVersionInfo));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:OwlVersionInfoFeature.java


示例14: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty annotationProperty = factory.getOWLAnnotationProperty(OWL_BACKWARD_COMPATIBLE_WITH, pm);
  IRI value = OntologyConstants.ONTOVIBE_MINIMAL_IRI;
  OWLAnnotation annotation = factory.getOWLAnnotation(annotationProperty, value);

  addChangeToOntology(new AddOntologyAnnotation(ontology, annotation));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:9,代码来源:OwlBackwardCompatibleWithFeature.java


示例15: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty annotationProperty = factory.getOWLAnnotationProperty(OWL_PRIOR_VERSION, pm);
  IRI value = OntologyConstants.ONTOVIBE_CORE_IRI;
  OWLAnnotation annotation = factory.getOWLAnnotation(annotationProperty, value);

  addChangeToOntology(new AddOntologyAnnotation(ontology, annotation));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:9,代码来源:OwlPriorVersionFeature.java


示例16: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty annotationProperty = factory.getOWLAnnotationProperty(OWL_IMPORTS, pm);
  IRI value = OntologyConstants.ONTOVIBE_MINIMAL_IRI;
  OWLAnnotation annotation = factory.getOWLAnnotation(annotationProperty, value);

  addChangeToOntology(new AddOntologyAnnotation(ontology, annotation));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:9,代码来源:OwlImportsFeature.java


示例17: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty property = factory.getOWLAnnotationProperty(IRI.create(Namespaces.DCTERMS + "contributor"));
  OWLAnnotation contributor = factory.getOWLAnnotation(property, factory.getOWLLiteral(ontologyConstants.getContributor()));

  addChangeToOntology(new AddOntologyAnnotation(ontology, contributor));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:DcTermsContributorFeature.java


示例18: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty property = factory.getOWLAnnotationProperty(IRI.create(Namespaces.DCTERMS + "description"));
  OWLAnnotation description = factory.getOWLAnnotation(property, factory.getOWLLiteral(ontologyConstants.getDescription()));

  addChangeToOntology(new AddOntologyAnnotation(ontology, description));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:DcTermsDescriptionFeature.java


示例19: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty property = factory.getOWLAnnotationProperty(IRI.create(Namespaces.DCTERMS + "identifier"));

  Optional<IRI> optionalIri = ontology.getOntologyID().getOntologyIRI();
  if (optionalIri.isPresent()) {
    String iri = optionalIri.get().toString();
    OWLAnnotation identifier = factory.getOWLAnnotation(property, factory.getOWLLiteral(iri));

    addChangeToOntology(new AddOntologyAnnotation(ontology, identifier));
  }
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:13,代码来源:DcTermsIdentifierFeature.java


示例20: addToOntology

import org.semanticweb.owlapi.model.AddOntologyAnnotation; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLAnnotationProperty property = factory.getOWLAnnotationProperty(IRI.create(Namespaces.DCTERMS + "title"));
  OWLAnnotation title = factory.getOWLAnnotation(property, factory.getOWLLiteral(ontologyConstants.getTitle()));

  addChangeToOntology(new AddOntologyAnnotation(ontology, title));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:8,代码来源:DcTermsTitleFeature.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SnapshotDiffReport类代码示例发布时间:2022-05-22
下一篇:
Java ServiceInstanceBindingService类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap