From 71d6060b4b89426984b60d0243cba445210ecbbc Mon Sep 17 00:00:00 2001 From: Ehtesham Date: Mon, 8 Mar 2021 08:52:45 +0530 Subject: [PATCH] Removed a javaDoc param Signed-off-by: Ehtesham --- .../org/spdx/tools/schema/OwlToJsonSchema.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/spdx/tools/schema/OwlToJsonSchema.java b/src/main/java/org/spdx/tools/schema/OwlToJsonSchema.java index c0a27c6..73c12e1 100644 --- a/src/main/java/org/spdx/tools/schema/OwlToJsonSchema.java +++ b/src/main/java/org/spdx/tools/schema/OwlToJsonSchema.java @@ -2,7 +2,7 @@ * Copyright (c) 2020 Source Auditor Inc. * * SPDX-License-Identifier: Apache-2.0 - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -44,10 +44,10 @@ * @author Gary O'Neall * * Converts from RDF/OWL RDF/XML documents to JSON Schema draft 7 - * + * */ public class OwlToJsonSchema extends AbstractOwlRdfConverter { - + private static final String SCHEMA_VERSION_URI = "http://json-schema.org/draft-07/schema#"; private static final String RELATIONSHIP_TYPE = SpdxConstants.SPDX_NAMESPACE + SpdxConstants.CLASS_RELATIONSHIP; static ObjectMapper jsonMapper = new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT); @@ -90,15 +90,14 @@ public ObjectNode convertToJsonSchema() { OntClass relationshipClass = model.getOntClass(SpdxConstants.SPDX_NAMESPACE + SpdxConstants.CLASS_RELATIONSHIP); Objects.requireNonNull(relationshipClass, "Missing SPDX Relationship class in OWL document"); docSchemaProperties.set("relationships", toArrayPropertySchema(relationshipClass, 0)); - + properties.set("Document", documentClassSchema); root.set("properties", properties); return root; } - + /** * @param ontClass - * @param jsonMapper * @param min Minimum number of array items * @return JSON Schema of an array of item types represented by the ontClass */ @@ -116,7 +115,7 @@ private JsonNode toArrayPropertySchema(OntClass ontClass, int min) { /** * @param spdxClass RDF ontology class - * @return JSON Schema + * @return JSON Schema */ private ObjectNode ontClassToJsonSchema(OntClass spdxClass) { ObjectNode retval = jsonMapper.createObjectNode(); @@ -139,7 +138,7 @@ private ObjectNode ontClassToJsonSchema(OntClass spdxClass) { } else { properties.set(checkConvertRenamedPropertyName(property.getLocalName()), derivePropertySchema(property, restrictions, false)); } - + } retval.set("properties", properties); return retval;