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


Java AddOntologyAnnotation类代码示例

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


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


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