Skip to content

Commit

Permalink
Merge pull request #93 from kbss-cvut/fix/fta-fmea-ui#284-generate-la…
Browse files Browse the repository at this point in the history
…ng-tags-for-all-strings

Add language tag only for language strings
  • Loading branch information
kostobog authored May 15, 2024
2 parents 3e9324b + 4e329de commit e15f8bd
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/main/java/cz/cvut/kbss/analysis/model/Behavior.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public abstract class Behavior extends DomainEntity<Behavior> {
@OWLObjectProperty(iri = Vocabulary.s_p_is_derived_from, fetch = FetchType.EAGER)
protected Set<Behavior> supertypes;

@OWLDataProperty(iri = Vocabulary.s_p_behavior_type)
@OWLDataProperty(iri = Vocabulary.s_p_behavior_type, simpleLiteral = true)
private BehaviorType behaviorType = BehaviorType.AtomicBehavior;

@OWLObjectProperty(iri = Vocabulary.s_p_has_required, fetch = FetchType.EAGER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@Setter
public abstract class DomainEntity<T extends DomainEntity> extends ManagedEntity{

@OWLDataProperty(iri = Vocabulary.s_p_has_type_category)
@OWLDataProperty(iri = Vocabulary.s_p_has_type_category, simpleLiteral = true)
private TypeCategory typeCategory;

public abstract Set<T> getSupertypes();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cz/cvut/kbss/analysis/model/FailureMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@Setter
public class FailureMode extends Behavior {

@OWLDataProperty(iri = Vocabulary.s_p_failure_mode_type)
@OWLDataProperty(iri = Vocabulary.s_p_failure_mode_type, simpleLiteral = true)
private FailureModeType failureModeType = FailureModeType.FailureMode;

@Override
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/cz/cvut/kbss/analysis/model/FaultEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public static FaultEvent create(){

@NotNull(message = "EventType must be defined")
@ParticipationConstraints(nonEmpty = true)
@OWLDataProperty(iri = Vocabulary.s_p_fault_event_type)
@OWLDataProperty(iri = Vocabulary.s_p_fault_event_type, simpleLiteral = true)
private FtaEventType eventType;

@OWLDataProperty(iri = Vocabulary.s_p_gate_type)
@OWLDataProperty(iri = Vocabulary.s_p_gate_type, simpleLiteral = true)
private GateType gateType;

@OWLObjectProperty(iri = Vocabulary.s_p_has_rectangle, fetch = FetchType.EAGER, cascade = CascadeType.ALL)
Expand Down
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 @@ -27,13 +27,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 e15f8bd

Please sign in to comment.