Commit 0a00a284 authored by Adam Kučera's avatar Adam Kučera
Browse files

tdb connector logging adjustments

parent acae79c0
package cz.muni.fi.lasaris.sbms.semantics.logic;
import java.io.ByteArrayOutputStream;
import java.time.Duration;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.Collections;
import java.util.GregorianCalendar;
......@@ -191,6 +194,7 @@ public class TdbConnector {
public static List<QuerySolution> executeSPARQLResults(Query q) {
List<QuerySolution> l = new ArrayList<QuerySolution>();
long start = System.currentTimeMillis();
try (QueryExecution qexec = QueryExecutionFactory.create(q, getModel())) {
ResultSet results = qexec.execSelect();
for ( ; results.hasNext() ; )
......@@ -201,6 +205,10 @@ public class TdbConnector {
} catch (Exception e) {
logger.debug("Unexpected error", e);
}
finally {
long duration = System.currentTimeMillis() - start;
logger.debug("Time of query execution (pure): " + duration);
}
return l;
}
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri id="User Entered Import Resolution" name="http://purl.oclc.org/NET/muo/muo-vocab.owl" uri="muo-vocab.rdf"/>
<uri id="User Edited Redirect" name="http://is.muni.cz/www/255658/sbms/v2_0/SemanticBMS" uri="SemanticBMS.rdf"/>
<uri id="User Edited Redirect" name="http://is.muni.cz/www/255658/sbms/v2_0/SemanticBIM" uri="SemanticBIM.rdf"/>
<uri id="User Edited Redirect" name="http://purl.oclc.org/NET/muo/muo#" uri="muo-vocab.rdf"/>
<group id="Folder Repository, directory=, recursive=true, Auto-Update=true, version=2" prefer="public" xml:base="">
<uri id="Automatically generated entry, Timestamp=1492092294647" name="http://purl.oclc.org/NET/muo/ucum/" uri="ucum-instances.rdf"/>
<uri id="Automatically generated entry, Timestamp=1492092294647" name="http://purl.oclc.org/NET/ssnx/ssn" uri="ssn.rdf"/>
<uri id="Automatically generated entry, Timestamp=1492092294647" name="http://www.loa.istc.cnr.it/ontologies/DUL.owl" uri="DUL.rdf"/>
<uri id="Automatically generated entry, Timestamp=1492092294647" name="duplicate:http://www.w3.org/2002/07/owl" uri="SemanticBIM.rdf"/>
<uri id="Automatically generated entry, Timestamp=1492092294647" name="duplicate:http://www.w3.org/2002/07/owl" uri="SemanticBMS.rdf"/>
<uri id="Automatically generated entry, Timestamp=1504809500012" name="http://purl.oclc.org/NET/muo/ucum/" uri="ucum-instances.rdf"/>
<uri id="Automatically generated entry, Timestamp=1504809500012" name="http://purl.oclc.org/NET/ssnx/ssn" uri="ssn.rdf"/>
<uri id="Automatically generated entry, Timestamp=1504809500012" name="http://www.loa.istc.cnr.it/ontologies/DUL.owl" uri="DUL.rdf"/>
<uri id="Automatically generated entry, Timestamp=1504809500012" name="duplicate:http://www.w3.org/2002/07/owl" uri="SemanticBIM.rdf"/>
<uri id="Automatically generated entry, Timestamp=1504809500012" name="duplicate:http://www.w3.org/2002/07/owl" uri="SemanticBMS.rdf"/>
</group>
</catalog>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment