From: Joakim S. <joa...@bl...> - 2015-11-04 03:17:32
|
Done! Is this the correct way to export a named graph? BigdataSail bd = dm.getBigdataSail(); ExportKB export = null; AbstractTripleStore tripleStore = (AbstractTripleStore) bd.getQueryEngine().getIndexManager().getResourceLocator().locate( namespace, ITx.UNISOLATED); For some reason tripleStore is null. However I’m not sure how to set the last argument in locate( , ITx.UNISOLATED) > On Nov 3, 2015, at 3:16 PM, Bryan Thompson <br...@sy...> wrote: > > Ok. Please file a bug report for that. This is a case of overly aggressive checking. It should be allowed and just silently strip of the named graph. Please provide the full stack trace in the ticket. > > Thanks, > Bryan > > On Tuesday, November 3, 2015, Joakim Soderberg <joa...@bl... <mailto:joa...@bl...>> wrote: > Yes I tried that. It gives the following error: > > Nov 03, 2015 3:07:17 PM org.apache.catalina.core.StandardWrapperValve invoke > SEVERE: Servlet.service() for servlet [com.blippar.servlet.MinervaServlet] in context with path [/blipparwise] threw exception > java.lang.IllegalArgumentException: RDFFormat does not support quads: N-Triples (mimeTypes=text/plain; ext=nt) > at com.bigdata.rdf.sail.ExportKB.<init>(ExportKB.java:142) > > > > > >> On Nov 3, 2015, at 9:20 AM, Bryan Thompson <br...@sy... <javascript:_e(%7B%7D,'cvml','br...@sy...');>> wrote: >> >> Have you tried using a triples only format then? It will probably work and strip off the named graph. >> >> Bryan >> >> ---- >> Bryan Thompson >> Chief Scientist & Founder >> SYSTAP, LLC >> 4501 Tower Road >> Greensboro, NC 27410 >> br...@sy... <javascript:_e(%7B%7D,'cvml','br...@sy...');> >> http://blazegraph.com <http://blazegraph.com/> >> http://blog.blazegraph.com <http://blog.blazegraph.com/> >> >> Blazegraph™ <http://www.blazegraph.com/> is our ultra high-performance graph database that supports both RDF/SPARQL and Tinkerpop/Blueprints APIs. Blazegraph is now available with GPU acceleration using our disruptive technology to accelerate data-parallel graph analytics and graph query. >> CONFIDENTIALITY NOTICE: This email and its contents and attachments are for the sole use of the intended recipient(s) and are confidential or proprietary to SYSTAP. Any unauthorized review, use, disclosure, dissemination or copying of this email or its contents or attachments is prohibited. If you have received this communication in error, please notify the sender by reply email and permanently delete all copies of the email and its contents and attachments. >> >> >> >> On Tue, Nov 3, 2015 at 12:18 PM, Joakim Soderberg <joa...@bl... <javascript:_e(%7B%7D,'cvml','joa...@bl...');>> wrote: >> RIght, but I want to have quads in my KB but export as triples. >> >> >> >>> On Nov 2, 2015, at 3:52 PM, Bryan Thompson <br...@sy... <javascript:_e(%7B%7D,'cvml','br...@sy...');>> wrote: >>> >>> The ExportKB class works for both triples and quads. >>> >>> Just specify an RDFFormat that supports quads. >>> >>> Bryan >>> >>> ---- >>> Bryan Thompson >>> Chief Scientist & Founder >>> SYSTAP, LLC >>> 4501 Tower Road >>> Greensboro, NC 27410 >>> br...@sy... <javascript:_e(%7B%7D,'cvml','br...@sy...');> >>> http://blazegraph.com <http://blazegraph.com/> >>> http://blog.blazegraph.com <http://blog.blazegraph.com/> >>> >>> Blazegraph™ <http://www.blazegraph.com/> is our ultra high-performance graph database that supports both RDF/SPARQL and Tinkerpop/Blueprints APIs. Blazegraph is now available with GPU acceleration using our disruptive technology to accelerate data-parallel graph analytics and graph query. >>> CONFIDENTIALITY NOTICE: This email and its contents and attachments are for the sole use of the intended recipient(s) and are confidential or proprietary to SYSTAP. Any unauthorized review, use, disclosure, dissemination or copying of this email or its contents or attachments is prohibited. If you have received this communication in error, please notify the sender by reply email and permanently delete all copies of the email and its contents and attachments. >>> >>> >>> >>> On Mon, Nov 2, 2015 at 5:45 PM, Joakim Soderberg <joa...@bl... <javascript:_e(%7B%7D,'cvml','joa...@bl...');>> wrote: >>> Hi, >>> My KB uses named graphs and therefore blazegraph.properties has setting: com.bigdata.rdf.store.AbstractTripleStore.quads=true >>> >>> which entails that I can’t export the KB as as triples: >>> ExportKB export = new ExportKB( bd.getDatabase(), outFile , RDFFormat.NTRIPLES, false); >>> >>> since they are quads. >>> >>> Is it possible to come around this? I.e. having a quad KB export as triples? >>> >>> >>> /J >>> >>>> On Oct 26, 2015, at 4:57 AM, Bryan Thompson <br...@sy... <javascript:_e(%7B%7D,'cvml','br...@sy...');>> wrote: >>>> >>>> It depends. One (offline) procedure is outlined here: >>>> >>>> - https://wiki.blazegraph.com/wiki/index.php/DataMigration <https://wiki.blazegraph.com/wiki/index.php/DataMigration> >>>> >>>> Different procedures might be appropriate for export of a named graph from a quads namespace or export while the database is online. >>>> >>>> Thanks, >>>> Bryan >>>> >>>> ---- >>>> Bryan Thompson >>>> Chief Scientist & Founder >>>> SYSTAP, LLC >>>> 4501 Tower Road >>>> Greensboro, NC 27410 >>>> br...@sy... <javascript:_e(%7B%7D,'cvml','br...@sy...');> >>>> http://blazegraph.com <http://blazegraph.com/> >>>> http://blog.blazegraph.com <http://blog.blazegraph.com/> >>>> >>>> Blazegraph™ <http://www.blazegraph.com/> is our ultra high-performance graph database that supports both RDF/SPARQL and Tinkerpop/Blueprints APIs. Blazegraph is now available with GPU acceleration using our disruptive technology to accelerate data-parallel graph analytics and graph query. >>>> CONFIDENTIALITY NOTICE: This email and its contents and attachments are for the sole use of the intended recipient(s) and are confidential or proprietary to SYSTAP. Any unauthorized review, use, disclosure, dissemination or copying of this email or its contents or attachments is prohibited. If you have received this communication in error, please notify the sender by reply email and permanently delete all copies of the email and its contents and attachments. >>>> >>>> >>>> >>>> On Fri, Oct 23, 2015 at 2:06 PM, Joakim Soderberg <joa...@bl... <javascript:_e(%7B%7D,'cvml','joa...@bl...');>> wrote: >>>> Hi, >>>> What is the recommended (fastest) way to export data from a KB? I am currently using blazegraph 1.52 >>>> >>>> thanks >>>> joakim >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Bigdata-developers mailing list >>>> Big...@li... <javascript:_e(%7B%7D,'cvml','Big...@li...');> >>>> https://lists.sourceforge.net/lists/listinfo/bigdata-developers <https://lists.sourceforge.net/lists/listinfo/bigdata-developers> >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Bigdata-developers mailing list >>> Big...@li... <javascript:_e(%7B%7D,'cvml','Big...@li...');> >>> https://lists.sourceforge.net/lists/listinfo/bigdata-developers <https://lists.sourceforge.net/lists/listinfo/bigdata-developers> >>> >>> >> >> > > > > -- > ---- > Bryan Thompson > Chief Scientist & Founder > SYSTAP, LLC > 4501 Tower Road > Greensboro, NC 27410 > br...@sy... <mailto:br...@sy...> > http://blazegraph.com <http://blazegraph.com/> > http://blog.blazegraph.com <http://blog.blazegraph.com/> > > Blazegraph™ <http://www.blazegraph.com/> is our ultra high-performance graph database that supports both RDF/SPARQL and Tinkerpop/Blueprints APIs. Blazegraph is now available with GPU acceleration using our disruptive technology to accelerate data-parallel graph analytics and graph query. > CONFIDENTIALITY NOTICE: This email and its contents and attachments are for the sole use of the intended recipient(s) and are confidential or proprietary to SYSTAP. Any unauthorized review, use, disclosure, dissemination or copying of this email or its contents or attachments is prohibited. If you have received this communication in error, please notify the sender by reply email and permanently delete all copies of the email and its contents and attachments. > > > |