# Copyright 2016 ITEA 12004 SEAS Project.
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 
#      http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing,
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .     #Owl ontology language
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .   #RDF schema 
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .  #XML standard datatypes
@prefix dc: <http://purl.org/dc/terms/> .  #Dublin Core Metadata Initiative terms
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix voaf: <http://purl.org/vocommons/voaf#> .
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix cc: <http://creativecommons.org/ns#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix ssn: <https://www.w3.org/ns/ssn/>.
@prefix cc: <http://creativecommons.org/ns#>.
@prefix dul: <http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#>. # The DOLCE+DnS Ultralite ontology.
@prefix liner: <https://w3id.org/liner/>.
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.
@prefix qb: <http://purl.org/linked-data/cube#>.
@prefix cdt: <http://w3id.org/lindt/custom_datatypes#>.
@prefix sdmx: <http://purl.org/linked-data/sdmx#>.

@prefix seas: <https://w3id.org/seas/>.
@base <https://w3id.org/seas/>.

seas:StatisticsVocabulary a owl:Ontology , voaf:Vocabulary ;
  dc:title "SEAS-Statistics vocabulary."@en ;
  dc:description """This ontology defines common evaluation interpretation concepts for statistics."""@en ;
  dc:issued "2016-07-21"^^xsd:date ;
  dc:modified "2016-07-21"^^xsd:date ;
  dc:creator <http://www.maxime-lefrancois.info/me#> ;
  cc:license <https://creativecommons.org/licenses/by/4.0> ;
  vann:preferredNamespacePrefix "seas" ;
  vann:preferredNamespaceUri <https://w3id.org/seas/> ;  
  owl:versionIRI <https://w3id.org/seas/StatisticsVocabulary-0.10> ;
  owl:versionInfo "v0.10" .


# CL_STAT
seas:stat a skos:ConceptScheme, sdmx:CodeList;
  skos:prefLabel "Statistics - codelist scheme"@en;
  rdfs:label "Statistics - codelist scheme"@en;
  skos:notation "CL_STAT";
  rdfs:comment """This code list enables to interpret the given value with respect to the Fourier-decomposition of the actual observed signal."""@en;
  skos:note """This code list enables to interpret the given value with respect to the Fourier-decomposition of the actual observed signal."""@en;
  skos:definition seas:stat ;
  rdfs:seeAlso seas:Stat ;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:StatisticsVocabulary .

seas:Stat a rdfs:Class, owl:Class;
  rdfs:subClassOf skos:Concept ;
  rdfs:label "Statistics - codelist class"@en;
  rdfs:comment """This code list enables to interpret the given value with respect to the Statistical distribution of the actual observed quantity."""@en;
  rdfs:seeAlso seas:stat ;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:StatisticsVocabulary . 

seas:stat-Minimum a skos:Concept, seas:EvaluationInterpretationConcept, seas:Stat;
  rdfs:label "Minimum"@en ;
  skos:prefLabel "Minimum"@en ;
  skos:notation "min" ;
  rdfs:comment """Minimum means that the given value measures the minimum of the observed quantity."""@en ;
  skos:definition """Minimum means that the given value measures the minimum of the observed quantity."""@en ;
  skos:topConceptOf seas:stat;
  skos:inScheme   seas:stat;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:StatisticsVocabulary . 

seas:stat skos:hasTopConcept seas:stat-Minimum .

seas:stat-Maximum a skos:Concept, seas:EvaluationInterpretationConcept, seas:Stat;
  rdfs:label "Maximum"@en ;
  skos:prefLabel "Maximum"@en ;
  skos:notation "Max" ;
  rdfs:comment """Maximum means that the given value measures the maximum of the observed quantity."""@en ;
  skos:definition """Maximum means that the given value measures the maximum of the observed quantity."""@en ;
  skos:topConceptOf seas:stat;
  skos:inScheme   seas:stat;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:StatisticsVocabulary . 

seas:stat skos:hasTopConcept seas:stat-Maximum .

