Overview
The REL Service (Relaciones) manages relationships and cross-references between entities across different modules in the HERCULES SGI platform. It enables linking and tracking connections between projects, applications, ethics reviews, intellectual property, and other entities.Base URL:
Service Path:
http://localhost:4284 (development)Service Path:
/relacionesAuthentication
All endpoints require a valid OAuth2 access token with appropriate permissions.Relations Endpoints
List Relations
Retrieve a paginated and filtered list of relations between entities.RSQL filter query for searching relations
Sorting criteria (e.g.,
id,asc)Page number (0-indexed)
Page size
Get Relation by ID
Retrieve a specific relation by its identifier.Relation identifier
Create Relation
Create a new relation between two entities.Source entity type:
PROYECTO, SOLICITUD, CONVOCATORIA, MEMORIA, INVENCION, etc.Reference ID of the source entity
Destination entity type
Reference ID of the destination entity
Relation type:
DERIVED_FROM, REQUIRES_ETHICS_REVIEW, GENERATES_IP, RELATED_TO, etc.Optional notes about the relation
Update Relation
Update an existing relation.Relation identifier to update
Delete Relation
Delete a relation between entities.Relation identifier to delete
Relation Model
Unique relation identifier
Source entity type
Source entity reference ID
Destination entity type
Destination entity reference ID
Type of relationship between entities
Optional notes or description
ISO 8601 timestamp when the relation was created
Entity Types
The following entity types can be related:| Type | Module | Description |
|---|---|---|
PROYECTO | CSP | Research project |
SOLICITUD | CSP | Grant application |
CONVOCATORIA | CSP | Grant call |
MEMORIA | ETI | Ethics review report |
EVALUACION | ETI | Ethics evaluation |
INVENCION | PII | Invention disclosure |
SOLICITUD_PROTECCION | PII | IP protection request |
PRODUCCION_CIENTIFICA | PRC | Scientific production item |
Relation Types
Common relation types include:| Type | Description |
|---|---|
DERIVED_FROM | Destination was created from source |
REQUIRES_ETHICS_REVIEW | Source requires ethics review (destination) |
GENERATES_IP | Source generated intellectual property (destination) |
RELATED_TO | Generic bidirectional relation |
PART_OF | Source is part of destination |
FUNDS | Source provides funding for destination |
RSQL Filter Examples
Common Use Cases
Track Project-to-Application Lineage
Find All Ethics Reviews for a Project
List IP Generated from a Project
Integration with Other Services
The REL service integrates with:- CSP Service - Links projects, applications, and grant calls
- ETI Service - Tracks ethics review requirements
- PII Service - Connects projects to intellectual property
- PRC Service - Associates projects with scientific production
Relations are automatically created by other services when certain actions occur (e.g., creating a project from an application), but can also be managed manually through these APIs.
Error Responses
HTTP status code
Error type
Human-readable error message
Related Documentation
CSP Service
Projects and applications
ETI Service
Ethics reviews
PII Service
Intellectual property
Architecture
System architecture and integration