Logically speaking, you need an ontology before you convert data into triples. Otherwise, the best a software can do is assume that there is a single class and each column is a property with literal values. In other words, no relationships.
In any case, have you tried to just open the file in TBC? It should ask you if you already have an ontology. If not, it will create properties using the above assumption. The ontology must have annotations to help transform data in a more “custom” way.
Go to Help->TopBraid Composer > Importing Data Sources > Import external information > Import Spreadsheets >Handling Table documents with Semantic Tables to learn more.
Once your data is converted, query it with SPARQL.
Another option:
If you have TBC Maestro, you also have a local version of TopBraid EDG - go there from the TopBraid Applications menu in TBC.
1. Create an ontology in EDG
2. Create classes reflected in your data. If you are talking about relationships, you are likely to have more than one class. If your relationships are between members of the same class, then you only need one class.
5. Create a data graph in EDG, base it on the ontology above.
Each import creates instances of a single class that you select in the wizard.
Further, you must have a row to import for each resource you want to create.
For example, if there are two columns Person and Organization and you want this to be a relationship. You need to first create organizations, then people. You would need to import the spreadsheet twice - first time to create organizations (you would not map the Person column), second time to create people and build the relationship to organizations (you would map both, person and organization columns).
7. Switch to the SPARQL Layout to query your data