org.openrdf.repository.object.compiler
Class RDFDataSource

java.lang.Object
  extended by org.openrdf.repository.object.compiler.RDFDataSource

public class RDFDataSource
extends Object

Controls synchronisations issues of read and writing to the in-memory model.

Author:
James Leigh

Constructor Summary
RDFDataSource(Model model)
           
 
Method Summary
 void add(Resource subj, URI pred, Value obj)
           
 boolean contains(Resource subj, URI pred, Value obj)
           
 String getNamespace(String prefix)
           
 Map<String,String> getNamespaces()
           
 Model match(Resource subj, URI pred, Value obj, Resource... contexts)
           
 boolean remove(Resource subj, URI pred, Value obj)
           
 String setNamespace(String prefix, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFDataSource

public RDFDataSource(Model model)
Method Detail

contains

public boolean contains(Resource subj,
                        URI pred,
                        Value obj)

match

public Model match(Resource subj,
                   URI pred,
                   Value obj,
                   Resource... contexts)

getNamespaces

public Map<String,String> getNamespaces()

getNamespace

public String getNamespace(String prefix)

setNamespace

public String setNamespace(String prefix,
                           String name)

add

public void add(Resource subj,
                URI pred,
                Value obj)

remove

public boolean remove(Resource subj,
                      URI pred,
                      Value obj)


Copyright © 2004-2010 James Leigh Services Inc.. All Rights Reserved.