Class DefaultRdfaWriterService

    • Field Detail

      • CONFIG_RDFA_TEMPLATE

        public static final String CONFIG_RDFA_TEMPLATE
        The configuration key controlling the HTML template to use.
        See Also:
        Constant Field Values
      • CONFIG_RDFA_CSS

        public static final String CONFIG_RDFA_CSS
        The configuration key controlling the CSS URLs to use.
        See Also:
        Constant Field Values
      • CONFIG_RDFA_ICON

        public static final String CONFIG_RDFA_ICON
        The configuration key controlling the web icon to use.
        See Also:
        Constant Field Values
      • CONFIG_RDFA_JS

        public static final String CONFIG_RDFA_JS
        The configuration key controlling the JS URLs to use.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultRdfaWriterService

        public DefaultRdfaWriterService()
        Create an HTML Serializer object.
      • DefaultRdfaWriterService

        @Inject
        public DefaultRdfaWriterService​(NamespaceService namespaceService)
        Create an HTML Serializer object.
        Parameters:
        namespaceService - a namespace service
      • DefaultRdfaWriterService

        public DefaultRdfaWriterService​(NamespaceService namespaceService,
                                        String template,
                                        String css,
                                        String js,
                                        String icon)
        Create an HTML Serializer object.
        Parameters:
        namespaceService - a namespace service
        template - the template location
        css - 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 null
      • DefaultRdfaWriterService

        public DefaultRdfaWriterService​(NamespaceService namespaceService,
                                        String template,
                                        List<String> css,
                                        List<String> js,
                                        String icon)
        Create an HTML Serializer object.
        Parameters:
        namespaceService - a namespace service
        template - the template location
        css - 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 null
    • Method Detail

      • write

        public void write​(Stream<Triple> triples,
                          OutputStream out,
                          String subject)
        Send the content to an output stream.
        Specified by:
        write in interface RDFaWriterService
        Parameters:
        triples - the triples
        out - the output stream
        subject - the subject