Skip to content

Commit

Permalink
[Fix #65] Add AVA related entities
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog committed Mar 14, 2024
1 parent 22026ef commit 5a950c8
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/main/java/cz/cvut/kbss/analysis/model/ava/ATASystem.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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;
import lombok.Getter;
import lombok.Setter;

/**
* This entity represents an ATA system category. It can be used as a supertype to categorize an Item.
*/
@OWLClass(iri = Vocabulary.s_c_ata_system)
@Getter
@Setter
public class ATASystem extends Component {

@OWLDataProperty(iri = Vocabulary.s_p_has_ata_code)
private String ataCode;

}
28 changes: 28 additions & 0 deletions src/main/java/cz/cvut/kbss/analysis/model/ava/FHAEventType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package cz.cvut.kbss.analysis.model.ava;

import cz.cvut.kbss.analysis.model.Event;
import cz.cvut.kbss.analysis.model.FaultEventType;
import cz.cvut.kbss.analysis.model.method.VerificationMethod;
import cz.cvut.kbss.analysis.util.Vocabulary;
import cz.cvut.kbss.jopa.model.annotations.OWLClass;
import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty;
import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Set;

@OWLClass(iri = Vocabulary.s_c_fha_fault_event)
@Setter
@Getter
public class FHAEventType extends FaultEventType {

@OWLDataProperty(iri = Vocabulary.s_p_has_criticality)
private Set<Integer> criticality;

@OWLObjectProperty(iri = Vocabulary.s_c_verification_method)
private Set<VerificationMethod> verificationMethods;

@OWLDataProperty(iri = Vocabulary.s_p_has_material_reference)
private Set<String> referencedMaterials;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package cz.cvut.kbss.analysis.model.ava;

import cz.cvut.kbss.analysis.model.Item;
import cz.cvut.kbss.analysis.util.Vocabulary;
import cz.cvut.kbss.jopa.model.annotations.OWLClass;
import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty;
import lombok.Getter;
import lombok.Setter;

/**
* This entity represents a Kind (typeCategory should be set to Kind) of independent Item used as a component in the SNS
* partonomy identified by a partNumber and stock.
*
*
*/
@OWLClass(iri = Vocabulary.s_c_reusable_system)
@Getter
@Setter
// TODO consider creating a ReusableSystem in model with partNumber and renaming this for example AVAPart.
public class IndependentSNSItem extends Item {
@OWLDataProperty(iri = Vocabulary.s_p_has_part_number)
private String partNumber;

@OWLDataProperty(iri = Vocabulary.s_p_has_stock)
private String stock;
}
27 changes: 27 additions & 0 deletions src/main/java/cz/cvut/kbss/analysis/model/ava/SNSComponent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package cz.cvut.kbss.analysis.model.ava;

import cz.cvut.kbss.analysis.model.Component;
import cz.cvut.kbss.analysis.util.Vocabulary;
import cz.cvut.kbss.jopa.model.annotations.OWLClass;
import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Set;


/*
* This entity represents component from an SNS partonomy. The SNSComponent categorized as a IndependentSNSItem Kind and
* or an ATASystem.
*/
@OWLClass(iri = Vocabulary.s_c_sns_component)
@Getter
@Setter
public class SNSComponent extends Component {
@OWLDataProperty(iri = Vocabulary.s_p_has_quantity)
private Integer quantity;

@OWLDataProperty(iri = Vocabulary.s_p_has_schematic_designation)
private Set<String> schematicDescription;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package cz.cvut.kbss.analysis.model.method;

import cz.cvut.kbss.analysis.model.NamedEntity;
import cz.cvut.kbss.analysis.util.Vocabulary;
import cz.cvut.kbss.jopa.model.annotations.OWLClass;
import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty;
import lombok.Getter;
import lombok.Setter;

@OWLClass(iri = Vocabulary.s_c_verification_method)
@Getter
@Setter
public class VerificationMethod extends NamedEntity {
@OWLDataProperty(iri = Vocabulary.s_p_has_code)
public String code;
}

0 comments on commit 5a950c8

Please sign in to comment.