-
Notifications
You must be signed in to change notification settings - Fork 2
Annotation model
TODO: write about how annotations are stored on the client and then transferred to the server and how to work in development mode until the model is in good shape.
" - Currently, where would annotations go if I clicked on "Apply"? Is it possible for me to configure the annotations to go to my installation of the Domeo server? I would like to do this so that I can see the JSON-D and the API calls because one of the things I will need to do soon is write JSON-D for the existing set of SPL annotions and then load them into Domeo.
When you click apply the annotation you've created is persisted in the client. You will need to press the button save to be able to actually send the annotation to the server. When you save, the annotation get sent to your installation of the server, if that is the answer to your question. This is obviously working only when you build the Domeo instance with the DomeoClient code you are working on.
At that point, in order to see the json-ld that get's created and saved you can use either 'firebug' on the client and see the content of the post. Or you can look at the logs on the server. In the logs you will see something like 'Saving annotation set.. + JSON that you are trying to save.
But before that, you can keep working in development mode, when you press save you will see an alert with all the produced json (see attached shot). You can copy and paste that json on something like http://jsonlint.com to have it formatted so you can read it better.
You can therefore play with your json until you are satisfied before attempting to build the Domeo installation in the real mode."