about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/phenotype.scm33
1 files changed, 21 insertions, 12 deletions
diff --git a/examples/phenotype.scm b/examples/phenotype.scm
index 42396af..ad3c959 100755
--- a/examples/phenotype.scm
+++ b/examples/phenotype.scm
@@ -21,32 +21,39 @@
            (left-join Phenotype "ON Phenotype.Id = PublishXRef.PhenotypeId"))
           "WHERE PublishXRef.InbredSetId IN (SELECT PublishFreeze.InbredSetId FROM PublishFreeze)")
   (schema-triples
-   (gnc:phenotype a skos:Concept)
-   (gnc:phenotype skos:description "This is a set of controlled terms that are used to describe a given phenotype")
    (gnt:abbreviation a owl:ObjectProperty)
-   (gnt:abbreviation rdfs:domain gnc:phenotype)
+   (gnt:abbreviation rdfs:domain gnc:Phenotype)
    (gnt:abbreviation skos:definition "The abbreviation used for this resource")
    (gnt:labCode a owl:ObjectProperty)
-   (gnt:labCode rdfs:domain gnc:phenotype)
+   (gnt:labCode rdfs:domain gnc:Phenotype)
    (gnt:submitter a owl:ObjectProperty)
-   (gnt:submitter rdfs:domain gnc:phenotype)
+   (gnt:submitter rdfs:domain gnc:Phenotype)
    (gnt:submitter skos:definition "A person who submitted this resource to GN")
-   (gnt:mean rdfs:domain gnc:phenotype)
+   (gnt:mean a rdf:Property)
+   (gnt:mean a qb:MeasureProperty)
+   (gnt:mean rdfs:subPropertyOf sdmx-measure:obsValue)
+   (gnt:mean rdfs:domain gnc:Phenotype)
    (gnt:mean rdfs:range xsd:double)
-   (gnt:LRS rdfs:domain gnc:phenotype)
+   (gnt:LRS a rdf:Property)
+   (gnt:LRS a qb:MeasureProperty)
+   (gnt:LRS rdfs:subPropertyOf sdmx-measure:obsValue)
+   (gnt:LRS rdfs:domain gnc:Phenotype)
    (gnt:LRS rdfs:range xsd:double)
-   (gnt:locus rdfs:domain gnc:phenotype)
+   (gnt:locus a rdf:Property)
+   (gnt:locus a qb:MeasureProperty)
+   (gnt:locus rdfs:subPropertyOf sdmx-measure:obsValue)
+   (gnt:locus rdfs:domain gnc:Phenotype)
    (gnt:locus rdfs:range rdfs:Literal)
-   (gnt:additive rdfs:domain gnc:phenotype)
+   (gnt:additive rdfs:domain gnc:Phenotype)
    (gnt:additive rdfs:range xsd:double)
-   (gnt:sequence rdfs:domain gnc:phenotype)
+   (gnt:sequence rdfs:domain gnc:Phenotype)
    (gnt:sequence rdfs:range xsd:integer))
   (triples (string->identifier
             "trait"
             (field ("CONCAT(IFNULL(InbredSet.Name, PublishXRef.InbredSetId), '_', PublishXRef.Id)"
                     Phenotype)))
-    (set rdf:type 'gnc:phenotype)
-    (set gnt:belongsToSet
+    (set rdf:type 'gnc:Phenotype)
+    (set xkos:classifiedUnder
          (string->identifier
           "set" (field InbredSet Name)
           #:separator ""
@@ -116,10 +123,12 @@
       ("owl:" "<http://www.w3.org/2002/07/owl#>")
       ("gnc:" "<http://genenetwork.org/category/>")
       ("gnt:" "<http://genenetwork.org/terms/>")
+      ("sdmx-measure:" "<http://purl.org/linked-data/sdmx/2009/measure#>")
       ("skos:" "<http://www.w3.org/2004/02/skos/core#>")
       ("rdf:" "<http://www.w3.org/1999/02/22-rdf-syntax-ns#>")
       ("rdfs:" "<http://www.w3.org/2000/01/rdf-schema#>")
       ("xsd:" "<http://www.w3.org/2001/XMLSchema#>")
+      ("qb:" "<http://purl.org/linked-data/cube#>")
       ("pubmed:" "<http://rdf.ncbi.nlm.nih.gov/pubmed/>")))
    (inputs
     (list