> On 17 Feb 2022, at 9:35 am, Nicholas Car <[email protected]> > wrote: > > Dear TQ, > > I need to be able to import RDF data from RDF files stored in S3 and > elsewhere on the public internet into EDG (7.1). > > > 1. Is it possible to parse RDF in ADS and write it to a graph or perhaps bulk > load it? > > Your video introducing reading data into a graph using Active Data Shapes > ("Importing Spreadsheet Data into TopBraid EDG using Active Data Shapes": > https://www.youtube.com/watch?v=Dn7O8siZpTc > <https://www.youtube.com/watch?v=Dn7O8siZpTc>) and your written examples in > documentation > (https://www.topquadrant.com/doc/7.1/scripting/services.html#example-creating-a-data-importer > > <https://www.topquadrant.com/doc/7.1/scripting/services.html#example-creating-a-data-importer>) > show reading data from CSV files using your "asSpreadsheet" function. Also, > the videos mention that data from other sources such as XML data can be > parsed but no RDF file reading is shown. > > For public RDF data on the internet, can some ADS method like this work: > > let s = IO.http({"url": "http://some-web-address.com/file/rdf-file-1.ttl > <http://some-web-address.com/file/rdf-file-1.ttl>"}) // get the content of > the RDF file > s.data // somehow write that content to graph
I cannot think of a simple way to do that with 7.1, which is why for 7.2 we are introducing a function tbs.importRDFFile that can be used to parse a file (e.g. downloaded with IO.http() directly into a target asset collection or working copy. 7.2 includes a much larger API with the prefix tbs for all kinds of basic functionality. A complex solution for 7.1 would be to write a helper SWP service and call it using graph.swp(). That SWP component could take the (Turtle) text as input, use sml:ConvertTextToRDF to parse that and finally add the triples. I cannot answer the other two questions below but hope my colleagues will respond when their day starts. Holger > > > 2. Can the AWS S3 configuration that is used to restore from a backup in an > S3 bucket be used so that ADS scripts can read from a bucket too? > > Currently the per-system or per-asset AWS configuration is for writing > backups and restoring from them only, not reading data from them. > > > 3. Is watching of objects in AWS be implemented so that Assets (Datagraphs) > can be synchronised with RDF files in a configured S3 folder? > > Thanks, > > Nick > > -- > 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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/CAP7nqh0c%3DKp5%3DorSLxQLjuihkuiqAFcHWMHEGV_riQTv-ehZQQ%40mail.gmail.com > > <https://groups.google.com/d/msgid/topbraid-users/CAP7nqh0c%3DKp5%3DorSLxQLjuihkuiqAFcHWMHEGV_riQTv-ehZQQ%40mail.gmail.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/BAD48E85-D497-43E8-8247-5A22AE49A7E6%40topquadrant.com.
