Previous Topic

Next Topic

Adding Triples to the Graph

Triples are inserted a graph using the graph's add(Triple triple) method.

graph.add(addressStatement);
graph.add(streetStatement);
graph.add(cityStatement);
graph.add(stateStatement);
graph.add(postCodeStatement);

The graph now contains the following statements (where _blankNode123 represents a blank node instance):

http://example.org/staffid#85740  http://example.org/terms#address     _blankNode123
_blankNode123                     http://example.org/terms#street      "1501 Grant Avenue"
_blankNode123                     http://example.org/terms#city        "Bedford"
_blankNode123                     http://example.org/terms#state       "Massachusetts"
_blankNode123                     http://example.org/terms#postalCode  "01730"

See Also

JRDF Tutorial

Prerequisites

Obtaining a Session from a Kowari Server

Comparison of JRDF Graph Implementations

Creating the Graph

Creating Nodes and Triples

Searching the Graph

Reify Triples

Removing Triples from the Graph

Latest News

Kowari 1.1.0 Pre-release 1 Released

Kowari 1.0.5 Released

Kowari 1.0.4.1 Released

Kowari 1.0.4 Released

DAWG Evaluates iTQL

Kowari article in XML.com

Kowari mentioned on XML.com

Kowari 1.0.3 Released

Kowari Lite Introduced

Kowari 1.0.2 Released

Kowari 1.0.1 Released

View all news items


Open Source logo Tucana Technologies Logo SourceForge.net Logo

© 2001-2004 Tucana Technologies, Inc. Some rights reserved.