本文整理汇总了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));
}
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}