Document Format of TopicTopic DTD<?xml encoding="UTF-8"?> <!ELEMENT topic (viewpoint?,relatedTopic*,entity*)> <!ATTLIST topic href CDATA #IMPLIED name CDATA #IMPLIED> <!ELEMENT viewpoint (#PCDATA)> <!ATTLIST viewpoint href CDATA #REQUIRED> <!ELEMENT relatedTopic (#PCDATA)> <!ATTLIST relatedTopic href CDATA #REQUIRED relationType (includes|includedIn|referTo|seeAlso) #REQUIRED action (delete|insert) #IMPLIED> <!ELEMENT entity EMPTY> <!ATTLIST entity href CDATA #REQUIRED action (delete|insert) #IMPLIED> Example of Topic<?xml version="1.0" encoding="UTF-8"?> <topic name="World Wide Web"> <viewpoint href="http://tech-ada.utt.fr/viewpoint/1/">Software features</viewpoint> <relatedTopic relationType="includes" href="http://tech-ada.utt.fr/viewpoint/1/topic/2/">Web browser</relatedTopic> <relatedTopic relationType="includes" href="http://tech-ada.utt.fr/viewpoint/1/topic/3/">Web server</relatedTopic> <entity href="http://tech-ada.utt.fr/entity/www/" /> </topic> XML structure of Topic
Topic RelationShipsThe following table shows the representation of Topic "Topic D". <?xml version="1.0" encoding="UTF-8"?> <topic href="http://tech-ada.utt.fr/viewpoint/1/topic/1/" name="Topic D"> <viewpoint href="http://tech-ada.utt.fr/viewpoint/1/">HyperTopic Demonstration</viewpoint> <relatedTopic relationType="includedIn" href="http://tech-ada.utt.fr/viewpoint/1/topic/2/">Topic B</relatedTopic> <relatedTopic relationType="referTo" href="http://tech-ada.utt.fr/viewpoint/1/topic/3/">Topic C</relatedTopic> <relatedTopic relationType="includes" href="http://tech-ada.utt.fr/viewpoint/1/topic/4/">Topic E</relatedTopic> <relatedTopic relationType="seeAlso" href="http://tech-ada.utt.fr/viewpoint/1/topic/5/">Topic F</relatedTopic> <entity href="http://tech-ada.utt.fr/entity/AMAYA/" /> </topic> The following table shows the representation of Topic "Topic E" <?xml version="1.0" encoding="UTF-8"?> <topic href="http://tech-ada.utt.fr/viewpoint/1/topic/4/" name="Topic E"> <viewpoint href="http://tech-ada.utt.fr/viewpoint/1/">HyperTopic Demonstration</viewpoint> <relatedTopic relationType="includedIn" href="http://tech-ada.utt.fr/viewpoint/1/topic/1/">Topic D</relatedTopic> <relatedTopic relationType="includes" href="http://tech-ada.utt.fr/viewpoint/1/topic/7/">Topic H</relatedTopic> <entity href="http://tech-ada.utt.fr/entity/AMAYA/" /> </topic> Add a New TopicAdd a new topic. Argumentsviewpointid (Required)
Note: This method requires an HTTP POST request. Example RequestPOST /viewpoint/1/topic/ <?xml version="1.0" encoding="UTF-8"?> <topic name="World Wide Web"> <viewpoint href="http://tech-ada.utt.fr/viewpoint/1/">Software features</viewpoint> </topic> Example ResponseLocation: /viewpoint/1/topic/1/ Status Codes201: Created
400: Bad Request
500: Internal Server Error
503: Service currently unavailable
Delete a TopicDelete a specific topic. To keep the history trace, this method will not delete the topic instead it will set the specific topic as inactive. Argumentsviewpointid (Required)
topicid (Required)
Note: This method requires an HTTP DELETE request. Example RequestDELETE /viewpoint/1/topic/1/ Example ResponseThis method has no specific response - It returns an empty sucess response if it completes without error. 200 OK Status Codes200: OK
404: Not Found
500: Internal Server Error
503: Service currently unavailable
Get a TopicGet a specific topic information with related topics and entities. Argumentsviewpointid (Required)
topicid (Required)
Note: This method requires an HTTP GET request. Example RequestGET /viewpoint/1/topic/1/ Example Response<?xml version="1.0" encoding="UTF-8"?> <topic name="World Wide Web"> <viewpoint href="http://tech-ada.utt.fr/viewpoint/1/">Software features</viewpoint> <relatedTopic relationType="includes" href="http://tech-ada.utt.fr/viewpoint/1/topic/2/">Web browser</relatedTopic> <relatedTopic relationType="includes" href="http://tech-ada.utt.fr/viewpoint/1/topic/3/">Web server</relatedTopic> </topic> Status Codes200: OK
404: Not Found
500: Internal Server Error
503: Service currently unavailable
Update a TopicModify a specific topic. Argumentsviewpointid (Required)
topicid (Required)
Note: This method requires an HTTP PUT request. Example RequestPUT /viewpoint/1/topic/1/ <?xml version="1.0" encoding="UTF-8"?> <topic name="World Wide Web"> <viewpoint href="http://tech-ada.utt.fr/viewpoint/1/">Software features</viewpoint> <relatedTopic relationType="includes" href="http://tech-ada.utt.fr/viewpoint/1/topic/2/">Web browser</relatedTopic> <relatedTopic relationType="includes" href="http://tech-ada.utt.fr/viewpoint/1/topic/3/">Web server</relatedTopic> <relatedTopic relationType="includedIn" href="http://tech-ada.utt.fr/viewpoint/1/topic/4/">Internet</relatedTopic> </topic> Example ResponseThis method has no specific response - It returns an empty sucess response if it completes without error. 205 Reset Content Status Codes205: Reset Content
400: Bad Request
404: Not Found
500: Internal Server Error
503: Service currently unavailable
Update a Topic PartialModify a specific topic's relation ship with other topics. Argumentsviewpointid (Required)
topicid (Required)
Note: This method requires an HTTP POST request. Example RequestThe following example shows how to create relation between topic #1 and topic #2, and delete relation between topic #1 and topic #3. POST /viewpoint/1/topic/1/ <?xml version="1.0" encoding="UTF-8"?> <topic name="World Wide Web"> <relatedTopic relationType="includes" href="http://tech-ada.utt.fr/viewpoint/1/topic/2/" action="insert">Web browser</relatedTopic> <relatedTopic relationType="includes" href="http://tech-ada.utt.fr/viewpoint/1/topic/3/" action="delete">Web server</relatedTopic> </topic> Example ResponseThis method has no specific response - It returns an empty sucess response if it completes without error. 205 Reset Content Status Codes205: Reset Content
400: Bad Request
404: Not Found
500: Internal Server Error
503: Service currently unavailable
Traces![]() |