@prefix ccdm: <http://cookingbigdata.com/linkeddata/ccdm#> .
@prefix rdf: 		<http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: 		<http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: 		<http://www.w3.org/2002/07/owl#> .
@prefix foaf: 		<http://xmlns.com/foaf/0.1/> .
@prefix dc:			<http://purl.org/dc/terms/> .
@prefix xsd: 		<http://www.w3.org/2001/XMLSchema#> .
@prefix cc: 		<http://creativecommons.org/ns#> .
@prefix mls: <http://www.w3.org/ns/mls#> .

<http://example.org/cc/MLService#SVM> a ccdm:MLFunction;	
	dc:created "2017-04-20" ;
	dc:creator "Manuel Parra, Ruben Castro, J. Antonio Cortes" ;
	dc:title "SVM" ;
	dc:description "Support vector machines (SVMs, also support vector networks) are supervised learning models with associated learning algorithms that analyze data used for classification and regression analysis" ;
	dc:modified "2018-05-20" ;
	dc:publisher "DICITS_ML" ;
    ccdm:hasInputParameters _:SVM_Service_InputParameters ;
    mls:hasInput _:SVM_Service_Input ;
    mls:hasOutput _:SVM_Service_Output	
	.
	
_:SVM_Service_Input a ccdm:MLServiceInput ;
    ccdm:contains _:contains_dataset_01 ;
    dc:description "Input data contains Dataset or Feature/s" ;
    dc:title "InputDataSet" 
	.	

_:contains_dataset_01 a ccdm:contains ;
    mls:Data ccdm:dataset_01 
	.

_:dataset_01  a mls:DataSet ;
    ccdm:format _:ParameterFormat_CVS_00 ;
    ccdm:mandatory "true" ;
    ccdm:storagebucket "dicits://" ;
    dc:description "Dataset on which the service is applied" ;
    dc:title "DataSet" 
	.

_:ParameterFormat_CVS_00 a ccdm:csv ;
	dc:description "CSV Source file format" 
	.

_:SVM_Service_Output a ccdm:MLServiceOutput ;
    dc:description "Output of the service contains Model or ModelEvaluation or Data" ;
    mls:Model _:SVM_Model ;
    mls:ModelEvaluation _:SVM_ModelEvaluation 
	.

_:SVM_Model a ccdm:PMML_Model ;
    ccdm:storagebucket "dicits://models/" ;
    dc:description "PMML model to represent mining models" ;
    dc:title "PMML Model related" 
	.

_:SVM_ModelEvaluation a ccdm:ModelEvaluation ;
    ccdm:storagebucket "dicits://modelevaluation/" ;
    dc:description "Model Evaluation" ;
    dc:title "Model evaluation" 
	.


_:SVM_Service_InputParameters a ccdm:MLServiceInputParameters;
	dc:description "Input Parameters" ;
	dc:title "Input" ;    
	ccdm:Parameters _:response_parameter_01,
	                _:response_parameter_02,
                    _:response_parameter_03;
	.
	
_:response_parameter_01 a ccdm:MLServiceInputParameter ;
    ccdm:defaultvalue "" ;
    ccdm:mandatory "true" ;
    dc:description "A data matrix, a vector, or a sparse matrix." ;
    dc:title "dataset" .

_:response_parameter_02 a ccdm:MLServiceInputParameter ;
    ccdm:defaultvalue "" ;
    ccdm:mandatory "true" ;
    dc:description "a symbolic description of the model to be fit." ;
    dc:title "formula" .

_:response_parameter_03 a ccdm:MLServiceInputParameter ;
    ccdm:defaultvalue "na.omit" ;
    ccdm:mandatory "optional" ;
    dc:description "A function to specify the action to be taken if NAs are found. The default action is not to count them for the computation of the probability factors. An alternative is na.omit, which leads to rejection of cases with missing values on any required variable. (NOTE: If given, this argument must be named.)" ;
    dc:title "na__action" .