Skip to content

Commit

Permalink
[kbss-cvut/termit-ui#528] Extend configuration with modeling tool URL…
Browse files Browse the repository at this point in the history
… parameter.
  • Loading branch information
ledsoft committed Oct 23, 2024
1 parent 3e6b7fc commit 55984f7
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ontology/termit-glosář.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -640,3 +640,12 @@ termit-pojem:požadavek-na-změnu-hesla
termit:glosář ;
<http://www.w3.org/2004/02/skos/core#prefLabel>
"Password reset request"@en , "Požadavek na změnu hesla"@cs .

termit-pojem:má-adresu-modelovacího-nástroje
a <http://www.w3.org/2004/02/skos/core#Concept> ;
<http://www.w3.org/2004/02/skos/core#broader>
<https://slovník.gov.cz/základní/pojem/vlastnost> , <https://slovník.gov.cz/základní/pojem/typ-vlastnosti> ;
<http://www.w3.org/2004/02/skos/core#inScheme>
termit:glosář ;
<http://www.w3.org/2004/02/skos/core#prefLabel>
"Has modeling tool address"@en , "Má adresu modelovacího nástroje"@cs .
4 changes: 4 additions & 0 deletions ontology/termit-model.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,8 @@ termit-pojem:koncový-stav-pojmu
termit-pojem:požadavek-na-změnu-hesla
a <https://slovník.gov.cz/základní/pojem/typ-objektu>, owl:Class .

termit-pojem:má-adresu-modelovacího-nástroje
a owl:AnnotationProperty , <https://slovník.gov.cz/základní/pojem/typ-vlastnosti> ;
rdfs:subPropertyOf <https://slovník.gov.cz/základní/pojem/vlastnost> .


11 changes: 11 additions & 0 deletions src/main/java/cz/cvut/kbss/termit/dto/ConfigurationDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public class ConfigurationDto implements Serializable {
@OWLDataProperty(iri = Vocabulary.s_p_ma_oddelovac_verze)
private String versionSeparator;

@OWLAnnotationProperty(iri = Vocabulary.s_p_ma_adresu_modelovaciho_nastroje)
private String modelingToolUrl;

public String getLanguage() {
return language;
}
Expand Down Expand Up @@ -92,4 +95,12 @@ public String getVersionSeparator() {
public void setVersionSeparator(String versionSeparator) {
this.versionSeparator = versionSeparator;
}

public String getModelingToolUrl() {
return modelingToolUrl;
}

public void setModelingToolUrl(String modelingToolUrl) {
this.modelingToolUrl = modelingToolUrl;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public ConfigurationDto getConfiguration() {
result.setRoles(new HashSet<>(service.findAll()));
result.setMaxFileUploadSize(maxFileUploadSize);
result.setVersionSeparator(config.getNamespace().getSnapshot().getSeparator());
result.setModelingToolUrl(config.getModelingToolUrl());
return result;
}
}
17 changes: 17 additions & 0 deletions src/main/java/cz/cvut/kbss/termit/util/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ public class Configuration {
* It is used, for example, for links in emails sent to users.
*/
private String url = "http://localhost:3000/#";

/**
* URL of the modeling tool.
* <p>
* The modeling tool can be used to further specify the relationships between terms.
*/
private String modelingToolUrl;

/**
* Name of the JMX bean exported by TermIt.
* <p>
Expand Down Expand Up @@ -88,6 +96,7 @@ public class Configuration {
* <p>
* By default, generated identifiers may contain accented characters (like č). Setting this configuration to
* {@code true} ensures all generated identifiers are ASCII-only and accented character are normalized to ASCII.
*
* @configurationdoc.default false
*/
private boolean asciiIdentifiers = false;
Expand Down Expand Up @@ -139,6 +148,14 @@ public void setUrl(String url) {
this.url = url;
}

public String getModelingToolUrl() {
return modelingToolUrl;
}

public void setModelingToolUrl(String modelingToolUrl) {
this.modelingToolUrl = modelingToolUrl;
}

public String getJmxBeanName() {
return jmxBeanName;
}
Expand Down

0 comments on commit 55984f7

Please sign in to comment.