package com.github.commonsrdf.dummyimpl;

import com.github.commonsrdf.api.BlankNodeOrIRI;
import com.github.commonsrdf.api.IRI;
import com.github.commonsrdf.api.RDFTerm;
import com.github.commonsrdf.api.Triple;

public class TripleImpl implements Triple {

	private BlankNodeOrIRI subject;
	private IRI predicate;
	private RDFTerm object;

	public TripleImpl(BlankNodeOrIRI subject, IRI predicate, RDFTerm object) {
		this.subject = subject;
		this.predicate = predicate;
		this.object = object;
	}

	@Override
	public BlankNodeOrIRI getSubject() {
		return subject;
	}

	@Override
	public IRI getPredicate() {
		return predicate;
	}

	@Override
	public RDFTerm getObject() {
		return object;
	}

	@Override
	public String toString() {
		return getSubject().ntriplesString() + " "
				+ getPredicate().ntriplesString() + " "
				+ getObject().ntriplesString() + ".";
	}
}

@@ -857,16 +857,17 @@
 ng() + %22
+ 
 .%22;%0A%09%7D%0A%7D

Spacing before "." in Triple.toString