Skip to content

Commit

Permalink
Merge pull request #511 from dgarijo/develop
Browse files Browse the repository at this point in the history
Develop Fix #505
  • Loading branch information
dgarijo authored Apr 18, 2022
2 parents c4da2f5 + e6e4308 commit 4030829
Show file tree
Hide file tree
Showing 16 changed files with 42 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WIDOCO helps you to publish and create an enriched and customized documentation

**Author**: Daniel Garijo Verdejo (@dgarijo)

**Contributors**: María Poveda, Idafen Santana, Almudena Ruiz, Miguel Angel García, Oscar Corcho, Daniel Vila, Sergio Barrio, Martin Scharm, Maxime Lefrancois, Alfredo Serafini, @kartgk, Pat Mc Bennett, Christophe Camel, Jacobus Geluk, Martin Scharm, @rpietzsch, Jonathan Leitschuh, Jodi Schneider, Giacomo Lanza, Alejandra Gonzalez-Beltran, Mario Scrocca, Miguel Angel García, Flores Bakker and @JohnnyMoonlight.
**Contributors**: María Poveda, Idafen Santana, Almudena Ruiz, Miguel Angel García, Oscar Corcho, Daniel Vila, Sergio Barrio, Martin Scharm, Maxime Lefrancois, Alfredo Serafini, @kartgk, Pat Mc Bennett, Christophe Camel, Jacobus Geluk, Martin Scharm, @rpietzsch, Jonathan Leitschuh, Jodi Schneider, Giacomo Lanza, Alejandra Gonzalez-Beltran, Mario Scrocca, Miguel Angel García, Flores Bakker, @JohnnyMoonlight and René Fritze.

**Citing WIDOCO**: If you used WIDOCO in your work, please cite the ISWC 2017 paper: https://iswc2017.semanticweb.org/paper-138

