All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.lirmm.graphik.integraal.GraalConstant Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
package fr.lirmm.graphik.integraal;

import fr.lirmm.graphik.integraal.api.core.Predicate;
import fr.lirmm.graphik.integraal.api.core.Term;
import fr.lirmm.graphik.integraal.core.term.DefaultTermFactory;
import fr.lirmm.graphik.util.Prefix;
import fr.lirmm.graphik.util.URIUtils;

public final class GraalConstant {

	public static final Prefix INTERNAL_PREFIX = new Prefix("graal","http://www.lirmm.fr/graphik/graal/");
	public static final Prefix FRESH_PREFIX    = new Prefix("graal-fresh","http://www.lirmm.fr/graphik/graal/fresh/");

	public static final Predicate freshPredicate(final int arity) {
		return new Predicate(URIUtils.createURI("p" + (_predicate_count++), FRESH_PREFIX), arity);
	}

	public static final Term freshConstant() {
		return DefaultTermFactory.instance().createConstant(URIUtils.createURI("c" + (_constant_count++), FRESH_PREFIX));

	}

	private static int _predicate_count = 0;
	private static int _constant_count  = 0;

	private GraalConstant() { }
};





© 2015 - 2024 Weber Informatics LLC | Privacy Policy