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 3ee4f76 commit 547481e
Show file tree
Hide file tree
Showing 5 changed files with 119 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_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_criticality)
private Set<Integer> criticality;

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

@OWLDataProperty(iri = Vocabulary.s_p_material_reference)
private Set<String> referencedMaterials;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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
public class IndependentSNSItem extends Item {
@OWLDataProperty(iri = Vocabulary.s_p_part_number)
private String partNumber;

@OWLDataProperty(iri = Vocabulary.s_p_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_quantity)
private Integer quantity;

@OWLDataProperty(iri = Vocabulary.s_p_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_code)
public String code;
}

0 comments on commit 547481e

Please sign in to comment.