New > Import Asset Collections from Git

This feature is available from the global New Button and can be used to create one or more asset collections from files stored on a Git versioning system.

The dialog that opens shows the list of available git repositories for the current user, as configured on the Git Integration Section. For the selected git repository, it displays a file explorer where you can select .ttl files. The tree will indicate whether a file is already linked to an asset collections - those cannot be imported again.

Once a file has been selected, an asset collection ID is suggested, which can be edited by hand if needed. When the .ttl file has been saved to Git by TopBraid and therefore contains a # collectionId annotation in the first few lines, the dialog will use the provided id. Otherwise, the suggested ID is derived from the file name.

The dialog also allows to choose the collection type, defaulting to Ontology. If the file has been saved to Git by TopBraid and contains a # collectionType annotation in the first few lines, the dialog will use that.

You can then click the Add button to schedule the creation of the asset collection once the dialog is completed.

Note

Importing files from git works best for files that are exported from TopBraid itself, in particular from other TopBraid EDG instances. However, you can also import collections from arbitrary other Turtle files. The system will try to identify a suitable graph URI by looking for an owl:Ontology or # baseURI annotation. This will then become the URI as shown under Settings > External Graph URI. That URI is then used for round-tripping whenever an asset collection is written back to git instead of the default URIs starting with urn:x-evn-master:.

See Also

Further Reading on New Button

Further Reading on TopBraid