com.hp.hpl.mesa.rdf.jena.sample
Class Sample2

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.sample.Sample2

public class Sample2
extends java.lang.Object

Simple example of application defined enhanced resources..

This example uses an enhanced resource class Month. An enhanced resource class encapsulates an ordinary resource and adds extra behaviour to it. A month resource is a sequence with a member for each day of the month. The enhanced functionality is to create a sequence with the correct number of days for a given month in a given year.

This class creates a month as anonymous resource, then uses a factory object to retrieve it from the model.

Version:
Release='$Name: $' Revision='$Revision: 1.2 $' Date='$Date: 2002/01/05 11:54:14 $'
Author:
bwm

Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments


Copyright © 2001 Hewlett-Packard. All Rights Reserved.