|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.model.triplestore.DelegatingTripleWriter
A TripleWriter that forwards all calls into a delegate TripleWriter. This can be used to chain writers, e.g. to insert a filter in front of a delegate.
Field Summary | |
private TripleWriter |
delegate
|
Constructor Summary | |
DelegatingTripleWriter(TripleWriter delegate)
|
Method Summary | |
void |
addImport(String uri)
Adds an owl:imports statement to the default ontology in this writer. |
void |
close()
Tells the writer that we're finished. |
TripleWriter |
getDelegate()
|
void |
init(String baseURI)
Initializes this writer to work with a given base URI. |
void |
setDelegate(TripleWriter delegate)
|
void |
write(RDFResource resource,
RDFProperty property,
Object object)
Writes a given Triples into this writer. |
void |
writePrefix(String prefix,
String namespace)
Writes a prefix declaration into this writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private TripleWriter delegate
Constructor Detail |
public DelegatingTripleWriter(TripleWriter delegate)
Method Detail |
public void addImport(String uri)
TripleWriter
addImport
in interface TripleWriter
uri
- the URI to addpublic void close() throws Exception
TripleWriter
close
in interface TripleWriter
Exception
public TripleWriter getDelegate()
public void init(String baseURI)
TripleWriter
addImport
will add to this ontology.
init
in interface TripleWriter
baseURI
- the base URI, such as http://www.a.com/ontology.owl
public void setDelegate(TripleWriter delegate)
public void write(RDFResource resource, RDFProperty property, Object object) throws Exception
TripleWriter
write
in interface TripleWriter
Exception
public void writePrefix(String prefix, String namespace) throws Exception
TripleWriter
writePrefix
in interface TripleWriter
prefix
- the prefix to define ("" for the default namespace)namespace
- the namespace to assign to the prefix
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |