001/** 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018package org.apache.commons.rdf.api; 019 020/** 021 * Factory for creating RDFTerm instances.. 022 * <p> 023 * This interface is <strong>deprecated</strong> in favour of the richer 024 * {@link RDF}. 025 * 026 * @see RDF 027 */ 028@Deprecated 029public interface RDFTermFactory { 030 031 default BlankNode createBlankNode() throws UnsupportedOperationException { 032 throw new UnsupportedOperationException("createBlankNode() not supported"); 033 } 034 035 default BlankNode createBlankNode(final String name) throws UnsupportedOperationException { 036 throw new UnsupportedOperationException("createBlankNode(String) not supported"); 037 } 038 039 default Graph createGraph() throws UnsupportedOperationException { 040 throw new UnsupportedOperationException("createGraph() not supported"); 041 } 042 043 default IRI createIRI(final String iri) throws IllegalArgumentException, UnsupportedOperationException { 044 throw new UnsupportedOperationException("createIRI(String) not supported"); 045 } 046 047 default Literal createLiteral(final String lexicalForm) throws IllegalArgumentException, UnsupportedOperationException { 048 throw new UnsupportedOperationException("createLiteral(String) not supported"); 049 } 050 051 default Literal createLiteral(final String lexicalForm, final IRI dataType) 052 throws IllegalArgumentException, UnsupportedOperationException { 053 throw new UnsupportedOperationException("createLiteral(String) not supported"); 054 } 055 056 default Literal createLiteral(final String lexicalForm, final String languageTag) 057 throws IllegalArgumentException, UnsupportedOperationException { 058 throw new UnsupportedOperationException("createLiteral(String,String) not supported"); 059 } 060 061 default Triple createTriple(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) 062 throws IllegalArgumentException, UnsupportedOperationException { 063 throw new UnsupportedOperationException("createTriple(BlankNodeOrIRI,IRI,RDFTerm) not supported"); 064 } 065 066}