@prefix : <https://gwsp.cs.ksu.edu/weather-station/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <https://gwsp.cs.ksu.edu/weather-station/> .

<https://gwsp.cs.ksu.edu/weather-station/> rdf:type owl:Ontology ;
                                            <http://purl.org/dc/terms/creator> "GRIP, Kansas State University" ;
                                            <http://purl.org/dc/terms/license> <https://creativecommons.org/licenses/by/4.0/> ;
                                            <http://purl.org/dc/terms/title> "GRIP Weather Station Ontology"@en ;
                                            rdfs:comment "An ontology for representing daily weather observations recorded at fixed-location measurement stations. Each observation captures one station's report for one day, including maximum and minimum air temperature in degrees Fahrenheit, precipitation in inches, and where reported, snowfall and snow depth in inches. Source data uses two special markers: 'M' for missing values (handled by simply omitting the corresponding triple) and 'T' for trace values below the precision threshold (handled by storing 0.0 and adding a boolean flag like precipitation_is_trace=true). The Weather_Station class itself lives in the GRIP nutrient-management/environment module so that geography is shared across the GRIP ontology suite." ;
                                            rdfs:label "GRIP Weather Station Ontology" .

#################################################################
#    Annotation properties
#################################################################

###  http://purl.org/dc/terms/creator
<http://purl.org/dc/terms/creator> rdf:type owl:AnnotationProperty .


###  http://purl.org/dc/terms/license
<http://purl.org/dc/terms/license> rdf:type owl:AnnotationProperty .


###  http://purl.org/dc/terms/title
<http://purl.org/dc/terms/title> rdf:type owl:AnnotationProperty .


#################################################################
#    Datatypes
#################################################################

###  http://www.w3.org/2001/XMLSchema#date
xsd:date rdf:type rdfs:Datatype .


#################################################################
#    Object Properties
#################################################################

###  https://gwsp.cs.ksu.edu/weather-station/at_station
:at_station rdf:type owl:ObjectProperty ;
            rdfs:domain :Weather_Observation ;
            rdfs:range <https://gwsp.cs.ksu.edu/nutrient-management/environment/Weather_Station> ;
            rdfs:comment "Links a Weather Observation to the Weather Station that recorded it. Every Weather Observation has exactly one at_station link." ;
            rdfs:label "at station" .


#################################################################
#    Data properties
#################################################################

###  https://gwsp.cs.ksu.edu/weather-station/has_max_temp_f
:has_max_temp_f rdf:type owl:DatatypeProperty ;
                rdfs:domain :Weather_Observation ;
                rdfs:range xsd:float ;
                rdfs:comment "The maximum air temperature recorded at the station during the 24-hour observation period, in degrees Fahrenheit. Typically reported as an integer in the source data; stored as xsd:float for arithmetic compatibility." ;
                rdfs:label "has max temperature (°F)" .


###  https://gwsp.cs.ksu.edu/weather-station/has_min_temp_f
:has_min_temp_f rdf:type owl:DatatypeProperty ;
                rdfs:domain :Weather_Observation ;
                rdfs:range xsd:float ;
                rdfs:comment "The minimum air temperature recorded at the station during the 24-hour observation period, in degrees Fahrenheit. Typically reported as an integer in the source data; stored as xsd:float." ;
                rdfs:label "has min temperature (°F)" .


###  https://gwsp.cs.ksu.edu/weather-station/has_observation_date
:has_observation_date rdf:type owl:DatatypeProperty ;
                      rdfs:domain :Weather_Observation ;
                      rdfs:range xsd:date ;
                      rdfs:comment "The calendar day this weather observation covers, in the local time zone of the station. Stored as xsd:date in ISO 8601 format (YYYY-MM-DD)." ;
                      rdfs:label "has observation date" .


###  https://gwsp.cs.ksu.edu/weather-station/has_precipitation_in
:has_precipitation_in rdf:type owl:DatatypeProperty ;
                      rdfs:domain :Weather_Observation ;
                      rdfs:range xsd:float ;
                      rdfs:comment "Total precipitation (rain plus melted frozen precipitation) during the 24-hour observation period, in inches. A value of 0.0 with precipitation_is_trace = true means the station reported a trace amount (less than 0.005 inches). A missing report results in this triple being omitted entirely." ;
                      rdfs:label "has precipitation (in)" .


