...
C | Verb | URL | Description | Mandatory parameters | Optional parameters | Sorting fields | Response Data | Formats | Response codes |
---|
•
| GET
| /communities/{id}/relations
| Return entities according to relation and parameters specified
| id property
| rtype rfield | - | ontains entities selected and sorted in conformance to request parameters. For more details see description of rtype andrfield .
| json xml
| 200, 204, 400, 401, 403, 500 |
Mandatory parameters
Parameter | Description | Values | Example |
---|
property | Return entities satisfying requested property relation | Structural properties ds:isPartOfSite ds:isPartOfCommunity ds:isPartOfCollection ds:isPartOfItem ds:isPartOfBundle ds:hasCommunity ds:hasCollection ds:hasItem ds:hasBundle ds:hasBitstream ds:hasBitstreamFormat
Communities and collections ds:logo
Bistream format ds:support ds:fileExtension ds:mimeType
Bitstream ds:messageDigest ds:messageDigestAlgorithm ds:messageDigestOriginator ds:size
Eperson ds:language
| property=ds:hasCommunity - return subcommunities of a community property=ds:isPartOfCommunity - return communities current community is part of (children) property=ds:hasCollection - return collections belonging to community property=ds:hasItem - return Items belonging to community |
rtype | restriction on type - only entity with specifed type(s) would be returned | ds:Bitstream ds:Bundle ds:Collection ds:Community ds:EPerson ds:Group ds:Item ds:DSpaceObject ds:Policy ds:Site ds:BitstreamFormat | | rtype=ds:Collection - return entities of Collection type |
rfield | restriction on fields - return only selected fields; by default all fields are returned | id name countitems metadata subcommunities ancestors owner other (depending on object type, will be documented later) | rfield=id,name - return only entity id and name in response |
Note: incomplete/orientative properties, for more info check [Vocabularies|http://code.google.com/p/dspace-sandbox/source/browse/#svn/modules/dspace-rdf/tags/dspace-rdf-1.5.1/src/main/java/org/dspace/adapters/rdf/vocabularies].
...