Skip to content

Commit

Permalink
corrected Channel for CreateNewProjectFromProjectBackupResult. Change…
Browse files Browse the repository at this point in the history
…d Title Term so that it gets an UUID instead of the entity name
  • Loading branch information
soimugeo committed Dec 16, 2024
1 parent 7f9d66a commit 8cdf762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public OntologyChangeList<Set<E>> generateChanges(ChangeGenerationContext contex
OWLAnnotationProperty titleProperty = dataFactory.getOWLAnnotationProperty(propertyIRITitle);

OWLLiteral literal = dataFactory.getOWLLiteral(sourceText, langTag);
OWLNamedIndividual titleIndividual = dataFactory.getOWLNamedIndividual(IRI.create(IcdConstants.NS, "TitleTerm_"+sourceText.replace(" ","_")));
OWLNamedIndividual titleIndividual = dataFactory.getOWLNamedIndividual(IRI.create(IcdConstants.NS, "TitleTerm_"+UUID.randomUUID()));

OWLAnnotationAssertionAxiom titleAxiom = dataFactory.getOWLAnnotationAssertionAxiom(titleProperty, freshEntity.getIRI(), titleIndividual.getIRI());
OWLAnnotationAssertionAxiom newLabelAxiom = dataFactory.getOWLAnnotationAssertionAxiom(labelProperty, titleIndividual.getIRI(), literal);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
import edu.stanford.protege.webprotege.dispatch.Result;

import static com.google.common.base.MoreObjects.toStringHelper;
import static edu.stanford.protege.webprotege.icd.projects.PrepareBackupFilesForUseRequest.CHANNEL;

@JsonTypeName(CHANNEL)
@JsonTypeName(CreateNewProjectFromProjectBackupAction.CHANNEL)
public record CreateNewProjectFromProjectBackupResult(
@JsonProperty("projectDetails") ProjectDetails projectDetails
) implements Result {
Expand Down

0 comments on commit 8cdf762

Please sign in to comment.