Skip to content

Commit

Permalink
[Fix kbss-cvut/fta-fmea-ui#284] Set simpleLiteral annotation paramete…
Browse files Browse the repository at this point in the history
…r to to true to specify non language strings in JOPA model.
  • Loading branch information
kostobog committed May 14, 2024
1 parent a4647ad commit 551a5a2
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/main/java/cz/cvut/kbss/analysis/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ public class User extends AbstractEntity implements UserDetails {

@NotEmpty(message = "Username must not be empty")
@ParticipationConstraints(nonEmpty = true)
@OWLDataProperty(iri = Vocabulary.s_p_username)
@OWLDataProperty(iri = Vocabulary.s_p_username, simpleLiteral = true)
private String username;

@NotEmpty(message = "Password must not be empty")
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
@ParticipationConstraints(nonEmpty = true)
@OWLDataProperty(iri = Vocabulary.s_p_password)
@OWLDataProperty(iri = Vocabulary.s_p_password, simpleLiteral = true)
private String password;

@Transient
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/cz/cvut/kbss/analysis/model/ava/ATASystem.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package cz.cvut.kbss.analysis.model.ava;

import cz.cvut.kbss.analysis.model.Component;
import cz.cvut.kbss.analysis.model.Item;
import cz.cvut.kbss.analysis.model.System;
import cz.cvut.kbss.analysis.util.Vocabulary;
import cz.cvut.kbss.jopa.model.annotations.OWLClass;
import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty;
Expand All @@ -17,7 +15,7 @@
@Setter
public class ATASystem extends Component {

@OWLDataProperty(iri = Vocabulary.s_p_ata_code)
@OWLDataProperty(iri = Vocabulary.s_p_ata_code, simpleLiteral = true)
private String ataCode;

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public class FHAEventType extends FaultEventType {
@OWLObjectProperty(iri = Vocabulary.s_c_verification_method)
private Set<VerificationMethod> verificationMethods;

@OWLDataProperty(iri = Vocabulary.s_p_material_reference)
@OWLDataProperty(iri = Vocabulary.s_p_material_reference, simpleLiteral = true)
private Set<String> referencedMaterials;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
@Getter
@Setter
public class IndependentSNSItem extends Item {
@OWLDataProperty(iri = Vocabulary.s_p_part_number)
@OWLDataProperty(iri = Vocabulary.s_p_part_number, simpleLiteral = true)
private String partNumber;

@OWLDataProperty(iri = Vocabulary.s_p_stock)
@OWLDataProperty(iri = Vocabulary.s_p_stock, simpleLiteral = true)
private String stock;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class SNSComponent extends Component {
@OWLDataProperty(iri = Vocabulary.s_p_quantity)
private Integer quantity;

@OWLDataProperty(iri = Vocabulary.s_p_schematic_designation)
@OWLDataProperty(iri = Vocabulary.s_p_schematic_designation, simpleLiteral = true)
private Set<String> schematicDescription;

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

@OWLClass(iri = Vocabulary.s_c_failure_rate_general_estimation_method)
public class EstimationMethod extends NamedEntity {
@OWLDataProperty(iri = Vocabulary.s_p_code)
@OWLDataProperty(iri = Vocabulary.s_p_code, simpleLiteral = true)
public String code;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
@Getter
@Setter
public class VerificationMethod extends NamedEntity {
@OWLDataProperty(iri = Vocabulary.s_p_code)
@OWLDataProperty(iri = Vocabulary.s_p_code, simpleLiteral = true)
public String code;
}

0 comments on commit 551a5a2

Please sign in to comment.