Loading SemanticAPI/src/main/java/cz/muni/fi/lasaris/sbms/semantics/logic/BodyBuilders.java +11 −10 Original line number Diff line number Diff line Loading @@ -38,16 +38,6 @@ public class BodyBuilders { NodeFactory.createURI(NS.sbms + "hasBMSId"), Var.alloc(gsv("bmsId")))); if(fields.contains("type")) { setTypeClause(body, "datapoint", gsv("type"), NS.sbms + "DataPoint", NS.sbms + "DataPoint"); } if(dp.getType() != null) { body.addTriplePattern(Triple.create(Var.alloc("datapoint"), NodeFactory.createURI(NS.rdf + "type"), NodeFactory.createURI(NS.sbms + dp.getType()))); } body.addTriplePattern(Triple.create(Var.alloc("datapoint"), NodeFactory.createURI(NS.sbms + "expressesObservation"), Var.alloc("obs"))); Loading @@ -59,6 +49,17 @@ public class BodyBuilders { ); } // type clauses should not be first in the query as it significantly decreases performance if(fields.contains("type")) { setTypeClause(body, "datapoint", gsv("type"), NS.sbms + "DataPoint", NS.sbms + "DataPoint"); } if(dp.getType() != null) { body.addTriplePattern(Triple.create(Var.alloc("datapoint"), NodeFactory.createURI(NS.rdf + "type"), NodeFactory.createURI(NS.sbms + dp.getType()))); } if(fields.contains("source.bimId") || fields.contains("source.type") || fields.contains("source.location") Loading SemanticAPI/src/main/resources/semantics.properties +2 −1 Original line number Diff line number Diff line Loading @@ -5,5 +5,6 @@ auth.propertiesAuth.users=user:resu|admin:nimda|adam:mada auth.propertiesAuth.roles.user=user|adam auth.propertiesAuth.roles.admin=admin tdb.path=C:/Skola/sbms/data/perf_test/tdb #tdb.path=C:/Skola/sbms/data/perf_test/tdb tdb.path=C:/Users/adamk/Documents/muni/PhD/SemanticBMS/tdb/data/perf_test/tdb #tdb.path=C:/Skola/sbms/tdb No newline at end of file Loading
SemanticAPI/src/main/java/cz/muni/fi/lasaris/sbms/semantics/logic/BodyBuilders.java +11 −10 Original line number Diff line number Diff line Loading @@ -38,16 +38,6 @@ public class BodyBuilders { NodeFactory.createURI(NS.sbms + "hasBMSId"), Var.alloc(gsv("bmsId")))); if(fields.contains("type")) { setTypeClause(body, "datapoint", gsv("type"), NS.sbms + "DataPoint", NS.sbms + "DataPoint"); } if(dp.getType() != null) { body.addTriplePattern(Triple.create(Var.alloc("datapoint"), NodeFactory.createURI(NS.rdf + "type"), NodeFactory.createURI(NS.sbms + dp.getType()))); } body.addTriplePattern(Triple.create(Var.alloc("datapoint"), NodeFactory.createURI(NS.sbms + "expressesObservation"), Var.alloc("obs"))); Loading @@ -59,6 +49,17 @@ public class BodyBuilders { ); } // type clauses should not be first in the query as it significantly decreases performance if(fields.contains("type")) { setTypeClause(body, "datapoint", gsv("type"), NS.sbms + "DataPoint", NS.sbms + "DataPoint"); } if(dp.getType() != null) { body.addTriplePattern(Triple.create(Var.alloc("datapoint"), NodeFactory.createURI(NS.rdf + "type"), NodeFactory.createURI(NS.sbms + dp.getType()))); } if(fields.contains("source.bimId") || fields.contains("source.type") || fields.contains("source.location") Loading
SemanticAPI/src/main/resources/semantics.properties +2 −1 Original line number Diff line number Diff line Loading @@ -5,5 +5,6 @@ auth.propertiesAuth.users=user:resu|admin:nimda|adam:mada auth.propertiesAuth.roles.user=user|adam auth.propertiesAuth.roles.admin=admin tdb.path=C:/Skola/sbms/data/perf_test/tdb #tdb.path=C:/Skola/sbms/data/perf_test/tdb tdb.path=C:/Users/adamk/Documents/muni/PhD/SemanticBMS/tdb/data/perf_test/tdb #tdb.path=C:/Skola/sbms/tdb No newline at end of file