Commit 4adf1b3a authored by akucera's avatar akucera
Browse files

ont-policy.rdf modified to use relative paths (to be able to work "out

of the box") after pulling from upstream and running maven build)
+ various bugfixes in a Provider lifecycle
parent 27a725fe
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -88,10 +88,10 @@ public class ProviderManager {
	}
	}
	
	
	public static void close() {
	public static void close() {
		for(TrendsProvider c : trendsProviders.values()) {
		for(DataPointsProvider c : dpsProviders.values()) {
			c.close();
			c.close();
		}
		}
		for(DataPointsProvider c : dpsProviders.values()) {
		for(TrendsProvider c : trendsProviders.values()) {
			c.close();
			c.close();
		}
		}
	}
	}
+1 −0
Original line number Original line Diff line number Diff line
@@ -25,6 +25,7 @@
    	<groupId>com.cronutils</groupId>
    	<groupId>com.cronutils</groupId>
    	<artifactId>cron-utils</artifactId>
    	<artifactId>cron-utils</artifactId>
   		<version>5.0.5</version>
   		<version>5.0.5</version>
   		<!-- https://github.com/jmrozanec/cron-utils -->
	</dependency>
	</dependency>
   
   
  </dependencies>
  </dependencies>
+9 −1
Original line number Original line Diff line number Diff line
package cz.muni.fi.lasaris.sbms.semantics.logic;
package cz.muni.fi.lasaris.sbms.semantics.logic;


import java.io.ByteArrayOutputStream;
import java.io.ByteArrayOutputStream;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Collections;
import java.util.GregorianCalendar;
import java.util.GregorianCalendar;
@@ -52,6 +54,12 @@ public class TdbConnector {
			model.close();
			model.close();
		}
		}
		
		
		
		Path currentRelativePath = Paths.get("");
		String s = currentRelativePath.toAbsolutePath().toString();
		logger.debug("Current relative path is: " + s);
		logger.debug("User dir is: " + System.getProperty("user.dir"));
		
		  GregorianCalendar d = new GregorianCalendar();
		  GregorianCalendar d = new GregorianCalendar();
		  dataset.begin(ReadWrite.READ);
		  dataset.begin(ReadWrite.READ);
		  // Get model inside the transaction
		  // Get model inside the transaction
Loading