OWLIndividual conceptOwlIndiv = owlDataFactory.getOWLIndividual(conceptUri);
// rdfs:label
if ( id.trim().length() > 0 ) {
OWLTypedConstant owlc = owlDataFactory.getOWLTypedConstant(id.trim());
OWLDataPropertyAssertionAxiom addProp = owlDataFactory.getOWLDataPropertyAssertionAxiom(
conceptOwlIndiv, rdfsLabel, owlc);
owlChanges.add(new AddAxiom(owlOntology, addProp));
}
// rdfs:comment
if ( description.trim().length() > 0 ) {
OWLTypedConstant owlc = owlDataFactory.getOWLTypedConstant(description.trim());
OWLDataPropertyAssertionAxiom addProp = owlDataFactory.getOWLDataPropertyAssertionAxiom(
conceptOwlIndiv, rdfsComment, owlc);
owlChanges.add(new AddAxiom(owlOntology, addProp));
}
// canonicalUnits
if ( canonicalUnits != null && canonicalUnits.trim().length() > 0 ) {
OWLTypedConstant owlc = owlDataFactory.getOWLTypedConstant(canonicalUnits.trim());
OWLDataPropertyAssertionAxiom addProp = owlDataFactory.getOWLDataPropertyAssertionAxiom(
conceptOwlIndiv, canonicalUnitsProp, owlc);
owlChanges.add(new AddAxiom(owlOntology, addProp));
}
// grib
if ( grib != null && grib.trim().length() > 0 ) {
OWLTypedConstant owlc = owlDataFactory.getOWLTypedConstant(grib.trim());
OWLDataPropertyAssertionAxiom addProp = owlDataFactory.getOWLDataPropertyAssertionAxiom(
conceptOwlIndiv, gribProp, owlc);
owlChanges.add(new AddAxiom(owlOntology, addProp));
}
// amip
if ( amip != null && amip.trim().length() > 0 ) {
OWLTypedConstant owlc = owlDataFactory.getOWLTypedConstant(amip.trim());
OWLDataPropertyAssertionAxiom addProp = owlDataFactory.getOWLDataPropertyAssertionAxiom(
conceptOwlIndiv, amipProp, owlc);
owlChanges.add(new AddAxiom(owlOntology, addProp));
}
}