jena « Development « Java I/O Q&A

1. Serializing JENA OntModel Changes

I need to keep a couple of [Jena] Models (OntModels, specifically) synchronized across a socket, and I'd like to do this one change at a time (for various reasons -- one ...

2. Synchronizing Jena OntModels with bnodes

This question relates to rcreswick's question on Serializing Jena OntModel Changes. I have Jena models on two (or more) machines that need to remain synchronized over sockets. ...

3. how to get the base namespace from an OWL ontology file in java with jena

I'm new to Jena API's , I'm trying to figure out a way to get the base Namespace from a OWL ontology file, without using DOM or similar but just using ...

4. Jena Java Api to read RDF file?

I have a rdf file which has format:


  <rdf:Description rdf:about="title1">
<rdf:type rdf:resource="resource22"/>
The location 
<rdf:Description rdf:about="title2">
<rdf:type rdf:resource="resource12"/>

I want to store the ...

5. Generate a .DOT file from a RDF file

Hi, I have an RDF file, from which I would like to generate the .Dot file. I know that plugin OWLViz for Protégé allows to view the graph, but in my case ...

6. to parse .rdfs file

below is my .rdfs file. i need to get YYYY if my input is XXXX. How do i do it.

<rdfs:Class rdf:about="&kb;XXXX"
    <rdfs:subClassOf rdf:resource="&kb;YYYY"/>
my ...