Repository: any23 Updated Branches: refs/heads/master 62d1a8dbe -> a8d9b8b34
standardized code style in RDFSchemaUtils Project: http://git-wip-us.apache.org/repos/asf/any23/repo Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/a8d9b8b3 Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/a8d9b8b3 Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/a8d9b8b3 Branch: refs/heads/master Commit: a8d9b8b34b1806ef594f2f728909a76f0d63f82e Parents: 62d1a8d Author: Hans <[email protected]> Authored: Fri Jul 13 12:12:52 2018 -0500 Committer: Hans <[email protected]> Committed: Fri Jul 13 12:12:52 2018 -0500 ---------------------------------------------------------------------- .../org/apache/any23/vocab/RDFSchemaUtils.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/any23/blob/a8d9b8b3/core/src/main/java/org/apache/any23/vocab/RDFSchemaUtils.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/any23/vocab/RDFSchemaUtils.java b/core/src/main/java/org/apache/any23/vocab/RDFSchemaUtils.java index f678913..c8b62c5 100644 --- a/core/src/main/java/org/apache/any23/vocab/RDFSchemaUtils.java +++ b/core/src/main/java/org/apache/any23/vocab/RDFSchemaUtils.java @@ -65,19 +65,19 @@ public class RDFSchemaUtils { RDFWriter writer ) { writer.startRDF(); - for(IRI clazz : classes) { - writer.handleStatement( RDFUtils.quad(clazz, RDF.TYPE, RDFS.CLASS, namespace) ); - writer.handleStatement( RDFUtils.quad(clazz, RDFS.MEMBER, namespace, namespace) ); + for (IRI clazz : classes) { + writer.handleStatement(RDFUtils.quad(clazz, RDF.TYPE, RDFS.CLASS, namespace)); + writer.handleStatement(RDFUtils.quad(clazz, RDFS.MEMBER, namespace, namespace)); final String comment = comments.get(clazz); - if(comment != null) - writer.handleStatement( RDFUtils.quad(clazz, RDFS.COMMENT, RDFUtils.literal(comment), namespace) ); + if (comment != null) + writer.handleStatement(RDFUtils.quad(clazz, RDFS.COMMENT, RDFUtils.literal(comment), namespace)); } - for(IRI property : properties) { + for (IRI property : properties) { writer.handleStatement(RDFUtils.quad(property, RDF.TYPE, RDF.PROPERTY, namespace)); writer.handleStatement(RDFUtils.quad(property, RDFS.MEMBER, namespace, namespace)); final String comment = comments.get(property); - if(comment != null) - writer.handleStatement( RDFUtils.quad(property, RDFS.COMMENT, RDFUtils.literal(comment), namespace) ); + if (comment != null) + writer.handleStatement(RDFUtils.quad(property, RDFS.COMMENT, RDFUtils.literal(comment), namespace)); } writer.endRDF(); } @@ -114,9 +114,9 @@ public class RDFSchemaUtils { boolean willFollowAnother, PrintStream ps) { final RDFWriter rdfWriter; - if(format == RDFFormat.RDFXML) { + if (format == RDFFormat.RDFXML) { rdfWriter = Rio.createWriter(RDFFormat.RDFXML, ps); - if(willFollowAnother) + if (willFollowAnother) ps.print("\n"); ps.print(RDF_XML_SEPARATOR); ps.print("\n");
