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

it.uniroma2.art.sheet2rdf.header.HeaderNameStruct Maven / Gradle / Ivy

There is a newer version: 6.0.6
Show newest version
package it.uniroma2.art.sheet2rdf.header;

import java.util.Map;

import org.eclipse.rdf4j.model.IRI;

public class HeaderNameStruct {
	
	private String fullName;
	private String name;
	private String lang;
	private IRI datatype;
	
	public HeaderNameStruct(String headerName, Map prefixMapping) {
		this.fullName = headerName;
		this.name = HeaderParser.parseId(headerName);
		this.lang = HeaderParser.parseLanguage(headerName);
		this.datatype = HeaderParser.parseDatatype(headerName, prefixMapping);
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String completeName) {
		this.fullName = completeName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLang() {
		return lang;
	}

	public void setLang(String lang) {
		this.lang = lang;
	}

	public IRI getDatatype() {
		return datatype;
	}

	public void setDatatype(IRI datatype) {
		this.datatype = datatype;
	}
	
	public String toString() {
		String s = "";
		s += "fullName: " + this.fullName;
		s += "; name: " + this.name;
		s += "; lang: " + this.lang;
		s += "; dt: " + this.datatype;
		return s;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy