de.fuberlin.wiwiss.wiqa
Class AcceptedGraphFactory

java.lang.Object
  extended byde.fuberlin.wiwiss.wiqa.AcceptedGraphFactory

public class AcceptedGraphFactory
extends Object

Wraps a Dataset and creates AcceptedGraphs.

An application that wishes to use multiple policies on the same dataset should keep a factory around and call createAcceptedGraph(Policy) whenever a new policy is to be applied.

Version:
$Id: AcceptedGraphFactory.java,v 1.7 2006/06/14 12:40:26 cyganiak Exp $
Author:
Richard Cyganiak (richard@cyganiak.de)

Constructor Summary
AcceptedGraphFactory(Dataset dataset)
           
AcceptedGraphFactory(de.fuberlin.wiwiss.ng4j.NamedGraphSet source)
           
 
Method Summary
 AcceptedGraph createAcceptedGraph(Policy policy)
          Creates an AcceptedGraph from the unfiltered dataset based on a policy.
 Binding getContextVariables()
           
 void setContextVariable(String name, Node value)
          Sets a context variable, which is then available for use in policies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptedGraphFactory

public AcceptedGraphFactory(de.fuberlin.wiwiss.ng4j.NamedGraphSet source)
Parameters:
source - An unfiltered set of named graphs

AcceptedGraphFactory

public AcceptedGraphFactory(Dataset dataset)
Parameters:
dataset - An unfiltered ARQ dataset
Method Detail

setContextVariable

public void setContextVariable(String name,
                               Node value)
Sets a context variable, which is then available for use in policies.

Parameters:
name - The variable's name
value - The variable's value

getContextVariables

public Binding getContextVariables()
Returns:
A binding containing all context variables

createAcceptedGraph

public AcceptedGraph createAcceptedGraph(Policy policy)
Creates an AcceptedGraph from the unfiltered dataset based on a policy.

Parameters:
policy - A WIQA policy
Returns:
A filtered virtual graph