de.fau.cs.www8.jadeowlcodec.triplestore
Class MaskedTripleStore

java.lang.Object
  extended by de.fau.cs.www8.jadeowlcodec.triplestore.AbsTripleStore
      extended by de.fau.cs.www8.jadeowlcodec.triplestore.MaskedTripleStore
All Implemented Interfaces:
java.lang.Iterable<SimpleTriple>

public class MaskedTripleStore
extends AbsTripleStore


Field Summary
protected  java.util.Set<Triple> retained
           
 
Fields inherited from class de.fau.cs.www8.jadeowlcodec.triplestore.AbsTripleStore
kb
 
Constructor Summary
MaskedTripleStore(AbsTripleStore ts, BitField mask, boolean whichToRetain)
           
 
Method Summary
 boolean contains(Triple t)
           
 java.util.Set<Uri.Concept> getAllConcepts()
           
 java.util.Set<Uri.Individual> getAllIndividuals()
           
 java.util.Set<Uri.Role> getAllRoles()
           
 java.lang.String getLatexShortUri(AbsUriOrValue u)
           
 Triple getNthTriple(int n)
           
 java.util.Set<AbsUriOrValue> getObjForSubjPred(Uri subj, Uri pred)
           
 java.lang.String getShortUri(AbsUriOrValue u)
           
 int getSize()
           
 java.lang.String getStatus()
           
 java.util.Set<Uri> getSubjForPredObj(Uri pred, AbsUriOrValue obj)
           
protected  void haveRetained()
           
 java.util.Iterator<SimpleTriple> iterator()
           
 
Methods inherited from class de.fau.cs.www8.jadeowlcodec.triplestore.AbsTripleStore
clone, contains, createBitmaskFor, createBitmaskWithout, getKb, getTriplesAbout, getTriplesAboutObject, getTriplesAboutPredicate, getTriplesAboutSubject, tellInto, toString, toTripleSet, writeDigTell, writeDigTell
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

retained

protected java.util.Set<Triple> retained
Constructor Detail

MaskedTripleStore

public MaskedTripleStore(AbsTripleStore ts,
                         BitField mask,
                         boolean whichToRetain)
Parameters:
ts - the triplestore to wrap
mask - bitfield switching triples on/off in
whichToRetain - true: keep only those triples from ts with maskbit set, false: keep only those triples with maskbit unset
Method Detail

haveRetained

protected void haveRetained()

getLatexShortUri

public java.lang.String getLatexShortUri(AbsUriOrValue u)
Overrides:
getLatexShortUri in class AbsTripleStore

getObjForSubjPred

public java.util.Set<AbsUriOrValue> getObjForSubjPred(Uri subj,
                                                      Uri pred)
Specified by:
getObjForSubjPred in class AbsTripleStore

getShortUri

public java.lang.String getShortUri(AbsUriOrValue u)
Overrides:
getShortUri in class AbsTripleStore

getSize

public int getSize()
Specified by:
getSize in class AbsTripleStore

getStatus

public java.lang.String getStatus()
Specified by:
getStatus in class AbsTripleStore

getSubjForPredObj

public java.util.Set<Uri> getSubjForPredObj(Uri pred,
                                            AbsUriOrValue obj)
Specified by:
getSubjForPredObj in class AbsTripleStore

iterator

public java.util.Iterator<SimpleTriple> iterator()
Specified by:
iterator in interface java.lang.Iterable<SimpleTriple>
Specified by:
iterator in class AbsTripleStore

contains

public boolean contains(Triple t)
Overrides:
contains in class AbsTripleStore

getAllIndividuals

public java.util.Set<Uri.Individual> getAllIndividuals()
Specified by:
getAllIndividuals in class AbsTripleStore

getNthTriple

public Triple getNthTriple(int n)

getAllConcepts

public java.util.Set<Uri.Concept> getAllConcepts()
Overrides:
getAllConcepts in class AbsTripleStore

getAllRoles

public java.util.Set<Uri.Role> getAllRoles()
Overrides:
getAllRoles in class AbsTripleStore


Copyright 2007 Moritz Goeb, Bernhard Schiemann, Ulf Schreiber of Chair of Artificial Intelligence, University of Erlangen-Nuremberg