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.simple; 019 020import org.apache.commons.rdf.api.BlankNode; 021import org.apache.commons.rdf.api.BlankNodeOrIRI; 022import org.apache.commons.rdf.api.Graph; 023import org.apache.commons.rdf.api.IRI; 024import org.apache.commons.rdf.api.Literal; 025import org.apache.commons.rdf.api.RDFTerm; 026import org.apache.commons.rdf.api.RDFTermFactory; 027import org.apache.commons.rdf.api.Triple; 028 029/** 030 * A Simple implementation of {@link RDFTermFactory} 031 * <p> 032 * This class is <strong>deprecated</strong>, use instead {@link SimpleRDF}. 033 */ 034@Deprecated 035public class SimpleRDFTermFactory implements RDFTermFactory { 036 037 private final SimpleRDF factory = new SimpleRDF(); 038 039 @Override 040 public BlankNode createBlankNode() { 041 return factory.createBlankNode(); 042 } 043 044 @Override 045 public BlankNode createBlankNode(final String name) { 046 return factory.createBlankNode(name); 047 } 048 049 @Override 050 public Graph createGraph() { 051 return factory.createGraph(); 052 } 053 054 @Override 055 public IRI createIRI(final String iri) { 056 return factory.createIRI(iri); 057 } 058 059 @Override 060 public Literal createLiteral(final String literal) { 061 return factory.createLiteral(literal); 062 } 063 064 @Override 065 public Literal createLiteral(final String literal, final IRI dataType) { 066 return factory.createLiteral(literal, dataType); 067 } 068 069 @Override 070 public Literal createLiteral(final String literal, final String language) { 071 return factory.createLiteral(literal, language); 072 } 073 074 @Override 075 public Triple createTriple(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) { 076 return factory.createTriple(subject, predicate, object); 077 } 078}