use of it.unibo.arces.wot.sepa.commons.sparql.Bindings in project SEPA by arces-wot.
the class ActionListener method startListeningForAction.
public void startListeningForAction(String actionURI) throws SEPAProtocolException, SEPASecurityException {
if (actionListener.containsKey(actionURI))
return;
WoTActionListener listener = new WoTActionListener();
Bindings bindings = new Bindings();
bindings.addBinding("action", new RDFTermURI(actionURI));
listener.subscribe(bindings);
actionListener.put(actionURI, listener);
}
use of it.unibo.arces.wot.sepa.commons.sparql.Bindings in project SEPA by arces-wot.
the class ThingDescription method addProperty.
public void addProperty(String property, String name, String dataType, String stability, String writable, String value) {
Bindings bind = new Bindings();
bind.addBinding("thing", thing);
bind.addBinding("property", new RDFTermURI(property));
bind.addBinding("name", new RDFTermLiteral(name));
bind.addBinding("stability", new RDFTermLiteral(stability));
bind.addBinding("writable", new RDFTermLiteral(writable));
bind.addBinding("dataType", new RDFTermURI(dataType));
bind.addBinding("value", new RDFTermLiteral(value));
properties.update(bind);
}
use of it.unibo.arces.wot.sepa.commons.sparql.Bindings in project SEPA by arces-wot.
the class ThingDescription method addTargetProperty.
public void addTargetProperty(String action_OR_event, String property) {
Bindings bind = new Bindings();
bind.addBinding("action_OR_event", new RDFTermURI(action_OR_event));
bind.addBinding("property", new RDFTermURI(property));
targetProperties.update(bind);
}
use of it.unibo.arces.wot.sepa.commons.sparql.Bindings in project SEPA by arces-wot.
the class ThingDescription method addEvent.
public void addEvent(String event, String name) {
Bindings bind = new Bindings();
bind.addBinding("thing", thing);
bind.addBinding("event", new RDFTermURI(event));
bind.addBinding("name", new RDFTermLiteral(name));
events.update(bind);
}
Aggregations