Reading Ontology with Jena, feeding it with RDF triples, and producing correct RDF string output.
Posted
by JonB
on Stack Overflow
See other posts from Stack Overflow
or by JonB
Published on 2010-05-18T21:52:37Z
Indexed on
2010/05/18
23:10 UTC
Read the original article
Hit count: 307
Hi,
I have an ontology, which I read in with Jena to help me scrape some RDFa triples from a website. I don't currently store these triples in a Jena model, but that is fairly straight forward to do, its on my to do next list.
The area I am struggling with, though, is to get Jena to output correct RDF for the ontology I have. The ontology uses Owl and RDFS definitions, but when I pass some example triples into the model, they don't appear correctly. Almost as if it doesn't know anything about the ontology. The output is, however, still valid RDF, just it's not coming out in the form I was hoping for.
Am I correct in thinking that Jena should be able to produce well written RDF (not just valid) about the triples I have collected, based on the ontology or does this out stretch what it is capable of?
Many thanks for any input.
© Stack Overflow or respective owner