cancel
Showing results for 
Search instead for 
Did you mean: 

Change Relations Predicate Vocabulary

nathan1620_
Confirmed Champ
Confirmed Champ

When I go to the Relations tab, it has the default predicate values, "references", "requires", etc. How can I change this vocabulary in order to say something like "parent of" and "has children"?

I think this is the XML extension that grabs the vocabulary:

<directory name="predicates">
  <schema>vocabulary</schema>
  <dataSource>java:/nxsqldirectory</dataSource>
  <table>relation_predicates</table>
  <idField>id</idField>
  <autoincrementIdField>false</autoincrementIdField>
  <dataFile>directories/relation_predicates.csv</dataFile>
  <createTablePolicy>on_missing_columns</createTablePolicy>
</directory>

<directory name="inverse_predicates">
  <schema>vocabulary</schema>
  <dataSource>java:/nxsqldirectory</dataSource>
  <table>relation_inverse_predicates</table>
  <idField>id</idField>
  <autoincrementIdField>false</autoincrementIdField>
  <dataFile>directories/relation_inverse_predicates.csv</dataFile>
  <createTablePolicy>on_missing_columns</createTablePolicy>
</directory>

And I have the two vocabularies that it references, so I'm guessing I just change the "labels" to be what I want them to be, but I don't know how to grab the new vocabulary that I have in my own resources as CSV files. Any ideas?

Thank you!!!!

1 ACCEPTED ANSWER

Solen_Guitter
Confirmed Champ
Confirmed Champ

Hi,

You can take a look at this how-to to add new relation types directly from the platform UI: http://doc.nuxeo.com/x/lhk5AQ.

Regards, Solen

View answer in original post

3 REPLIES 3

Solen_Guitter
Confirmed Champ
Confirmed Champ

Hi,

You can take a look at this how-to to add new relation types directly from the platform UI: http://doc.nuxeo.com/x/lhk5AQ.

Regards, Solen

That worked! Thank you so much! You're the best!

Yes, she's the best 😉