Expand Down
1 change: 1 addition & 0 deletions src/main/java/oops/OOPSevaluation.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public OOPSevaluation(String content) throws IOException {
+ "</OOPSRequest>";
String uri = Constants.OOPS_SERVICE_URL;
URL url = new URL(uri);
System.out.println(request);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setConnectTimeout(Constants.OOPS_TIME_OUT);
connection.setRequestMethod("POST");
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/widoco/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,11 @@ private void completeOntologyMetadata(OWLAnnotation a, OWLOntology o) {
value = a.getValue().asLiteral().get().getLiteral();
mainOntologyMetadata.setReleaseDate(value);
break;
case Constants.PROP_SCHEMA_DATE_ISSUED:
case Constants.PROP_DCTERMS_ISSUED:
value = a.getValue().asLiteral().get().getLiteral();
mainOntologyMetadata.setIssuedDate(value);
break;
case Constants.PROP_DCTERMS_BIBLIOGRAPHIC_CIT:
case Constants.PROP_SCHEMA_CITATION:
value = WidocoUtils.getValueAsLiteralOrURI(a.getValue());
Expand Down
14 changes: 10 additions & 4 deletions src/main/java/widoco/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class Constants {
public static final int LICENSIUS_TIME_OUT = 10000;

public static final int OOPS_TIME_OUT = 10000;
public static final String OOPS_SERVICE_URL = "http://oops.linkeddata.es/rest";
public static final String OOPS_SERVICE_URL = "https://oops.linkeddata.es/rest";
public static final String OOPS_NS = "http://oops.linkeddata.es/def#";

public static final String[] POSSIBLE_VOCAB_SERIALIZATIONS = { "application/rdf+xml", "text/turtle", "text/n3",
Expand Down Expand Up @@ -93,6 +93,7 @@ public class Constants {
public static final String PROP_SCHEMA_EMAIL = NS_SCHEMA + "email";
public static final String PROP_SCHEMA_AFFILIATION = NS_SCHEMA + "affiliation";
public static final String PROP_SCHEMA_IMAGE = NS_SCHEMA + "image";
public static final String PROP_SCHEMA_DATE_ISSUED = NS_SCHEMA + "dateIssued";

public static final String PROP_OWL_VERSION_INFO = NS_OWL + "versionInfo";
public static final String PROP_OWL_PRIOR_VERSION = NS_OWL + "priorVersion";
Expand All @@ -118,6 +119,7 @@ public class Constants {
public static final String PROP_DCTERMS_PUBLISHER = NS_DCTERMS + "publisher";
public static final String PROP_DCTERMS_CREATED = NS_DCTERMS + "created";
public static final String PROP_DCTERMS_MODIFIED = NS_DCTERMS + "modified";
public static final String PROP_DCTERMS_ISSUED = NS_DCTERMS + "issued";
public static final String PROP_DCTERMS_BIBLIOGRAPHIC_CIT = NS_DCTERMS + "bibliographicCitation";

public static final String PROP_BIBO_DOI = NS_BIBO + "doi";
Expand Down Expand Up @@ -238,14 +240,15 @@ public class Constants {
public static final String LANG_THIS_VERSION = "thisVersion";
public static final String LANG_LATEST_VERSION = "latestVersion";
public static final String LANG_PREVIOUS_VERSION = "previousVersion";
public static final String LANG_ISSUED = "issued";
public static final String LANG_REVISION = "revision";
public static final String LANG_SERIALIZATION = "serialization";
public static final String LANG_LICENSE_URL_IF_NULL = "licenseURLIfNull";
public static final String LANG_LICENSE = "license";
public static final String LANG_LICENSE_IF_NULL = "licenseIfNull";
public static final String LANG_VISUALIZATION = "visualization";
public static final String LANG_CITE_AS = "citeAs";
public static final String LANG_PRPOV_HEAD = "provHead";
public static final String LANG_PROV_HEAD = "provHead";
public static final String LANG_OVERVIEW_PLACEHOLDER = "overviewPlaceHolder";
public static final String LANG_DESCRIPTION_PLACEHOLDER = "descriptionPlaceHolder";
public static final String LANG_CROSS_REF_TITLE = "crossRefTitle";
Expand All @@ -270,7 +273,7 @@ public class Constants {
public static final String LANG_NAMED_INDIV = "namedIndiv";
public static final String LANG_TABLE_OF_CONTENTS = "tableOfContents";
public static final String LANG_COMPATIBLE = "compatible";
public static final String LANG_INCOMPATIBLE = "incompatible";
public static final String LANG_INCOMPATIBLE = "incompatible";
public static final String LANG_LEGEND = "legend";

// labels for the changelog
Expand Down Expand Up @@ -869,6 +872,9 @@ public static String getHeadSection(Configuration c, Properties l) {
if (c.getMainOntology().getRevision() != null && !"".equals(c.getMainOntology().getRevision()))
head += "<dt>" + l.getProperty(LANG_REVISION) + "</dt>\n" + "<dd>" + c.getMainOntology().getRevision()
+ "</dd>\n";
if (c.getMainOntology().getIssuedDate() != null && !"".equals(c.getMainOntology().getIssuedDate()))
head += "<dt>" + l.getProperty(LANG_ISSUED) + "</dt>\n" + "<dd>" + c.getMainOntology().getIssuedDate()
+ "</dd>\n";
if (!c.getMainOntology().getCreators().isEmpty())
head += getAuthors(c.getMainOntology().getCreators(), l) + "\n";
if (!c.getMainOntology().getContributors().isEmpty())
Expand Down Expand Up @@ -951,7 +957,7 @@ public static String getHeadSection(Configuration c, Properties l) {

if (c.isPublishProvenance()) {
head += "<a href=\"provenance/provenance-" + c.getCurrentLanguage() + ".html\" target=\"_blank\">"
+ l.getProperty(LANG_PRPOV_HEAD) + "</a>";
+ l.getProperty(LANG_PROV_HEAD) + "</a>";
}
head += "<hr/>\n" + "</div>\n";
return head;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/widoco/entities/Ontology.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ public class Ontology {
*/
private ArrayList<String> images;

/**
* Issued date
*/
private String issuedDate;

public Ontology() {
this.images = new ArrayList<>();
}
Expand Down Expand Up @@ -286,6 +291,10 @@ public String getReleaseDate() {
public void setReleaseDate(String releaseDate) {
this.releaseDate = releaseDate;
}

public String getIssuedDate(){ return issuedDate;}

public void setIssuedDate(String issuedDate){ this.issuedDate = issuedDate;}

public ArrayList<Ontology> getImportedOntologies() {
return importedOntologies;
Expand Down
Binary file modified src/main/resources/lode.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions src/main/resources/lode/bootstrap-yeti-old.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url("//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700,800");
@import url("//fonts.googleapis.com/css?family=Montserrat:400,700");
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700,800");
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700");

/*!
* Bootswatch v3.1.0+1
Expand Down Expand Up @@ -6586,4 +6586,4 @@ label,.control-label,.help-block,.checkbox,.radio {

.affix {
position: fixed;
}
}
6 changes: 3 additions & 3 deletions src/main/resources/lode/bootstrap-yeti.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url("//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700,800");
@import url("//fonts.googleapis.com/css?family=Montserrat:400,700");
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700,800");
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700");

/*!
* Bootswatch v3.1.0+1
Expand Down Expand Up @@ -6633,4 +6633,4 @@ label,.control-label,.help-block,.checkbox,.radio {
.status div span {
font-family: "Tauri";
font-size: larger;
}
}
1 change: 1 addition & 0 deletions src/main/resources/widoco/cs.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ thisVersion=Tato verze:
latestVersion=Posledn\u00ed verze:
previousVersion=P\u0159edchoz\u00ed verze:
revision=Revize:
issued=Vydan&eacute; dne
date=Vyd\u00e1n\u00ed
authors=Auto\u0159i:
contributors=P\u0159isp\u011bvatel\u00e9:
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/widoco/de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ thisVersion=Diese Version:
latestVersion=Aktuellste Version:
previousVersion=Vorherige Version:
revision=Revision:
issued=Ausgestellt am
date=Release
authors= Autoren:
contributors=Beteiligte:
Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/widoco/en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ latestVersion=Latest version:
previousVersion=Previous version:
revision=Revision:
date=Release
issued= Issued on:
authors= Authors:
contributors=Contributors:
extended=Extended Ontologies:
imported=Imported Ontologies:
abstract=Abstract
abstractPlaceHolder=This is a place holder text for the abstract. The abstract should contain a couple of sentences summarizing the ontology and its purpose.
abstractPlaceHolder=This is a placeholder text for the abstract. The abstract should contain a couple of sentences summarizing the ontology and its purpose.
license=License:
licenseIfNull=license name goes here
licenseURLIfNull=http://insertlicenseURIhere.org
Expand All @@ -23,7 +24,7 @@ overviewTitle=Overview
overviewPlaceHolder=Overview <span class=\"backlink\"> back to <a href=\"#toc\">ToC</a></span></h2>\n<span class=\"markdown\">\nThis ontology has the following classes and properties.</span>\n
descriptionTitle=Description
descriptionPlaceHolder=Description <span class=\"backlink\"> back to <a href=\"#toc\">ToC</a></span></h2>\n<span class=\"markdown\">\nThis is a placeholder text for the description of your ontology. The description should include an explanation and a diagram explaining how the classes are related, examples of usage, etc.</span>\n
crossRefTitle=Cross reference for
crossRefTitle=Cross-reference for
crossRefTitle2=classes, object properties and data properties <span class=\"backlink\"> back to <a href=\"#toc\">ToC</a></span>
crossRefPlaceHolder=This section provides details for each class and property defined by
classes=Classes
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/widoco/es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ thisVersion=Versi&oacute;n:
latestVersion=&Uacute;ltima Versi&oacute;n:
previousVersion=Versi&oacute;n previa:
revision=Revisi&oacute;n n&uacute;mero:
issued=Fecha de emisi&oacute;n
authors= Autores:
date=Fecha de creaci&oacute;n:
contributors=Colaboradores:
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/widoco/fr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ thisVersion=Cette version:
latestVersion=Derni&egrave; re version:
previousVersion=Pr&eacute;c&eacute;dente version:
revision=R&eacute;vision:
issued=&Eacute;mis le
date=Release
authors= Auteurs:
contributors=Contributeurs:
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/widoco/it.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ thisVersion=Questa versione:
latestVersion=Ultima versione:
previousVersion=Versione precedente:
revision=Revisione:
issued=Rilasciato il
date=Data di pubblicazione
authors= Autori:
contributors=Collaboratori:
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/widoco/nl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ thisVersion=Deze versie:
latestVersion=Laatste versie:
previousVersion=Vorige versie:
revision=Revisie:
issued=Afgegeven op
date=Release
authors= Auteurs:
contributors=Bijdragers:
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/widoco/pt.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ thisVersion=Vers&atilde;o:
latestVersion=&Uacute;ltima vers&atilde;o:
previousVersion=Vers&atilde;o anterior:
revision=Revis&atilde;o:
issued=Emitida em
date=Data de cria&ccedil;ao
authors= Autores:
contributors=Contribuintes:
Expand Down

0 comments on commit 4030829

Please sign in to comment.