-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from kbss-cvut/feature/58-jopa-model-supportin…
…g-fha-and-multiple-failure-rates @blcham Extend JOPA model
- Loading branch information
Showing
12 changed files
with
406 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/java/cz/cvut/kbss/analysis/model/AnalysisEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package cz.cvut.kbss.analysis.model; | ||
|
||
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.Date; | ||
|
||
@OWLClass(iri = Vocabulary.s_c_analysis_event) | ||
@Getter | ||
@Setter | ||
public class AnalysisEvent<T extends AnalysisProduct> extends AbstractEntity{ | ||
|
||
@OWLObjectProperty(iri = Vocabulary.s_p_performed_by) | ||
private User agent; | ||
|
||
@OWLObjectProperty(iri = Vocabulary.s_p_based_on) | ||
private NamedEntity analysisMethod; | ||
|
||
@OWLDataProperty(iri = Vocabulary.s_p_has_start) | ||
private Date startTime; | ||
@OWLDataProperty(iri = Vocabulary.s_p_has_end) | ||
private Date endTime; | ||
|
||
@OWLObjectProperty(iri = Vocabulary.s_p_creates) | ||
private T product; | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/cz/cvut/kbss/analysis/model/AnalysisProduct.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package cz.cvut.kbss.analysis.model; | ||
|
||
import cz.cvut.kbss.analysis.util.Vocabulary; | ||
import cz.cvut.kbss.jopa.model.annotations.OWLClass; | ||
import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@OWLClass(iri = Vocabulary.s_c_analysis_product) | ||
@Getter | ||
@Setter | ||
public class AnalysisProduct extends AbstractEntity{ | ||
@OWLObjectProperty(iri = Vocabulary.s_p_creates) | ||
private AnalysisEvent creationEvent; | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/cz/cvut/kbss/analysis/model/CutSetExtractionEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package cz.cvut.kbss.analysis.model; | ||
|
||
import cz.cvut.kbss.analysis.util.Vocabulary; | ||
import cz.cvut.kbss.jopa.model.annotations.OWLClass; | ||
|
||
@OWLClass(iri = Vocabulary.s_c_fault_tree_cut_set_extraction_method) | ||
public class CutSetExtractionEvent extends AnalysisEvent<FaultEventScenario> { | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/cz/cvut/kbss/analysis/model/EstimationEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package cz.cvut.kbss.analysis.model; | ||
|
||
import cz.cvut.kbss.analysis.util.Vocabulary; | ||
import cz.cvut.kbss.jopa.model.annotations.OWLClass; | ||
|
||
@OWLClass(iri = Vocabulary.s_c_estimation_event) | ||
public class EstimationEvent extends AnalysisEvent<FailureRateEstimate>{ | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/cz/cvut/kbss/analysis/model/FailureRate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package cz.cvut.kbss.analysis.model; | ||
|
||
import cz.cvut.kbss.analysis.util.Vocabulary; | ||
import cz.cvut.kbss.jopa.model.annotations.OWLClass; | ||
import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@OWLClass(iri = Vocabulary.s_c_failure_rate) | ||
@Getter | ||
@Setter | ||
public class FailureRate extends AbstractEntity{ | ||
|
||
@OWLObjectProperty(iri = Vocabulary.s_p_has_requirement) | ||
private FailureRateRequirement requirement; | ||
|
||
@OWLObjectProperty(iri = Vocabulary.s_p_has_estimate) | ||
private FailureRateEstimate estimate; | ||
|
||
@OWLObjectProperty(iri = Vocabulary.s_p_has_prediction) | ||
private FailureRateEstimate prediction; | ||
|
||
} |
Oops, something went wrong.