use of it.unibo.arces.wot.sepa.commons.sparql.RDFTermLiteral 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.RDFTermLiteral 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