Hello all.
How can I create an RDF file using Jena and then save some data like
student name. address etc?
Please start with the documentation provided for exactly this purpose:
https://jena.apache.org/tutorials/rdf_api.html
https://jena.apache.org/getting_started/
---
A. Soroka
The University of Virginia Library
> On Jun 19, 2016, at 12:40 AM, tina sani wrote:
>
> Hello all.
> How can I create an
Actually I have already read this documentation but I did not find what I
am looking for exactly. In documentation, it includes something like
this :model.write(System.out);
which only writes a model to a file.
What I needed is to create an rdf file locally on disk using Jena code and
then store s
Can you show some actual example code that you are trying to use? Otherwise
it's difficult to say what is not right.
---
A. Soroka
The University of Virginia Library
> On Jun 19, 2016, at 10:57 AM, tina sani wrote:
>
> Actually I have already read this documentation but I did not find what I
>
I do not have currently code in hand but my scenario is that I have created
an ontology for university library having information about book details,
authors, employee working in library. I will read the file in Jena code
later.
But I want to keep track of each student login to the system i-e what
We can not help you without seeing the code. You already call
model.save() which writes the model as RDF to disk. If your file is
empty, something goes wrong with your code that adds triples to the model.
Lorenz
> I do not have currently code in hand but my scenario is that I have created
> an on
Yes. Since the rdf file is being created but is empty, that implies that the
problem lies in adding statements to the model. There are lots of examples one
can find by searching for “jena write rdf example”, including an example in the
Jena release:
https://github.com/apache/jena/blob/master/
Another, hopefully remote, possibility might be a failure to close the
output stream (if the data is smaller than the output buffer).
Dave
On 20/06/16 13:29, John A. Fereira wrote:
Yes. Since the rdf file is being created but is empty, that implies that the
problem lies in adding statements t