Search in sources :

Example 21 with RDFTermLiteral

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);
}
Also used : RDFTermURI(it.unibo.arces.wot.sepa.commons.sparql.RDFTermURI) Bindings(it.unibo.arces.wot.sepa.commons.sparql.Bindings) RDFTermLiteral(it.unibo.arces.wot.sepa.commons.sparql.RDFTermLiteral)

Example 22 with RDFTermLiteral

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);
}
Also used : RDFTermURI(it.unibo.arces.wot.sepa.commons.sparql.RDFTermURI) Bindings(it.unibo.arces.wot.sepa.commons.sparql.Bindings) RDFTermLiteral(it.unibo.arces.wot.sepa.commons.sparql.RDFTermLiteral)

Aggregations

RDFTermLiteral (it.unibo.arces.wot.sepa.commons.sparql.RDFTermLiteral)22 Bindings (it.unibo.arces.wot.sepa.commons.sparql.Bindings)19 RDFTermURI (it.unibo.arces.wot.sepa.commons.sparql.RDFTermURI)15 ErrorResponse (it.unibo.arces.wot.sepa.commons.response.ErrorResponse)7 Response (it.unibo.arces.wot.sepa.commons.response.Response)7 SubscribeResponse (it.unibo.arces.wot.sepa.commons.response.SubscribeResponse)5 UpdateResponse (it.unibo.arces.wot.sepa.commons.response.UpdateResponse)3 JsonElement (com.google.gson.JsonElement)2 JsonObject (com.google.gson.JsonObject)2 RDFTerm (it.unibo.arces.wot.sepa.commons.sparql.RDFTerm)2 Producer (it.unibo.arces.wot.sepa.pattern.Producer)2 SEPAPropertiesException (it.unibo.arces.wot.sepa.commons.exceptions.SEPAPropertiesException)1 SEPAProtocolException (it.unibo.arces.wot.sepa.commons.exceptions.SEPAProtocolException)1 SEPASecurityException (it.unibo.arces.wot.sepa.commons.exceptions.SEPASecurityException)1 QueryResponse (it.unibo.arces.wot.sepa.commons.response.QueryResponse)1 ARBindingsResults (it.unibo.arces.wot.sepa.commons.sparql.ARBindingsResults)1 BindingsResults (it.unibo.arces.wot.sepa.commons.sparql.BindingsResults)1 ApplicationProfile (it.unibo.arces.wot.sepa.pattern.ApplicationProfile)1 Font (java.awt.Font)1 GridBagConstraints (java.awt.GridBagConstraints)1