How to add rdfs:label to OWLIndividual via OWLAPI?
问题 I would like to add an rdfs:label to an OWLIndividual , I have the following: OWLIndividual newIndividual = factory.getOWLNamedIndividual(IRI.create(name)); OWLLiteral lbl = factory.getOWLLiteral(name); OWLAnnotation label = factory.getOWLAnnotation( factory.getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI()), lbl); Now, how can I associate the label to the individual? 回答1: You can associate the label the following way: OWLAxiom axiom = factory.getOWLAnnotationAssertionAxiom