jena « Development « Java I/O Q&A





1. Serializing JENA OntModel Changes    stackoverflow.com

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    stackoverflow.com

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    stackoverflow.com

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?    stackoverflow.com

I have a rdf file which has format:

<rdf:RDF
xmlns:geo="xyz"
xmlns:quality="xyz"
xmlns:purl="xyz"
xmlns:swrlb="xyz"> 

  <rdf:Description rdf:about="title1">
<rdf:type rdf:resource="resource22"/>
<info:contains>fromdisk1</info:contains>
<info:has_text_value>
The location 
</info:has_text_value>
  </rdf:Description>
<rdf:Description rdf:about="title2">
<rdf:type rdf:resource="resource12"/>
<info:contains>fromdisk2</info:contains>
<info:has_text_value>
xyz 
   </info:has_text_value>
  </rdf:Description>

  </rdf:RDF>
I want to store the ...

5. Generate a .DOT file from a RDF file    stackoverflow.com

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    stackoverflow.com

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:label="XXXX">
    <rdfs:subClassOf rdf:resource="&kb;YYYY"/>
</rdfs:Class>
my ...