Skip to content
Carlos Rueda edited this page Jul 29, 2014 · 5 revisions

Modeling

The CF standard names are basically captured as SKOS Concept instances. This is done via a :Standard_Name subclass of skos:Concept, and constructing an instance of :Standard_Name for each entry in the original XML file.

The following example shows how this is reflected, including also properties for the cananocial units and the description:

<entry id="sea_surface_temperature">
   <canonical_units>K</canonical_units>
   <description>Sea surface temperature is usually abbreviated as &quot;SST&quot;...</description>
</entry>

is converted to the following RDF representation:

@prefix :        <http://mmisw.org/ont/cf/parameter/> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix skos:    <http://www.w3.org/2004/02/skos/core#> .

:Standard_Name
      a       owl:Class ;
      rdfs:label "Standard Name" ;
      rdfs:subClassOf skos:Concept .

:canonical_units
      a       owl:DatatypeProperty ;
      rdfs:domain :Standard_Name ;
      rdfs:range xsd:string .

:sea_surface_temperature
      a       :Standard_Name ;
      :canonical_units "K" ;
      skos:definition "Sea surface temperature is usually abbreviated as \"SST\"..." .
Clone this wiki locally