Creating the GraphThe Comparison of JRDF Graph Implementations section outlines the advantages and disadvantages of the different implementation options. Choose the one that is most suitable for your requirements. You can create more than one graph and use them together. For example, you might use an iTQL graph to retrieve results from a query, load the contents into a memory graph for efficient presentation and editing, and then persist the edited statements using a client graph. JRDF Graph (Memory Graph)The following code creates a memory graph: Graph graph = new GraphImpl(); Server-side JRDF Graph (Server Graph)You need to obtain a session for your Kowari server before you can create a server graph. When obtaining the session, use The server graph is created using a After obtaining a local session, the following code creates a server graph: //create a new Model Server Backed JRDF Graph (Client Graph)You need to obtain a session for your Kowari server before you can create a client graph. When obtaining the session, use The Client Graph is created using a After obtaining a session, the following code creates a client graph: //create a new Model The code Read Only iTQL Result JRDF Graph (iTQL Graph)You need to obtain a session for your Kowari server before you can create an iTQL graph. After obtaining a session, the following code creates an iTQL graph. //create the query The iTQL query |
Latest NewsKowari 1.1.0 Pre-release 1 Released ![]() ![]() |
|||||
© 2001-2004 Tucana Technologies, Inc. Some rights reserved. |