REST Interface Description

Retrieve a type by its ID or URI

You can retrieve a type by its ID or by its URI like this:

http://[server.url]/conceptpower/rest/Type?id={URI or ID of concept}
      

Note: the URI of a concept should be encoded, for example

http://my.server.edu/conceptpower/rest/Type?id=http%3A%2F%2Fwww.digitalhps.org%2Ftypes%2FTYPE_2ef4da84-3661-4139-8336-66171085c781
          

This REST call returns the following information:

<conceptpowerReply xmlns:digitalHPS="http://www.digitalhps.org/">
    <digitalHPS:type_entry>
        <digitalHPS:type 
            type_id="2ef4da84-3661-4139-8336-66171085c781" 
            type_uri="http://www.digitalhps.org/types/TYPE_2ef4da84-3661-4139-8336-66171085c781">
                E5 Event
        </digitalHPS:type>
        <digitalHPS:description>
            This class comprises changes of states in cultural, social or physical systems, regardless of scale, brought about 
            by a series or group of coherent physical, cultural, technological or legal phenomena. Such changes of state will 
            affect instances of E77 Persistent Item or its subclasses. The distinction between an E5 Event and an E4 Period is 
            partly a question of the scale of observation. Viewed at a coarse level of detail, an E5 Event is an 'instantaneous'
             change of state. At a fine level, the E5 Event can be analysed into its component phenomena within a space and time 
             frame, and as such can be seen as an E4 Period. The reverse is not necessarily the case: not all instances of
              E4 Period give rise to a noteworthy change of state.
        </digitalHPS:description>
        <digitalHPS:creator_id>jdamerow</digitalHPS:creator_id>
        <digitalHPS:matches>http://purl.org/NET/cidoc-crm/core#E5_Event</digitalHPS:matches>
        <digitalHPS:modified_by/>
        <digitalHPS:supertype 
           type_id="0c2a2a8c-c6d8-4d25-8f07-689fd8c27b0b" 
           type_uri="http://www.digitalhps.org/types/TYPE_0c2a2a8c-c6d8-4d25-8f07-689fd8c27b0b">
                E4 Period
        </digitalHPS:supertype>
    </digitalHPS:type_entry>
</conceptpowerReply>