Previous Topic

Next Topic

Containers and Collections

JRDF supports RDF collections and containers, which are added using the JRDF graph's TripleFactory.

JRDF containers implement the java.util.Collection interface and include:

  • Alternative

    An unordered list of statements with no duplicates. It represents a set of objects that are semantically the same.

  • Bag

    An unordered list of statements allowing duplicates.

  • Sequence

    An ordered list of statements allowing duplicates. Statements are returned in a first in, first out (FIFO) order.

JRDF collections hold all the statements of a particular group and are represented as a linked list. Collections do not implement java.util.Collection.

In This Section

Triple Factory

See Also

Java RDF (JRDF)

JRDF APIs

JRDF Graphs

Querying a JRDF Graph

TKS Client Support

JRDF Memory Implementation

Built-in Visitor Pattern

Examples

Triple Factory

A TripleFactory, obtained from a JRDF graph, is used to insert collections and containers, and for reification of triples for the graph.

Triples are reified by providing a SubjectNode and the triple to be reified.

Open Source logo

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

© 2006 The Mulgara Project. Some rights reserved.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".