Thanks for the speedy response. This did indeed clear things up a bit. I will have a look at the provided documentation.
Julia On Monday, December 5, 2022 at 12:25:14 PM UTC+1 [email protected] wrote: > Hi Julia, > > I checked the source code and this importer indeed requires a primary key > declaration using dash:uriStart at the source and target classes of the > crosswalk. You can in principle add such primary key declarations to any > class (using Ontologies). However, as you can see from > > DASH Constraint Components > <https://datashapes.org/constraints.html#PrimaryKeyConstraintComponent> > datashapes.org > <https://datashapes.org/constraints.html#PrimaryKeyConstraintComponent> > <https://datashapes.org/constraints.html#PrimaryKeyConstraintComponent> > <https://datashapes.org/constraints.html#PrimaryKeyConstraintComponent> > > there are additional assumptions on the URIs of the instances of such > classes. So for example if you have a Data Graph and add a primary key > constraint then all instances need to start with the provided uriStart and > also declare a value for the primary key property. Unless all your > instances have been created using that pattern, this is unlikely and would > break the mapping. I assume if you want to map from a Data Graph to an > Ontology, you mean classes, and classes cannot really have a primary key as > this would require adding a dash:uriStart to rdfs:Class and that would > break existing classes. > > TopBraid supports various other means of importing spreadsheets that are > more flexible than the above importer. If you have some basic JavaScript > experience, see > > Importing Data with ADS — edg-documentation 7.4.0 documentation > <https://archive.topquadrant.com/doc/7.4/scripting/importing.html#importing-spreadsheets> > archive.topquadrant.com > <https://archive.topquadrant.com/doc/7.4/scripting/importing.html#importing-spreadsheets> > [image: favicon.ico] > <https://archive.topquadrant.com/doc/7.4/scripting/importing.html#importing-spreadsheets> > > <https://archive.topquadrant.com/doc/7.4/scripting/importing.html#importing-spreadsheets> > > as a technique to define arbitrary importers. > > Does this help? > > Holger > > > On 5 Dec 2022, at 10:45 am, Julia S. <[email protected]> wrote: > > Hi, I am trying to upload crosswalks using spreadsheets. > > This works perfectly fine using two reference data sets (with primary > keys). > However not at all when I try to crosswalk from i.e. data graph to > ontology. > > I guess my question is this: Can I set a primary key in a data graph > and/or ontology. > I played around with the property panel to see if I could simply add it > there and the "derive missing classes" options, but have not been > successful so far. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/636d9a34-1107-41e4-8b3a-fd17890da03an%40googlegroups.com > > <https://groups.google.com/d/msgid/topbraid-users/636d9a34-1107-41e4-8b3a-fd17890da03an%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/13fde8a2-6af9-4997-b7da-697001dbdaf8n%40googlegroups.com.