###  https://gwsp.cs.ksu.edu/weather-station/has_snow_depth_in
:has_snow_depth_in rdf:type owl:DatatypeProperty ;
                   rdfs:domain :Weather_Observation ;
                   rdfs:range xsd:float ;
                   rdfs:comment "Snow depth on the ground at observation time, in inches. Instantaneous, not an accumulation. Often unreported at non-snow-reporting stations. A trace amount uses the snow_depth_is_trace flag; a missing report omits this triple." ;
                   rdfs:label "has snow depth (in)" .


###  https://gwsp.cs.ksu.edu/weather-station/has_snowfall_in
:has_snowfall_in rdf:type owl:DatatypeProperty ;
                 rdfs:domain :Weather_Observation ;
                 rdfs:range xsd:float ;
                 rdfs:comment "Frozen precipitation accumulation during the 24-hour observation period, in inches. Often unreported at stations that do not track snow. A trace amount uses the snowfall_is_trace flag; a missing report omits this triple." ;
                 rdfs:label "has snowfall (in)" .


###  https://gwsp.cs.ksu.edu/weather-station/precipitation_is_trace
:precipitation_is_trace rdf:type owl:DatatypeProperty ;
                        rdfs:domain :Weather_Observation ;
                        rdfs:range xsd:boolean ;
                        rdfs:comment "Set to true when the station reported a trace amount of precipitation (the source CSV value 'T'), meaning measurable but below 0.005 inches. The corresponding has_precipitation_in value is stored as 0.0 in this case. Absent (and queryable as false / not present) when the value was a normal numeric reading." ;
                        rdfs:label "precipitation is trace" .


###  https://gwsp.cs.ksu.edu/weather-station/snow_depth_is_trace
:snow_depth_is_trace rdf:type owl:DatatypeProperty ;
                     rdfs:domain :Weather_Observation ;
                     rdfs:range xsd:boolean ;
                     rdfs:comment "Set to true when the station reported a trace amount of snow depth on the ground. Same convention as the other trace flags." ;
                     rdfs:label "snow depth is trace" .


###  https://gwsp.cs.ksu.edu/weather-station/snowfall_is_trace
:snowfall_is_trace rdf:type owl:DatatypeProperty ;
                   rdfs:domain :Weather_Observation ;
                   rdfs:range xsd:boolean ;
                   rdfs:comment "Set to true when the station reported a trace amount of snowfall. Same convention as precipitation_is_trace: the numeric value is stored as 0.0; absence of this flag means the snowfall was a normal numeric reading." ;
                   rdfs:label "snowfall is trace" .


#################################################################
#    Classes
#################################################################

###  https://gwsp.cs.ksu.edu/nutrient-management/environment/Weather_Station
<https://gwsp.cs.ksu.edu/nutrient-management/environment/Weather_Station> rdf:type owl:Class ;
                                                                          rdfs:comment "Stub. The full definition lives in the environment module (environment.ttl). Imported here because every weather observation is recorded at exactly one Weather Station." ;
                                                                          rdfs:label "Weather Station" .


###  https://gwsp.cs.ksu.edu/weather-station/Weather_Observation
:Weather_Observation rdf:type owl:Class ;
                     rdfs:subClassOf [ rdf:type owl:Restriction ;
                                       owl:onProperty :at_station ;
                                       owl:someValuesFrom <https://gwsp.cs.ksu.edu/nutrient-management/environment/Weather_Station>
                                     ] ,
                                     [ rdf:type owl:Restriction ;
                                       owl:onProperty :has_observation_date ;
                                       owl:someValuesFrom xsd:date
                                     ] ;
                     rdfs:comment "A single day's weather observation from one fixed Weather Station. Each observation records up to five measurements: maximum and minimum air temperature (always reported when the station is operating), precipitation (24-hour accumulation), snowfall (24-hour accumulation, often missing at non-snow-reporting stations), and snow depth (instantaneous reading, often missing outside the snow season). All measurements use US imperial units matching the source CSV: Fahrenheit for temperatures, inches for all liquid and frozen precipitation. Trace amounts (below 0.005 inches) are stored as 0.0 with the corresponding *_is_trace flag set to true." ;
                     rdfs:label "Weather Observation" .


#################################################################
#    Annotations
#################################################################

<https://creativecommons.org/licenses/by/4.0/> <http://purl.org/dc/terms/title> "Creative Commons Attribution 4.0 International"@en .


###  Generated by the OWL API (version 5.1.18) https://github.com/owlcs/owlapi/
