it.uniroma2.art.semanticturkey.extensions.sheet2rdf.services.Sheet2RDF Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stx-sheet2rdf Show documentation
Show all versions of stx-sheet2rdf Show documentation
Sheet2RDF extension for Semantic Turkey. Sheet2RDF is a platform for acquisition and transformation of datasheets into RDF.
package it.uniroma2.art.semanticturkey.extensions.sheet2rdf.services;
import it.uniroma2.art.owlart.model.ARTResource;
import it.uniroma2.art.semanticturkey.constraints.Existing;
import it.uniroma2.art.semanticturkey.generation.annotation.GenerateSTServiceController;
import it.uniroma2.art.semanticturkey.services.annotations.Optional;
import it.uniroma2.art.semanticturkey.servlet.Response;
import it.uniroma2.art.semanticturkey.servlet.ServletUtilities;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
@GenerateSTServiceController
@Validated
@Component
public class Sheet2RDF {
public Sheet2RDF() {
// System.out.println("s2rdf initialize");
}
@GenerateSTServiceController
public Response echo(@Existing @Optional ARTResource node) {
return ServletUtilities.getService().createReplyFAIL("echo", "" + node);
}
}