Hi Tim,

You’re doing something that is not supported by EDG out-of-the-box.

The EDG SS importers requires headers that are mapped to properties of the 
selected class into which to map each row. The fact that the import SS by 
pattern pops up with “Spreadsheet columns” and “Target Property” is a good 
hint. The documentation is at:

https://doc.topquadrant.com/6.4/importing/ 
<https://doc.topquadrant.com/6.4/importing/>

and then select Import Spreadsheet using Pattern.

Options:

1 - Add column headers, then use Import Spreadsheet using Pattern

2 - Use an external tool to convert SS into RDF and then load that with EDG 
Import RDF (https://tarql.github.io/ <https://tarql.github.io/> is an example 
of such a tool)

3 - If you have access to TopBraid Composer you can open spreadsheets with 
“Semantic Tables”, do some conversion with SPIN/SPARQL/SHACL into 
ontology-based triples, and then EDG Import RDF.

Cheers,
David

> On 4 Aug 2020, at 19:52, Tim Smith <smith.ts...@gmail.com> wrote:
> 
> Hi,
> I'm trying to import numerous spreadsheets where some of the columns have no 
> header.  In this situation, the importer incorrectly uses the first value in 
> the column as the header/property or, more severely, it just skips the header 
> row entirely and uses the first non-null value in each  column as the 
> property.  Sometimes it does a combination of the two.  Below I describe an 
> example.  I would expect the importer to either skip or assign a name to a 
> column with no header.
> 
> Any suggestions?  I have dozens of spreadsheets to import that all have one 
> or more columns with no headers on multiple sheets.
> 
> Tim
> 
> Using the attached spreadsheet, please open it in TBC 6.4.
> 
> The first sheet has five columns where column B and D have no header.  
> <image.png>
> 
> Look at the Row0-0 instance and you will see that the values "B2" and "D2" 
> have been used as column headers/properties.
> 
> <image.png>
> 
> Now look at the Row1-0 instance.  It is a complete disaster.  Note 
> essentially the entire first data row was used as headers and in the case of 
> the Alias For column, the importer skipped the header and picked the value in 
> Row 3 to become the property for the column.  I've never seen this behavior 
> before.
> 
> <image.png>
> 
> <image.png>
> 
> And finally... look at the Row2-0 instance.  This is from the third sheet in 
> the workbook where I have manually populated the empty column headers found 
> in the last example above.  It appears to work as expected.
> <image.png>
> 
> <image.png>
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to topbraid-users+unsubscr...@googlegroups.com 
> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/CAF0Wbn%2BvLfxnhN-TqVrWdeWiZZB1kN81_MytdEa5ObpiZ1ytSg%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/CAF0Wbn%2BvLfxnhN-TqVrWdeWiZZB1kN81_MytdEa5ObpiZ1ytSg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> <Spreadsheet Import Test - TBC 6.4.xlsx>

UK +44 (0) 7788 561308
US +1 (336) 283-0808‬

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to topbraid-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/E36836AE-F90D-41FC-8087-9E3612052FDF%40topquadrant.com.

Reply via email to