<commit_before>package com.taxonic.rml.model.impl;

import org.eclipse.rdf4j.model.Resource;
import org.eclipse.rdf4j.model.Value;

import com.taxonic.rdf_mapper.annotations.RdfProperty;
import com.taxonic.rml.model.TermMap;
import com.taxonic.rml.vocab.Rml;
import com.taxonic.rml.vocab.Rr;

abstract public class TermMapImpl implements TermMap {

	private String reference;
	private String inverseExpression;
	private String template;
	private Object termType;
	private Value constant;

	public TermMapImpl() {}
	
	public TermMapImpl(
		String reference,
		String inverseExpression,
		String template,
		Object termType,
		Value constant
	) {
		this.reference = reference;
		this.inverseExpression = inverseExpression;
		this.template = template;
		this.termType = termType;
		this.constant = constant;
	}

	@RdfProperty(Rml.reference)
	@Override
	public String getReference() {
		return reference;
	}

	@RdfProperty(Rr.inverseExpression)
	@Override
	public String getInverseExpression() {
		return inverseExpression;
	}

	@RdfProperty(Rr.template)
	@Override
	public String getTemplate() {
		return template;
	}

	// TODO https://www.w3.org/TR/r2rml/#dfn-term-type
//	@RdfProperty(Rr.termType)
	@Override
	public Object getTermType() {
		return termType;
	}

	@RdfProperty(Rr.constant)
	@Override
	public Value getConstant() {
		return constant;
	}

	public void setReference(String reference) {
		this.reference = reference;
	}

	public void setInverseExpression(String inverseExpression) {
		this.inverseExpression = inverseExpression;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public void setTermType(Object termType) {
		this.termType = termType;
	}

	public void setConstant(Resource constant) {
		this.constant = constant;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((constant == null) ? 0 : constant.hashCode());
		result = prime * result + ((inverseExpression == null) ? 0 : inverseExpression.hashCode());
		result = prime * result + ((reference == null) ? 0 : reference.hashCode());
		result = prime * result + ((template == null) ? 0 : template.hashCode());
		result = prime * result + ((termType == null) ? 0 : termType.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {<commit_msg>Fix leftover use of constant being typed Resource<commit_after>package com.taxonic.rml.model.impl;

import org.eclipse.rdf4j.model.Value;

import com.taxonic.rdf_mapper.annotations.RdfProperty;
import com.taxonic.rml.model.TermMap;
import com.taxonic.rml.vocab.Rml;
import com.taxonic.rml.vocab.Rr;

abstract public class TermMapImpl implements TermMap {

	private String reference;
	private String inverseExpression;
	private String template;
	private Object termType;
	private Value constant;

	public TermMapImpl() {}
	
	public TermMapImpl(
		String reference,
		String inverseExpression,
		String template,
		Object termType,
		Value constant
	) {
		this.reference = reference;
		this.inverseExpression = inverseExpression;
		this.template = template;
		this.termType = termType;
		this.constant = constant;
	}

	@RdfProperty(Rml.reference)
	@Override
	public String getReference() {
		return reference;
	}

	@RdfProperty(Rr.inverseExpression)
	@Override
	public String getInverseExpression() {
		return inverseExpression;
	}

	@RdfProperty(Rr.template)
	@Override
	public String getTemplate() {
		return template;
	}

	// TODO https://www.w3.org/TR/r2rml/#dfn-term-type
//	@RdfProperty(Rr.termType)
	@Override
	public Object getTermType() {
		return termType;
	}

	@RdfProperty(Rr.constant)
	@Override
	public Value getConstant() {
		return constant;
	}

	public void setReference(String reference) {
		this.reference = reference;
	}

	public void setInverseExpression(String inverseExpression) {
		this.inverseExpression = inverseExpression;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public void setTermType(Object termType) {
		this.termType = termType;
	}

	public void setConstant(Value constant) {
		this.constant = constant;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((constant == null) ? 0 : constant.hashCode());
		result = prime * result + ((inverseExpression == null) ? 0 : inverseExpression.hashCode());
		result = prime * result + ((reference == null) ? 0 : reference.hashCode());
		result = prime * result + ((template == null) ? 0 : template.hashCode());
		result = prime * result + ((termType == null) ? 0 : termType.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
{'fraction_non_alphanumeric': 0.11056247316444826, 'fraction_numerical': 0.00493774151996565, 'mean_word_length': 4.4048723897911835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6961649', 'n_tokens_mistral': 1564, 'n_tokens_neox': 1449, 'n_words': 363}