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
64b24b7b
Commit
64b24b7b
authored
Jun 14, 2016
by
akucera
Browse files
just formatting changes
parent
e3ee2ee3
Changes
5
Hide whitespace changes
Inline
Side-by-side
SemanticBMSClient/insert.html
View file @
64b24b7b
...
...
@@ -255,7 +255,7 @@ insertDP: function (dp, ba, sa, ea, ca, logId) {
background-image
:
none
;
}
#insertSingle
,
#insertBatch
{
.opDiv
{
margin-top
:
10px
;
}
...
...
SemanticBMSServer/src/main/java/cz/muni/fi/lasaris/sbms/api/DataPointsEndpoint.java
View file @
64b24b7b
...
...
@@ -168,9 +168,9 @@ public class DataPointsEndpoint {
@RolesAllowed
(
"admin"
)
@DELETE
@Path
(
"/{
datapoint.
bmsId}"
)
@Path
(
"/{bmsId}"
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
Response
RemoveDataPointInfo
(
@PathParam
(
"
datapoint.
bmsId"
)
String
bmsId
)
{
public
Response
RemoveDataPointInfo
(
@PathParam
(
"bmsId"
)
String
bmsId
)
{
System
.
out
.
println
(
bmsId
);
try
{
if
(
ModelUpdater
.
removeDataPointAssertions
(
bmsId
))
{
...
...
SemanticBMSServer/src/main/java/cz/muni/fi/lasaris/sbms/api/InfluencesEndpoint.java
View file @
64b24b7b
package
cz.muni.fi.lasaris.sbms.api
;
import
javax.annotation.security.PermitAll
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.QueryParam
;
import
javax.ws.rs.core.Response
;
@Path
(
"influence"
)
@PermitAll
public
class
InfluencesEndpoint
{
/*
public InfluenceResponse getInfluence(
@QueryParam("bmsId") String bmsIdP,
@QueryParam("scope.bimId") String scopeBimIdP,
@QueryParam("property.domain") String propDomP,
@QueryParam("property.quality") String propQualityP) {
InfluenceRequest r = new
}
TODO Vymyslet parametry u Influence - nema tam taky byt filtrovani jako vsude jinde?
*/
// Inserting and Removing of influence is be performed by DataPointsEndpoint
}
SemanticBMSServer/src/main/java/cz/muni/fi/lasaris/sbms/api/TrendsEndpoint.java
View file @
64b24b7b
...
...
@@ -123,4 +123,6 @@ final static Logger logger = Logger.getLogger(DataPointsEndpoint.class);
}
}
}
// TODO Inserting and Removing of influence is be performed by DataPointsEndpoint
}
SemanticBMSServer/src/main/java/cz/muni/fi/lasaris/sbms/model/QueryParser.java
View file @
64b24b7b
...
...
@@ -362,6 +362,16 @@ public class QueryParser {
}
}
// TRENDLOG
if
(
fields
.
contains
(
"trendId"
))
{
body
.
addTriplePattern
(
Triple
.
create
(
Var
.
alloc
(
"trend"
),
NodeFactory
.
createURI
(
NS
.
sbms
+
"trends"
),
Var
.
alloc
(
"datapoint"
)));
body
.
addTriplePattern
(
Triple
.
create
(
Var
.
alloc
(
"trend"
),
NodeFactory
.
createURI
(
NS
.
sbms
+
"hasBMSId"
),
Var
.
alloc
(
"trendId"
)));
}
return
body
;
}
...
...
@@ -471,6 +481,8 @@ public class QueryParser {
dp
.
getProperty
().
setDomain
(
getIndividual
(
gsv
(
"property.domain"
),
soln
));
}
//TODO solve trendId
return
dp
;
}
...
...
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