OWL2VOWL_work

Strip angle brackets from fullIri to allow prefix resolution OWL

6/9/2026 2:40:15 PM

Details

diff --git a/src/main/java/de/uni_stuttgart/vis/vowl/owl2vowl/model/annotation/Annotation.java b/src/main/java/de/uni_stuttgart/vis/vowl/owl2vowl/model/annotation/Annotation.java
index 5ae6dc2..8452d6d 100644
--- a/src/main/java/de/uni_stuttgart/vis/vowl/owl2vowl/model/annotation/Annotation.java
+++ b/src/main/java/de/uni_stuttgart/vis/vowl/owl2vowl/model/annotation/Annotation.java
@@ -15,19 +15,26 @@ public class Annotation {
 	private String type;
 
 	public Annotation(String identifier, String value) {
-		this.fullIri = identifier;
+		this.fullIri = stripAngleBrackets(identifier);
 		this.identifier = extractIdentifier(identifier);
 		this.value = value;
 		this.type = "unset";
 	}
 
 	public Annotation(String identifier, String value, String type) {
-		this.fullIri = identifier;
+		this.fullIri = stripAngleBrackets(identifier);
 		this.identifier = extractIdentifier(identifier);
 		this.value = value;
 		this.type = type;
 	}
 
+	private String stripAngleBrackets(String iri) {
+		if (iri != null && iri.startsWith("<") && iri.endsWith(">")) {
+			return iri.substring(1, iri.length() - 1);
+		}
+		return iri;
+	}
+
 	public String getFullIri() {
 		return fullIri;
 	}