Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkioraskari committed Jan 4, 2024
1 parent 2028fd3 commit 3bbcca3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.apache.jena.rdf.model.Property;
import org.apache.jena.rdf.model.RDFNode;
import org.apache.jena.rdf.model.Resource;
import org.apache.jena.rdf.model.SimpleSelector;
import org.apache.jena.rdf.model.Statement;
import org.apache.jena.rdf.model.StmtIterator;
import org.apache.jena.riot.RDFDataMgr;
Expand Down Expand Up @@ -1006,7 +1005,7 @@ protected void createIfcLBDProductMapping() {
Resource mapped_ifcowl_class = ontology_model
.getResource(this.ontURI.get() + "#" + ifcowl_class.getLocalName());
StmtIterator subclass_statement_iterator = ontology_model
.listStatements(new SimpleSelector(null, RDFS.subClassOf, mapped_ifcowl_class));
.listStatements(null, RDFS.subClassOf, mapped_ifcowl_class);
while (subclass_statement_iterator.hasNext()) {
Statement su = subclass_statement_iterator.next();
Resource ifcowl_subclass = su.getSubject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.apache.commons.text.StringEscapeUtils;

import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.RDFNode;
import org.apache.jena.rdf.model.Resource;
Expand Down Expand Up @@ -469,7 +469,6 @@ static public File characterCoding(File whole_content_file) {
for (int i = 0; i < 3; i++)
triple[i] = "";
while ((line = br.readLine()) != null) {
System.out.println("characterCoding 3");
String trimmed = line.trim();
if (!line.contains("@prefix") && !trimmed.startsWith("#")) {
int len = trimmed.length();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package de.rwth_aachen.dc.lbd;

import java.io.File;
import java.io.IOException;

import org.bimserver.plugins.deserializers.DeserializeException;
import org.bimserver.plugins.renderengine.RenderEngineException;

public class PerformanceTest {

@SuppressWarnings("unused")
public static void main(String[] args) {
new IFCGeometry(new File("c:\\jo\\Duplex_A_20110907.ifc"));
System.out.println("done");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Response convertIFCtoLBD(@HeaderParam(HttpHeaders.ACCEPT) String accept_t
ifcFile.close();
if (accept_type.equals("application/ld+json")) {
StringBuilder result_string = new StringBuilder();
extractIFCtoLBD(tempIfcFile, result_string, RDFFormat.JSONLD10_COMPACT_PRETTY);
extractIFCtoLBD(tempIfcFile, result_string, RDFFormat.JSONLD);
return Response.ok(result_string.toString(), "application/ld+json").build();
} else if (accept_type.equals("application/rdf+xml")) {
StringBuilder result_string = new StringBuilder();
Expand Down

0 comments on commit 3bbcca3

Please sign in to comment.