it.uniroma2.art.sheet2rdf.coda.CODAConverter Maven / Gradle / Ivy
package it.uniroma2.art.sheet2rdf.coda;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.eclipse.rdf4j.model.Value;
import org.eclipse.rdf4j.rio.ntriples.NTriplesUtil;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.base.Joiner;
import it.uniroma2.art.coda.converters.contracts.ContractConstants;
import it.uniroma2.art.coda.converters.contracts.DefaultConverter;
import it.uniroma2.art.coda.interfaces.annotations.converters.RDFCapabilityType;
public class CODAConverter {
private RDFCapabilityType type;
private String contractUri;
private String language; //in case type is "literal" this represents the language in "literal@it"
private String datatypeUri; //in case type is "literal" this represents the datatype in "literal^^xsd:string"
private String datatypeCapability; //datatype capability that the converter can produce (e.g. coda:date produces xsd:date)
private Map params;
/*
* A value of the params map can be:
* - String
* - List