On 1/07/2020 06:29, Tim Smith wrote:
Hi,
I am refactoring an ontology and I intended to use INSERT/DELETE queries to make it easier. However, when I execute the following query, I receive the error below:
Is the error valid in that I cannot insert into a designated graph from the SPARQL query window?
Does this same restriction hold for the SPARQL endpoint?
How do I move things between graphs in EDG?
We have some partial solutions, but only a combination of them may do what you need:
- Transform tab > Copy or Move Instances from Other Asset Collection
- Source code panel (cut/paste between two browser tabs, then save both)
- SPARQL updates
I am sure there is a lot of room for improvements here. Could you elaborate a bit on what type of data you are trying to move?
Holger
--
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CAF0WbnKb4CXbGasM1Q2j_p4tfJJuNnPZb%3Dpyn0EEO01i0MTKYw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/1cfdc63f-d7b4-57ca-2965-56084ca9b0af%40topquadrant.com.
Hi Holger,
In this case, I was aligning some of my ontologies with EDG ontologies, e.g. changing the inheritance hierarchies, converting some of the property shapes, etc... I was able to accomplish what I needed by making the target graph the current graph and importing the necessary graphs for the purpose of the insert.
Overall, I've made good use of the batch operation capabilities in TBC or direct insert/delete operations to move things between graphs or change namespaces. Ontologies are always evolving and eventually need to be refactored so moving a class and it's property shapes, etc... to another graph is a common use case.
Another common use case is to create a "mapping graph" in which I create a number of helper classes and instances to assist in mapping data sources (typically XLSX or CSV) into an ontology. I run an insert query to create the instances (or new schema) and insert the results into a target graph. I think I can do the same in EDG by making the target graph the current graph and import everything there,removing the imports when the insert is complete.
Yes, I guess working in the right active graph will put the triples to where they belong.
FWIW here is a new alternative approach for importing Excel and CSV (and JSON, XML etc) that may not require intermediate RDF representations: http://datashapes.org/active/import.html
Holger
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CAF0WbnJ1cAKcp93N%3D%2B50DEOEByyPGnh8AXC2FvGjm3OQhe2j0Q%40mail.gmail.com.