Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

pb creating the TemperatureSensorTD using the sample jsonld file #26

Open
FanoRamparany opened this issue Apr 12, 2018 · 0 comments
Open

Comments

@FanoRamparany
Copy link

Hi,
we have got an error message when creating (using POST with the payload containing the content of the TemperatureSensorTD.jsonld found in the "samples" directory) the TemperatureSensorTD. Here is the begining of the payload:

{
"@context": [
"http://w3c.github.io/wot/w3c-wot-td-context.jsonld",
{
"saref": "http://uri.etsi.org/m2m/saref#",
"Sensor": "saref:Sensor",
"Temperature": "saref:Temperature",
"unit": "saref:isMeasuredIn",
"celsius": "http://www.wurvoc.org/vocabularies/om-1.8/degree_Celsius"
}
],
"@type": "Sensor",
"name": "myTempSensor5",
"base" : "coap:///www.example.com:5687/temp",
"interaction": [
{

Here is the error message:

<title>Error 500 </title>

HTTP ERROR: 500

Problem accessing /td. Reason:

        <pre>    javax.servlet.ServletException: No instance of td:Thing found in the RDF payload</pre>
    </p>
    <hr />
    <a href="http://eclipse.org/jetty">Powered by Jetty:// 9.3.6.v20151106</a>
    <hr/>
</body>

when replacing the line "@type": "Sensor",
with :
"@type": ["Thing", "Sensor"]
Or
"@type": ["Thing"]
(found in other TD json files)
It works
We also noticed that the description of the thing (using the GET method) is slimmer than the description we provided (the payload of the POST method)

Any idea why?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant