Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Adam Kučera
semanticBMS
Commits
7596c4a3
Commit
7596c4a3
authored
Jan 05, 2018
by
Admin
Browse files
Merge branch 'master' of
https://gitlab.fi.muni.cz/xkucer16/semanticBMS.git
parents
5ef24f0d
3f7accae
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
7596c4a3
...
...
@@ -2,8 +2,8 @@
Welcome to the Semantic BMS framework project site.
The SemanticBMS project aims to provide semantic information for building
automation data. More details about the topic can be found in
following pape
r:
http://
link.springer.com/chapter/10.1007/978-3-319-31165-4_5
automation data. More details about the topic can be found in
the doctoral thesis of the autho
r:
http
s
://
is.muni.cz/th/255658/fi_d/
The Source files in this repository are proof-of-concept implementations of following
components of the middleware layer:
...
...
SemanticAPI/src/main/java/cz/muni/fi/lasaris/sbms/semantics/logic/TdbConnector.java
View file @
7596c4a3
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
;
}
...
...
SemanticAPI/src/main/resources/RDF/catalog-v001.xml
View file @
7596c4a3
<?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=1
492092294647
"
name=
"http://purl.oclc.org/NET/muo/ucum/"
uri=
"ucum-instances.rdf"
/>
<uri
id=
"Automatically generated entry, Timestamp=1
492092294647
"
name=
"http://purl.oclc.org/NET/ssnx/ssn"
uri=
"ssn.rdf"
/>
<uri
id=
"Automatically generated entry, Timestamp=1
492092294647
"
name=
"http://www.loa.istc.cnr.it/ontologies/DUL.owl"
uri=
"DUL.rdf"
/>
<uri
id=
"Automatically generated entry, Timestamp=1
492092294647
"
name=
"duplicate:http://www.w3.org/2002/07/owl"
uri=
"SemanticBIM.rdf"
/>
<uri
id=
"Automatically generated entry, Timestamp=1
492092294647
"
name=
"duplicate:http://www.w3.org/2002/07/owl"
uri=
"SemanticBMS.rdf"
/>
<uri
id=
"Automatically generated entry, Timestamp=1
504809500012
"
name=
"http://purl.oclc.org/NET/muo/ucum/"
uri=
"ucum-instances.rdf"
/>
<uri
id=
"Automatically generated entry, Timestamp=1
504809500012
"
name=
"http://purl.oclc.org/NET/ssnx/ssn"
uri=
"ssn.rdf"
/>
<uri
id=
"Automatically generated entry, Timestamp=1
504809500012
"
name=
"http://www.loa.istc.cnr.it/ontologies/DUL.owl"
uri=
"DUL.rdf"
/>
<uri
id=
"Automatically generated entry, Timestamp=1
504809500012
"
name=
"duplicate:http://www.w3.org/2002/07/owl"
uri=
"SemanticBIM.rdf"
/>
<uri
id=
"Automatically generated entry, Timestamp=1
504809500012
"
name=
"duplicate:http://www.w3.org/2002/07/owl"
uri=
"SemanticBMS.rdf"
/>
</group>
</catalog>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment