From c7635b1d2c5bbfc535b89675f71a371fed454015 Mon Sep 17 00:00:00 2001 From: Jyrki Oraskari <31693668+jyrkioraskari@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:55:13 +0200 Subject: [PATCH] clean-up --- IFCtoLBD/src/license/THIRD-PARTY.properties | 2 +- .../ifc2lbd/core/IFCtoLBDConverterCore.java | 6 +----- .../org/linkedbuildingdata/ifc2lbd/core/utils/RDFUtils.java | 4 ++-- .../ifc2lbd/core/valuesets/PropertySet.java | 2 +- .../ifc2lbd/geo/IfcOWL_GeolocationUtil.java | 2 +- 5 files changed, 6 insertions(+), 10 deletions(-) diff --git a/IFCtoLBD/src/license/THIRD-PARTY.properties b/IFCtoLBD/src/license/THIRD-PARTY.properties index 3694a0d2..894a8591 100644 --- a/IFCtoLBD/src/license/THIRD-PARTY.properties +++ b/IFCtoLBD/src/license/THIRD-PARTY.properties @@ -55,5 +55,5 @@ # Please fill the missing licenses for dependencies : # # -#Wed Sep 18 18:43:14 CEST 2024 +#Fri Sep 20 13:54:15 CEST 2024 gnu.getopt--java-getopt--1.0.13= diff --git a/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/core/IFCtoLBDConverterCore.java b/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/core/IFCtoLBDConverterCore.java index 20cbf9e8..d4d25fec 100644 --- a/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/core/IFCtoLBDConverterCore.java +++ b/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/core/IFCtoLBDConverterCore.java @@ -409,7 +409,6 @@ private void addGeometry(Resource lbd_resource, String guid) { try { if (this.has_geometry.add(lbd_resource)) { - System.out.println("got geometry"); BoundingBox bb = this.ifc_geometry.getBoundingBox(guid); ObjDescription obj = this.ifc_geometry.getOBJ(guid); @@ -557,9 +556,6 @@ private void finish_geometry(boolean hasInterfaces) { } } - - - } } @@ -815,7 +811,7 @@ protected void handleUnitsAndPropertySetData(int props_level, boolean hasPropert // System.out.println("Add value: "+name+" val:"+qvalue); final_quantity_set.putPnameValue(name.get(0), qvalue); } else - System.out.println( + System.err.println( "qval empty " + q_value + " for: " + property_value.getObject()); } diff --git a/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/core/utils/RDFUtils.java b/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/core/utils/RDFUtils.java index f271a410..7479b458 100644 --- a/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/core/utils/RDFUtils.java +++ b/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/core/utils/RDFUtils.java @@ -152,8 +152,8 @@ public static void readInOntologyTTL(Model model, String ontology_file, EventBus } catch (Exception e) { eventBus.post(new IFCtoLBD_SystemStatusEvent("Error : " + e.getMessage())); - System.out.println("Missing file: " + ontology_file); - System.out.println("In the rare case, when you have a \"pset\" subdirectory at the current folder, \nan extra error message may be given. "); + System.err.println("Missing file: " + ontology_file); + System.err.println("In the rare case, when you have a \"pset\" subdirectory at the current folder, \nan extra error message may be given. "); //e.printStackTrace(); } finally { diff --git a/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/core/valuesets/PropertySet.java b/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/core/valuesets/PropertySet.java index 6b241b6e..3c1a6ce3 100644 --- a/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/core/valuesets/PropertySet.java +++ b/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/core/valuesets/PropertySet.java @@ -191,7 +191,7 @@ public void connect(Resource lbd_resource, String long_guid) { if(!this.mapPnameValue.get(pname).toString().contains("IfcPropertySingleValue")) to_connect.addProperty(property, this.mapPnameValue.get(pname)); else - System.out.println("Odd value: "+this.mapPnameValue.get(pname)); + System.err.println("Odd value: "+this.mapPnameValue.get(pname)); } break; case 2: diff --git a/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/geo/IfcOWL_GeolocationUtil.java b/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/geo/IfcOWL_GeolocationUtil.java index 753438db..cade60d2 100644 --- a/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/geo/IfcOWL_GeolocationUtil.java +++ b/IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/geo/IfcOWL_GeolocationUtil.java @@ -31,7 +31,7 @@ public static void addGeolocation2BOT(Model ifcowl_model,IfcOWL ifcOWL_ns,Model try { wkt_point = c.addGeolocation(ifcowl_model); } catch (Exception e) { - System.out.println("No wkt_point"); + System.err.println("No wkt_point"); return; // no geolocation }