I am using a tool called TopQuadrant to create a Symantic Web (RDF/OWL) Ontology. This tool allows for import of data from MS Excel. My spreadsheet is basically a two-column sheet with the first column being an XPATH expression and the second column being a description of that XPATH.
Once I import my spreadsheet, I would like to use SPARQL to iterate through the data to create an Ontology based on the values in my first column. For instance, if I had a sheet that looked as follows:
XPATH Description
Food
Food/Fruit
Food/Fruit/Apple
Food/Vegetables
Food/Vegetables/Turnips
I would like SPARQL to create my Ontology with a root class (under "Thing" of course) of 'Food', and under 'Food', 2 subclasses called 'Fruit' and 'Vegetables', and under 'Fruit' a subclass of 'Apple', and under 'Vegetables' a sublcass of Turnips... going on down the line.
Is this something that SPARQL can do?
Thanks in advance.