public class IgnoreAccidentalRDFa extends Object implements TripleHandler
TripleHandler
that suppresses output of the RDFa
parser if the document only contains "accidental" RDFa,
like stylesheet links and other non-RDFa uses of HTML'sConstructor and Description |
---|
IgnoreAccidentalRDFa(TripleHandler wrapped) |
IgnoreAccidentalRDFa(TripleHandler wrapped,
boolean alwaysSuppressCSSTriples)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeContext(ExtractionContext context) |
void |
endDocument(org.openrdf.model.URI documentURI) |
void |
openContext(ExtractionContext context) |
void |
receiveNamespace(String prefix,
String uri,
ExtractionContext context) |
void |
receiveTriple(org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o,
org.openrdf.model.URI g,
ExtractionContext context) |
void |
setContentLength(long contentLength) |
void |
startDocument(org.openrdf.model.URI documentURI) |
public IgnoreAccidentalRDFa(TripleHandler wrapped, boolean alwaysSuppressCSSTriples)
wrapped
- the decorated triple handler.alwaysSuppressCSSTriples
- if true
the CSS triples will be
always suppressed even if the document is not empty.
If false
then the CSS triples will be suppressed only if
document is empty.public IgnoreAccidentalRDFa(TripleHandler wrapped)
public void startDocument(org.openrdf.model.URI documentURI) throws TripleHandlerException
startDocument
in interface TripleHandler
TripleHandlerException
public void openContext(ExtractionContext context) throws TripleHandlerException
openContext
in interface TripleHandler
TripleHandlerException
public void receiveTriple(org.openrdf.model.Resource s, org.openrdf.model.URI p, org.openrdf.model.Value o, org.openrdf.model.URI g, ExtractionContext context) throws TripleHandlerException
receiveTriple
in interface TripleHandler
TripleHandlerException
public void receiveNamespace(String prefix, String uri, ExtractionContext context) throws TripleHandlerException
receiveNamespace
in interface TripleHandler
TripleHandlerException
public void closeContext(ExtractionContext context)
closeContext
in interface TripleHandler
public void close() throws TripleHandlerException
close
in interface TripleHandler
TripleHandlerException
public void endDocument(org.openrdf.model.URI documentURI) throws TripleHandlerException
endDocument
in interface TripleHandler
TripleHandlerException
public void setContentLength(long contentLength)
setContentLength
in interface TripleHandler
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.