-
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 #91 from kbss-cvut/feature/72-add-api-to-fetch-fha…
…-event-summary Feature/72 add api to fetch fha event summary
- Loading branch information
Showing
6 changed files
with
140 additions
and
5 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
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
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
32 changes: 32 additions & 0 deletions
32
src/main/java/cz/cvut/kbss/analysis/model/FaultEventTypeSummary.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,32 @@ | ||
package cz.cvut.kbss.analysis.model; | ||
|
||
import cz.cvut.kbss.analysis.util.Vocabulary; | ||
import cz.cvut.kbss.jopa.model.annotations.*; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@SparqlResultSetMappings( | ||
@SparqlResultSetMapping(name="FaultEventSummary", entities = { | ||
@EntityResult(entityClass=FaultEventTypeSummary.class) | ||
}) | ||
) | ||
@OWLClass(iri = Vocabulary.s_c_fault_event_type) | ||
@Getter | ||
@Setter | ||
public class FaultEventTypeSummary extends NamedEntity{ | ||
|
||
@OWLDataProperty(iri = Vocabulary.s_p_is_performed_by) | ||
private String componentName; | ||
|
||
@OWLDataProperty(iri = Vocabulary.s_p_fault_event_type) | ||
private String eventType; | ||
|
||
|
||
// private | ||
|
||
public void copyTo(FaultEventType faultEventType){ | ||
super.copyTo(faultEventType); | ||
faultEventType.setComponentName(componentName); | ||
faultEventType.setEventType(eventType); | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
src/main/java/cz/cvut/kbss/analysis/model/ava/FHAEventType.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
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