Import RDF File

Import RDF File is available under the Import tab. Any asset collection can import data from an external RDF file. The Import > Import RDF File link shows a screen where the Browse button opens a dialog to select the external RDF file.

TopBraid EDG Import RDF File Page

TopBraid EDG Import RDF File Page

Choose the RDF file and select its Format, noting that the file may be compressed. The compression formats ZIP (.zip), gzip (.ttl.gz etc) and bzip2 (.ttl.bz2 etc) are supported. Only the first file in a ZIP archive will be imported.

Then, if applicable select the following options:

  • Record each new triple in change history (use with care for large RDF files!). If importing into a Working Copy, history will always be recorded and this option is greyed out.

  • Direct streaming import into production copy, available only for users with at least Managers permission. Direct streaming is not available for import into Working Copies.

  • Perform constraint validation only Validate the RDF file content combined with the existing collection data This is necessary because some violations only become apparent for the combined data.

Click Finish to complete the the operation. A message will indicate whether the import was successful. For large imports, this process may take minutes. Please check the status on the Reports tab for File History Report.

Note

  • If an RDF file contains any “schema” definitions such as classes, properties, or shapes, then it can only be imported it into an Ontologies collection.

  • If an RDF file contains both “instances” and “schema”, either split the file before import or follow instructions in `Copy or Move Instances from Other Asset Collection`_.

When importing RDF into a Working Copy, the addition of each triple will be recorded as an entry in the change history, where it will be available to all the relevant reports. When importing into a Production Copy, the Record each new triple in change history checkbox gives you the option of adding these to the change history;

Note

This is not recommended when importing large amounts of data.

The option of Direct streaming import into production copy imports the content much more quickly and uses less memory. This should only be used for large imports if the user is confident they do not need to do validation or clean up on the data. It’s best to perform a backup (e.g. Export RDF File) of the collection prior to importing with direct streaming or use a workflow so that reverting is possible should anything go wrong.

When importing RDF files into an Ontologies or a Taxonomies collection, EDG performs some transformations (unless the streaming import is chosen):

  • For Ontologies, “subclass of Thing” statements will be added for classes that have no parents. This is done to ensure that these classes are visible in the Class Hierarchy.

  • For Taxonomies, “narrower concept” relationships will be used to generate inverse “broader concept” relationships. This is done to ensure that such concepts are visible in the Concept Hierarchy.