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

eu.play_project.play_commons.constants.Source Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
package eu.play_project.play_commons.constants;

import static eu.play_project.play_commons.constants.Namespace.SOURCE;

/**
 * Enum of event source identifiers commonly used in PLAY. The source IDs
 * usually end in {@code #source} and are used when creating metadata about
 * streams, largely when describing the stream in RDF.
 * 
 * @author stuehmer
 * 
 */
public enum Source {

	/*
	 * PLAY sources:
	 */
	Dcep(SOURCE.getUri() + "Dcep#source"),
	WebApp(SOURCE.getUri() + "WebApp#source"),
	FacebookAdapter(SOURCE.getUri() + "FacebookAdapter#source"),
	TwitterAdapter(SOURCE.getUri() + "TwitterAdapter#source"),
	PachubeAdapter(SOURCE.getUri() + "PachubeAdapter#source");

	private final String source;

	/**
	 * Source IDs usually end in this special suffix (URI fragment identifier).
	 */
	public static final String SOURCE_ID_SUFFIX = "#source";

	Source(String source) {
		this.source = source;
	}

	public String toString() {
		return source;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy