org.corrib.openrdf
Class OpenRDF

java.lang.Object
  extended by org.corrib.openrdf.OpenRDF

public class OpenRDF
extends java.lang.Object

This class allows of creating Model and ModelSet classes for custom configured repositories.

You can either create a Model or ModelSet providing all the parameters or providing a specification string. The specification string is of a following patter:

[NATIVE|HTTP]|[path]|[id]|[title]

For Model and ModelSet with underlying Native repository, parameters path and title are optional.

For Model and ModelSet with underlying HTTP repository, parameters id and title are optional.

Author:
Mariusz Cygan

Field Summary
static int HTTP
          HTTPRespository type
static int NATIVE
          NATIVERepository type
 
Method Summary
 org.ontoware.rdf2go.model.Model createModel(int type, java.lang.String path, java.lang.String id, java.lang.String title)
          Creates a Model.
 org.ontoware.rdf2go.model.Model createModel(java.lang.String specification)
          Creates a Model.
 org.ontoware.rdf2go.model.ModelSet createModelSet(int type, java.lang.String path, java.lang.String id, java.lang.String title)
          Creates a ModelSet.
 org.ontoware.rdf2go.model.ModelSet createModelSet(java.lang.String specification)
          Creates a Model.
static OpenRDF getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP

public static final int HTTP
HTTPRespository type

See Also:
Constant Field Values

NATIVE

public static final int NATIVE
NATIVERepository type

See Also:
Constant Field Values
Method Detail

getInstance

public static OpenRDF getInstance()

createModel

public org.ontoware.rdf2go.model.Model createModel(int type,
                                                   java.lang.String path,
                                                   java.lang.String id,
                                                   java.lang.String title)
Creates a Model.

Parameters:
type - Type of underlying repository.
path - Path or URL
id - ID of the underlying repository.
title - Title of the underlying repository.
Returns:
Model

createModel

public org.ontoware.rdf2go.model.Model createModel(java.lang.String specification)
Creates a Model.

Parameters:
specification -
Returns:
Model

createModelSet

public org.ontoware.rdf2go.model.ModelSet createModelSet(int type,
                                                         java.lang.String path,
                                                         java.lang.String id,
                                                         java.lang.String title)
Creates a ModelSet.

Parameters:
type - Type of underlying repository.
path - Path or URL
id - ID of the underlying repository.
title - Title of the underlying repository.
Returns:
ModelSet

createModelSet

public org.ontoware.rdf2go.model.ModelSet createModelSet(java.lang.String specification)
Creates a Model.

Parameters:
specification -
Returns:
Model