/** * Factory method to create a new SAX2Model. * * @param base * The retrieval URL, or the base URI to be used while parsing. * @param m * A Jena Model in which to put the triples, this can be null. If * it is null, then use {@link SAX2RDF#getHandlers} or * {@link SAX2RDF#setHandlersWith} to provide a * {@link StatementHandler}, and usually an * {@link org.xml.sax.ErrorHandler} * @return A new SAX2Model * @throws SAXParseException * On a.error error during setup, maybe malformed base URI */ static public SAX2Model create(String base, Model m) throws SAXParseException { return new SAX2Model(base, m, ""); }
/** * Factory method to create a new SAX2Model. * * @param base * The retrieval URL, or the base URI to be used while parsing. * @param m * A Jena Model in which to put the triples, this can be null. If * it is null, then use {@link SAX2RDF#getHandlers} or * {@link SAX2RDF#setHandlersWith} to provide a * {@link StatementHandler}, and usually an * {@link org.xml.sax.ErrorHandler} * @return A new SAX2Model * @throws SAXParseException * On a.error error during setup, maybe malformed base URI */ static public SAX2Model create(String base, Model m) throws SAXParseException { return new SAX2Model(base, m, ""); }
/** * Factory method to create a new SAX2Model. This is particularly intended * for when parsing a non-root element within an XML document. In which case * the application needs to find this value in the outer context. * Optionally, namespace prefixes can be passed from the outer context using * {@link #startPrefixMapping}. * * @param base * The retrieval URL, or the base URI to be used while parsing. * @param m * A Jena Model in which to put the triples, this can be null. If * it is null, then use {@link SAX2RDF#getHandlers} or * {@link SAX2RDF#setHandlersWith} to provide a * {@link StatementHandler}, and usually an * {@link org.xml.sax.ErrorHandler} * @param lang * The current value of <code>xml:lang</code> when parsing * starts, usually "". * @return A new SAX2Model * @throws SAXParseException * On a.error error during setup, maybe malformed base URI */ static public SAX2Model create(String base, Model m, String lang) throws SAXParseException { return new SAX2Model(base, m, lang); }
/** * Factory method to create a new SAX2Model. This is particularly intended * for when parsing a non-root element within an XML document. In which case * the application needs to find this value in the outer context. * Optionally, namespace prefixes can be passed from the outer context using * {@link #startPrefixMapping}. * * @param base * The retrieval URL, or the base URI to be used while parsing. * @param m * A Jena Model in which to put the triples, this can be null. If * it is null, then use {@link SAX2RDF#getHandlers} or * {@link SAX2RDF#setHandlersWith} to provide a * {@link StatementHandler}, and usually an * {@link org.xml.sax.ErrorHandler} * @param lang * The current value of <code>xml:lang</code> when parsing * starts, usually "". * @return A new SAX2Model * @throws SAXParseException * On a.error error during setup, maybe malformed base URI */ static public SAX2Model create(String base, Model m, String lang) throws SAXParseException { return new SAX2Model(base, m, lang); }