@ApplicationScoped public class DefaultRdfaWriterService extends Object implements RDFaWriterService
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_RDFA_CSS
The configuration key controlling the CSS URLs to use.
|
static String |
CONFIG_RDFA_ICON
The configuration key controlling the web icon to use.
|
static String |
CONFIG_RDFA_JS
The configuration key controlling the JS URLs to use.
|
static String |
CONFIG_RDFA_TEMPLATE
The configuration key controlling the HTML template to use.
|
| Constructor and Description |
|---|
DefaultRdfaWriterService()
Create an HTML Serializer object.
|
DefaultRdfaWriterService(NamespaceService namespaceService)
Create an HTML Serializer object.
|
DefaultRdfaWriterService(NamespaceService namespaceService,
String template,
List<String> css,
List<String> js,
String icon)
Create an HTML Serializer object.
|
DefaultRdfaWriterService(NamespaceService namespaceService,
String template,
String css,
String js,
String icon)
Create an HTML Serializer object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(Stream<Triple> triples,
OutputStream out,
String subject)
Send the content to an output stream.
|
public static final String CONFIG_RDFA_TEMPLATE
public static final String CONFIG_RDFA_CSS
public static final String CONFIG_RDFA_ICON
public static final String CONFIG_RDFA_JS
public DefaultRdfaWriterService()
@Inject public DefaultRdfaWriterService(NamespaceService namespaceService)
namespaceService - a namespace servicepublic DefaultRdfaWriterService(NamespaceService namespaceService, String template, String css, String js, String icon)
namespaceService - a namespace servicetemplate - the template locationcss - the css to use (comma-delimited for multiple css documents)js - the js to use (comma-delimited for multiple js documents)icon - an icon, may be nullpublic DefaultRdfaWriterService(NamespaceService namespaceService, String template, List<String> css, List<String> js, String icon)
namespaceService - a namespace servicetemplate - the template locationcss - the css to use (comma-delimited for multiple css documents)js - the js to use (comma-delimited for multiple js documents)icon - an icon, may be nullpublic void write(Stream<Triple> triples, OutputStream out, String subject)
write in interface RDFaWriterServicetriples - the triplesout - the output streamsubject - the subject