-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into kbss-cvut/termit-ui#449-excel-import
- Loading branch information
Showing
15 changed files
with
698 additions
and
46 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,74 @@ | ||
package cz.cvut.kbss.termit.dto; | ||
|
||
import cz.cvut.kbss.jopa.model.annotations.ConstructorResult; | ||
import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; | ||
import cz.cvut.kbss.jopa.model.annotations.OWLClass; | ||
import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; | ||
import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; | ||
import cz.cvut.kbss.jopa.model.annotations.SparqlResultSetMapping; | ||
import cz.cvut.kbss.jopa.model.annotations.VariableResult; | ||
import cz.cvut.kbss.jopa.model.annotations.util.NonEntity; | ||
import cz.cvut.kbss.jopa.vocabulary.RDF; | ||
|
||
import java.io.Serializable; | ||
import java.net.URI; | ||
|
||
/** | ||
* Utility class describing a generic {@link #relation} between an {@link #object} and {@link #subject} | ||
*/ | ||
@NonEntity | ||
@OWLClass(iri = RDF.STATEMENT) | ||
@SparqlResultSetMapping(name = "RDFStatement", | ||
classes = {@ConstructorResult(targetClass = RdfsStatement.class, | ||
variables = { | ||
@VariableResult(name = "object", type = URI.class), | ||
@VariableResult(name = "relation", type = URI.class), | ||
@VariableResult(name = "subject", type = URI.class), | ||
})}) | ||
public class RdfsStatement implements Serializable { | ||
|
||
@ParticipationConstraints(nonEmpty = true) | ||
@OWLObjectProperty(iri = RDF.OBJECT) | ||
private URI object; | ||
|
||
@ParticipationConstraints(nonEmpty = true) | ||
@OWLAnnotationProperty(iri = RDF.PREDICATE) | ||
private URI relation; | ||
|
||
@ParticipationConstraints(nonEmpty = true) | ||
@OWLObjectProperty(iri = RDF.SUBJECT) | ||
private URI subject; | ||
|
||
public RdfsStatement() { | ||
} | ||
|
||
public RdfsStatement(URI object, URI relation, URI subject) { | ||
this.object = object; | ||
this.relation = relation; | ||
this.subject = subject; | ||
} | ||
|
||
public URI getObject() { | ||
return object; | ||
} | ||
|
||
public void setObject(URI object) { | ||
this.object = object; | ||
} | ||
|
||
public URI getRelation() { | ||
return relation; | ||
} | ||
|
||
public void setRelation(URI relation) { | ||
this.relation = relation; | ||
} | ||
|
||
public URI getSubject() { | ||
return subject; | ||
} | ||
|
||
public void setSubject(URI subject) { | ||
this.subject = subject; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/cz/cvut/kbss/termit/event/VocabularyWillBeRemovedEvent.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,21 @@ | ||
package cz.cvut.kbss.termit.event; | ||
|
||
import org.springframework.context.ApplicationEvent; | ||
|
||
import java.net.URI; | ||
|
||
/** | ||
* Indicates that a Vocabulary will be removed | ||
*/ | ||
public class VocabularyWillBeRemovedEvent extends ApplicationEvent { | ||
private final URI vocabulary; | ||
|
||
public VocabularyWillBeRemovedEvent(Object source, URI vocabulary) { | ||
super(source); | ||
this.vocabulary = vocabulary; | ||
} | ||
|
||
public URI getVocabulary() { | ||
return vocabulary; | ||
} | ||
} |
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
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.