seas:stat-Mean a skos:Concept, seas:EvaluationInterpretationConcept, seas:Stat;
  rdfs:label "Mean"@en ;
  skos:prefLabel "Mean"@en ;
  skos:notation "mean" ;
  rdfs:comment """Mean means that the given value measures the mean of the observed quantity."""@en ;
  skos:definition """Mean means that the given value measures the mean of the observed quantity."""@en ;
  skos:topConceptOf seas:stat;
  skos:inScheme   seas:stat;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:StatisticsVocabulary . 

seas:stat skos:hasTopConcept seas:stat-Mean .

seas:stat-Median a skos:Concept, seas:EvaluationInterpretationConcept, seas:Stat;
  rdfs:label "Median"@en ;
  skos:prefLabel "Median"@en ;
  skos:notation "median" ;
  rdfs:comment """Median means that the given value measures the median of the observed quantity."""@en ;
  skos:definition """Median means that the given value measures the median of the observed quantity."""@en ;
  skos:topConceptOf seas:stat;
  skos:inScheme   seas:stat;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:StatisticsVocabulary .

seas:stat skos:hasTopConcept seas:stat-Mean .

seas:stat-StandardDeviation a skos:Concept, seas:EvaluationInterpretationConcept, seas:Stat;
  rdfs:label "Standard Deviation"@en ;
  skos:prefLabel "Standard Deviation"@en ;
  skos:notation "stdev" ;
  rdfs:comment """Standard Deviation means that the given value measures the standard deviation of the observed quantity."""@en ;
  skos:definition """Standard Deviation means that the given value measures the standard deviation of the observed quantity."""@en ;
  skos:topConceptOf seas:stat;
  skos:inScheme   seas:stat;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:StatisticsVocabulary .

seas:stat skos:hasTopConcept seas:stat-StandardDeviation .

seas:stat-Quartile a skos:Concept, seas:EvaluationInterpretationConcept, seas:Stat;
  rdfs:label "Quartile"@en ;
  skos:prefLabel "Quartile"@en ;
  skos:notation "Q" ;
  rdfs:comment """Quartile means that the given value measures one of the quartiles of the observed quantity. The rank of the quartile is the object of property seas:rank."""@en ;
  skos:definition """Quartile means that the given value measures one of the quartiles of the observed quantity. The rank of the quartile is the object of property seas:rank."""@en ;
  skos:topConceptOf seas:stat;
  skos:inScheme   seas:stat;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:StatisticsVocabulary .

seas:stat skos:hasTopConcept seas:stat-Quartile .

seas:stat-Decile a skos:Concept, seas:EvaluationInterpretationConcept, seas:Stat;
  rdfs:label "Decile"@en ;
  skos:prefLabel "Decile"@en ;
  skos:notation "D" ;
  rdfs:comment """Decile means that the given value measures one of the deciles of the observed quantity. The rank of the decile is the object of property seas:rank."""@en ;
  skos:definition """Decile means that the given value measures one of the deciles of the observed quantity. The rank of the decile is the object of property seas:rank."""@en ;
  skos:topConceptOf seas:stat;
  skos:inScheme   seas:stat;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:StatisticsVocabulary .

seas:stat skos:hasTopConcept seas:stat-Decile .

seas:stat-Percentile a skos:Concept, seas:EvaluationInterpretationConcept, seas:Stat;
  rdfs:label "Percentile"@en ;
  skos:prefLabel "Percentile"@en ;
  skos:notation "P" ;
  rdfs:comment """Percentile means that the given value measures one of the percentiles of the observed quantity. The rank of the percentile is the object of property seas:rank."""@en ;
  skos:definition """Percentile means that the given value measures one of the percentiles of the observed quantity. The rank of the percentile is the object of property seas:rank."""@en ;
  skos:topConceptOf seas:stat;
  skos:inScheme   seas:stat;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:StatisticsVocabulary .

seas:stat skos:hasTopConcept seas:stat-Percentile .

seas:rank a owl:DatatypeProperty;
  rdfs:label "rank"@en ;
  rdfs:comment "Rank number of quartile, decile, or percentile."@en ;
  rdfs:domain seas:Evaluation ; 
  rdfs:range xsd:integer ;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:StatisticsVocabulary ;
     
