net.fortytwo.sesametools
Class RepositoryGraph
java.lang.Object
net.fortytwo.sesametools.RepositoryGraph
- All Implemented Interfaces:
- Serializable, Iterable<org.openrdf.model.Statement>, Collection<org.openrdf.model.Statement>, org.openrdf.model.Graph
public class RepositoryGraph
- extends Object
- implements org.openrdf.model.Graph
An adapter which wraps a RepositoryConnection as a Graph
- Author:
- Joshua Shinavier (http://fortytwo.net)
- See Also:
- Serialized Form
|
Constructor Summary |
RepositoryGraph(org.openrdf.repository.RepositoryConnection rc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryGraph
public RepositoryGraph(org.openrdf.repository.RepositoryConnection rc)
throws org.openrdf.repository.RepositoryException
- Throws:
org.openrdf.repository.RepositoryException
getValueFactory
public org.openrdf.model.ValueFactory getValueFactory()
- Specified by:
getValueFactory in interface org.openrdf.model.Graph
add
public boolean add(org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o,
org.openrdf.model.Resource... c)
- Specified by:
add in interface org.openrdf.model.Graph
match
public Iterator<org.openrdf.model.Statement> match(org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o,
org.openrdf.model.Resource... c)
- Specified by:
match in interface org.openrdf.model.Graph
size
public int size()
- Specified by:
size in interface Collection<org.openrdf.model.Statement>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<org.openrdf.model.Statement>
contains
public boolean contains(Object o)
- Specified by:
contains in interface Collection<org.openrdf.model.Statement>
iterator
public Iterator<org.openrdf.model.Statement> iterator()
- Specified by:
iterator in interface Iterable<org.openrdf.model.Statement>- Specified by:
iterator in interface Collection<org.openrdf.model.Statement>
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<org.openrdf.model.Statement>
toArray
public <T> T[] toArray(T[] ts)
- Specified by:
toArray in interface Collection<org.openrdf.model.Statement>
add
public boolean add(org.openrdf.model.Statement statement)
- Specified by:
add in interface Collection<org.openrdf.model.Statement>
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<org.openrdf.model.Statement>
containsAll
public boolean containsAll(Collection<?> objects)
- Specified by:
containsAll in interface Collection<org.openrdf.model.Statement>
addAll
public boolean addAll(Collection<? extends org.openrdf.model.Statement> statements)
- Specified by:
addAll in interface Collection<org.openrdf.model.Statement>
removeAll
public boolean removeAll(Collection<?> objects)
- Specified by:
removeAll in interface Collection<org.openrdf.model.Statement>
retainAll
public boolean retainAll(Collection<?> objects)
- Specified by:
retainAll in interface Collection<org.openrdf.model.Statement>
clear
public void clear()
- Specified by:
clear in interface Collection<org.openrdf.model.Statement>
Copyright © 2014. All Rights Reserved.