Closed LeebPhil closed 3 years ago
When i print in console with thing.toString()
it looks like:
Thing{objectType='null', objectContext=null, id='wotgimmick', title='wot gimmick', titles=null, description='This is a simple wot gimmick', descriptions=null, properties={}, actions={}, events={}, forms=[Form{href='http://localhost:8080/wotgimmick/all/properties', op=[READ_ALL_PROPERTIES, READ_MULTIPLE_PROPERTIES], subprotocol='null', contentType='application/json', optionalProperties={}}], security=[], securityDefinitions={}, base='null'}
Found the solution, constructor of Context needs a parameter.
Hey guys,
I'm trying to set the context of my implemented with the object context. It still compiles and runs, but when opening browser and looking at TD there is no context displayed. Is this a known bug?
Second question is, i want set the context of my thing pretty similar to: https://www.w3.org/TR/wot-thing-description/#saref-state-annotation-example and wanted to know how this can be done in your implementation, with a 'nested' context and mentioning ontologies like ssn or saref?
Current approach is:
But my TD looks like:
Current version: city.sane.wot-servient: 1.15
Thank you in advance for your answer.
Kind regards
Phil