On 25/08/15 11:37, Ahtisham Aslam wrote:
There are multiple reasons, for example,

1-) Data set is very huge ( I extracted records (individuals) of more than
1 million students) so putting all information in one file will make the
file very huge

Put it in a triple-store -- for example, TDB. If you have so many
triples, putting them all in separate files will present you with
an unnecessary management & query burden.

You can work with TDB inside your Java/Jena program, since it
respects the Model interface.

Or you can serve it using Fuseki and query it using SPARQL, either
from the command line (using [wget or curl] or the s- utilities
provided with Fuseki) or from inside your Java/Jena code.

2-) Second,  may be someone is not interested in all data set (e.g. me as a
user need information about a student with his FName only (just for
example))

That's what queries are for. Although for a query that simple you
can just write code using a Model connected to your TDB store.

3-) As an example see the DBPedia sets are available in small sets and I
can load and locally use only required data sets instead of all

You can load all the sets into TDB. You can either load them all into
a single model (well, graph) in the TDB or you can put different
parts inside different graphs in the dataset, as you see fit.

Note also that pulling the triples apart into different files
is going to give you problems with bnodes.

Now, what you have suggested me in your answer about what to do. If you
don't mind can you tell me (some code) about how I can do this (I will be

Which part of

     For each triple in the model
         pick a name for the file
         make a new empty model
         add the triple to that model
         write the model out to the named file

is presenting you with difficulties? Be specific. It's easier to
provide help if you're specific about what you've tried and what
you don't understand.

Chris

--
"It's just the beginning we've seen." - Colosseum, /Tomorrow's Blues/

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)

Reply via email to