Ok I see you say tdb2 can't handle Trig? well if so you might want to write
a loader that chunks the data for you before loading it into tdb.




On Wed, Jul 31, 2013 at 5:52 AM, Adeeb Noor <[email protected]> wrote:

> Hi Marco:
>
> Thanks for the response. I am currently using TDB but the problem is as I
> said my data is around 17G and in Trig format. I never succeed.
>
> I cannot use the tdb2 as the file format is Trig. Does that make sense ?
>
>
> On Wed, Jul 31, 2013 at 3:41 AM, Marco Neumann <[email protected]
> >wrote:
>
> > try to use the tdb or tdb2 loader instead
> >
> >
> > On Wed, Jul 31, 2013 at 5:39 AM, Adeeb Noor <[email protected]>
> > wrote:
> >
> > > Hi Dave:
> > >
> > > Thanks for the response. Here is my code:
> > >
> > > public class testTDB {
> > >
> > > public static void main(String[] args) {
> > >
> > > String directory = "./tdb";
> > >
> > >  Dataset dataset = TDBFactory.createDataset(directory);
> > >
> > >   Model tdb = dataset.getDefaultModel();
> > >
> > >  String source = "/Users/adeebnoor/Downloads/Ontologies/umls.trig";
> > >
> > >  FileManager.get().readModel(tdb, source, "TriG" );
> > >
> > >  tdb.close();
> > >
> > >  dataset.close();
> > >
> > > }
> > >
> > >
> > > I got this error:
> > >
> > > Exception in thread "main"
> > com.hp.hpl.jena.shared.NoReaderForLangException:
> > > TriG
> > >
> > > at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(
> > > RDFReaderFImpl.java:100)
> > >
> > > at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:276)
> > >
> > > at
> com.hp.hpl.jena.util.FileManager.readModelWorker(FileManager.java:403)
> > >
> > > at com.hp.hpl.jena.util.FileManager.readModel(FileManager.java:342)
> > >
> > >  at ddid.testTDB.main(testTDB.java:19)
> > >
> > >
> > > Then I remove the Trig string pramater from the Filemangager method:
> > > FileManager.get().readModel(tdb, source );
> > >
> > > and the program seems to be running and taking the whole memory but I
> got
> > > this warning message:
> > >
> > > 03:37:31 WARN  riot                      :: Only triples or default
> graph
> > > data expected : named graph data ignored
> > >
> > > After waiting the program to finish I check it the TDB and there was
> > > nothing on it.
> > >
> > > what do you think.
> > >
> > > Thanks
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Wed, Jul 31, 2013 at 2:17 AM, Dave Reynolds <
> > [email protected]
> > > >wrote:
> > >
> > > > On 31/07/13 00:09, Adeeb Noor wrote:
> > > >
> > > >> Hi All:
> > > >>
> > > >> I have a trig file (rdf) that is sized 17GB, I was wondering if Jena
> > has
> > > >> triple store that can load this data. I know that Jena supports trig
> > > >> format
> > > >> but I am not sure about the size-wise.
> > > >>
> > > >> If not, can you point me out to a free triple store that is
> compatible
> > > >> with
> > > >> Jene as my project structure is based all on Jena.
> > > >>
> > > >
> > > > I would have thought you could load that in to TDB just fine.  I
> would
> > > > guess that to be around 100m triples.
> > > >
> > > > Dave
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Adeeb Noor
> > > Ph.D. Candidate
> > > Dept of Computer Science
> > > University of Colorado at Boulder
> > > Cell: 571-484-3303
> > > Email: [email protected]
> > >
> >
> >
> >
> > --
> >
> >
> > ---
> > Marco Neumann
> > KONA
> >
>
>
>
> --
> Adeeb Noor
> Ph.D. Candidate
> Dept of Computer Science
> University of Colorado at Boulder
> Cell: 571-484-3303
> Email: [email protected]
>



-- 


---
Marco Neumann
KONA

Reply via email to