-
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 #54 from kbss-cvut/feature/persist-diagram-layout
Feature/persist diagram layout
- Loading branch information
Showing
18 changed files
with
211 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
@prefix : <http://onto.fel.cvut.cz/ontologies/diagram#> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@base <http://onto.fel.cvut.cz/ontologies/diagram> . | ||
|
||
<http://onto.fel.cvut.cz/ontologies/diagram> rdf:type owl:Ontology . | ||
|
||
################################################################# | ||
# Object Properties | ||
################################################################# | ||
|
||
### http://onto.fel.cvut.cz/ontologies/diagram/has-rectangle | ||
<http://onto.fel.cvut.cz/ontologies/diagram/has-rectangle> rdf:type owl:ObjectProperty ; | ||
rdfs:range <http://onto.fel.cvut.cz/ontologies/diagram/rectangle> . | ||
|
||
|
||
################################################################# | ||
# Data properties | ||
################################################################# | ||
|
||
### http://onto.fel.cvut.cz/ontologies/diagram/height | ||
<http://onto.fel.cvut.cz/ontologies/diagram/height> rdf:type owl:DatatypeProperty ; | ||
rdfs:range xsd:double . | ||
|
||
|
||
### http://onto.fel.cvut.cz/ontologies/diagram/width | ||
<http://onto.fel.cvut.cz/ontologies/diagram/width> rdf:type owl:DatatypeProperty ; | ||
rdfs:range xsd:double . | ||
|
||
|
||
### http://onto.fel.cvut.cz/ontologies/diagram/x | ||
<http://onto.fel.cvut.cz/ontologies/diagram/x> rdf:type owl:DatatypeProperty ; | ||
rdfs:range xsd:double . | ||
|
||
|
||
### http://onto.fel.cvut.cz/ontologies/diagram/y | ||
<http://onto.fel.cvut.cz/ontologies/diagram/y> rdf:type owl:DatatypeProperty ; | ||
rdfs:range xsd:double . | ||
|
||
|
||
################################################################# | ||
# Classes | ||
################################################################# | ||
|
||
### http://onto.fel.cvut.cz/ontologies/diagram/rectangle | ||
<http://onto.fel.cvut.cz/ontologies/diagram/rectangle> rdf:type owl:Class . | ||
|
||
|
||
### Generated by the OWL API (version 4.5.9.2019-02-01T07:24:44Z) https://github.com/owlcs/owlapi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
http://onto.fel.cvut.cz/ontologies/fta-fmea-application > ../../../ontology/fta-fmea-model.ttl | ||
http://onto.fel.cvut.cz/ontologies/fta-fmea-application > ../../../ontology/fta-fmea-model.ttl | ||
http://onto.fel.cvut.cz/ontologies/diagram > ../../../ontology/diagram.ttl |
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
55 changes: 55 additions & 0 deletions
55
src/main/java/cz/cvut/kbss/analysis/model/diagram/Rectangle.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,55 @@ | ||
package cz.cvut.kbss.analysis.model.diagram; | ||
|
||
|
||
import cz.cvut.kbss.analysis.util.Vocabulary; | ||
import cz.cvut.kbss.jopa.model.annotations.Id; | ||
import cz.cvut.kbss.jopa.model.annotations.OWLClass; | ||
import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; | ||
import cz.cvut.kbss.jopa.model.annotations.Transient; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.net.URI; | ||
|
||
@OWLClass(iri = Vocabulary.s_c_rectangle) | ||
@Getter | ||
@Setter | ||
public class Rectangle { | ||
|
||
@Id(generated = true) | ||
private URI uri; | ||
|
||
@OWLDataProperty(iri = Vocabulary.s_p_x) | ||
private Double x; | ||
@OWLDataProperty(iri = Vocabulary.s_p_y) | ||
private Double y; | ||
|
||
@OWLDataProperty(iri = Vocabulary.s_p_width) | ||
private Double width; | ||
@OWLDataProperty(iri = Vocabulary.s_p_height) | ||
private Double height; | ||
|
||
public Rectangle() { | ||
} | ||
public Rectangle(Double[] array){ | ||
this(array[0], array[1], array[2], array[3]); | ||
} | ||
|
||
public Rectangle(Double x, Double y, Double width, Double height) { | ||
this.x = x; | ||
this.y = y; | ||
this.width = width; | ||
this.height = height; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Rectangle[" + | ||
"x=" + x + | ||
", y=" + y + | ||
", width=" + width + | ||
", height=" + height + | ||
']'; | ||
} | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
...t/kbss/analysis/model/util/EventType.java → ...kbss/analysis/model/fta/FtaEventType.java
100755 → 100644
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
2 changes: 1 addition & 1 deletion
2
...ut/kbss/analysis/model/util/GateType.java → ...vut/kbss/analysis/model/fta/GateType.java
100755 → 100644
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package cz.cvut.kbss.analysis.model.util; | ||
package cz.cvut.kbss.analysis.model.fta; | ||
|
||
public enum GateType { | ||
AND, | ||
|
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
2 changes: 1 addition & 1 deletion
2
src/main/java/cz/cvut/kbss/analysis/service/strategy/GateStrategyFactory.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
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
Oops, something went wrong.