cancel
Showing results for 
Search instead for 
Did you mean: 

Using Service > Create Relation do I need to explicitly create both incoming and outgoing relation?

karl_harris_
Star Collaborator
Star Collaborator

I am creating a relation between two documents with Services>Create Relation. How do I specify the predicate so both incoming and outgoing relations are created correctly.

I have used the String IsBaseOn in the predicate and when the relation is created IsBasedOn is the predicate for both directions of the created relation.

I sense there needs to be some type of indirection used to identify the predicate based on the message.en/fr/current language translation system but I can't see to find a reference to how to use label.predicate.... vocabularies.

1 ACCEPTED ANSWER

karl_harris_
Star Collaborator
Star Collaborator

Found that: http://purl.org/dc/terms/References and it's relatives works in the Service>Create Relation Predicate and creates incoming and outgoing relations.

View answer in original post

2 REPLIES 2

karl_harris_
Star Collaborator
Star Collaborator

Found that: http://purl.org/dc/terms/References and it's relatives works in the Service>Create Relation Predicate and creates incoming and outgoing relations.

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

One relation does create both incoming and outgoing relations. When displaying them in the UI, a cheap trick is used to display a different label by fetching labels from two distinct vocabularies.

The directories content is visible here: https://github.com/nuxeo/nuxeo-features/tree/master/nuxeo-platform-relations/nuxeo-platform-relation...

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.