Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CLEREZZA-1063: Update SchemaGen again to use {@literal} to satisfy ja…
…vadoc
  • Loading branch information
Hasan committed May 19, 2022
1 parent 1933a90 commit da01e8cd649ecaaaa8afaa255ec882326e4814c5
Showing 1 changed file with 8 additions and 8 deletions.
@@ -343,19 +343,19 @@ String getDescription() {
while (descriptionStatements.hasNext()) {
RDFTerm object = descriptionStatements.next().getObject();
if (object instanceof Literal) {
result.append("description: ");
result.append("{@literal description: ");
result.append(((Literal) object).getLexicalForm());
result.append("\n");
result.append("}\n");
}
}
Iterator<Triple> skosDefStatements = graph.filter(
uri, SKOS.definition, null);
while (skosDefStatements.hasNext()) {
RDFTerm object = skosDefStatements.next().getObject();
if (object instanceof Literal) {
result.append("definition: ");
result.append("{@literal definition: ");
result.append(((Literal) object).getLexicalForm());
result.append("\n");
result.append("}\n");
}
}
Iterator<Triple> rdfsCommentStatements = graph.filter(
@@ -374,19 +374,19 @@ String getDescription() {
while (skosNoteStatements.hasNext()) {
RDFTerm object = skosNoteStatements.next().getObject();
if (object instanceof Literal) {
result.append("note: ");
result.append("{@literal note: ");
result.append(((Literal) object).getLexicalForm());
result.append("\n");
result.append("}\n");
}
}
Iterator<Triple> skosExampleStatements = graph.filter(
uri, SKOS.example, null);
while (skosExampleStatements.hasNext()) {
RDFTerm object = skosExampleStatements.next().getObject();
if (object instanceof Literal) {
result.append("example: ");
result.append("{@literal example: ");
result.append(((Literal) object).getLexicalForm());
result.append("\n");
result.append("}\n");
} else if (object instanceof IRI) {
result.append("see <a href=").append(((IRI) object).getUnicodeString()).append(">example</a>");
result.append("\n");

0 comments on commit da01e8c

Please sign in to comment.