Change Relations Predicate Vocabulary

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!!!!

0 votes

1 answers

2619 views

ANSWER



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

2 votes



That worked! Thank you so much! You're the best!
11/24/2014

Yes, she's the best ;)
11/25/2014