Class JSONWriter

    • Constructor Detail

      • JSONWriter

        public JSONWriter​(OutputStream os)
        Deprecated.
    • Method Detail

      • writeTriple

        public void writeTriple​(org.eclipse.rdf4j.model.Resource s,
                                org.eclipse.rdf4j.model.IRI p,
                                org.eclipse.rdf4j.model.Value o,
                                org.eclipse.rdf4j.model.Resource g)
                         throws TripleHandlerException
        Deprecated.
        Description copied from interface: TripleWriter
        Writes a triple and, optionally, a graph resource name.
        Specified by:
        writeTriple in interface TripleWriter
        Parameters:
        s - the subject to write
        p - the predicate to write
        o - the object to write
        g - the graph name to write, or null
        Throws:
        TripleHandlerException - if there is an error writing the triple
      • writeNamespace

        public void writeNamespace​(String prefix,
                                   String uri)
                            throws TripleHandlerException
        Deprecated.
        Description copied from interface: TripleWriter
        Writes a prefix-namespace mapping.
        NOTE: this method should be called before writing out any triples. Calling this method after writing out a triple may result in the prefix-namespace mapping being ignored.
        Specified by:
        writeNamespace in interface TripleWriter
        Parameters:
        prefix - the namespace prefix
        uri - the namespace uri
        Throws:
        TripleHandlerException - if there was an error writing out the prefix-namespace mapping
      • isAnnotated

        public boolean isAnnotated()
        Deprecated.
        Description copied from interface: FormatWriter
        If true then the produced RDF is annotated with the extractors used to generate the specific statements.
        Specified by:
        isAnnotated in interface FormatWriter
        Returns:
        the annotation flag value.
      • setAnnotated

        public void setAnnotated​(boolean f)
        Deprecated.
        Description copied from interface: FormatWriter
        Sets the annotation flag.
        Specified by:
        setAnnotated in interface FormatWriter
        Parameters:
        f - If true then the produced RDF is annotated with the extractors used to generate the specific statements.