information-artifact-ontology / ontology-metadata

OBO Metadata Ontology
Creative Commons Zero v1.0 Universal
19 stars 8 forks source link

Add a schema constraining how OMO properties are used #55

Open cmungall opened 4 years ago

cmungall commented 4 years ago

We need a schema

Most of OMO is annotation properties which are useless in OWL for using in a constrained fashion

E.g for http://purl.obolibrary.org/obo/IAO_0000233 -- is the expected value of this a string, an anyURI literal, or a node?

term-replaced-by should only be used on obsolete classes

rdfs:label has max cardinality 1

etc

matentzn commented 4 years ago

Interesting. I like this a lot! For the most seamless implementation of this, what do you propose? A big sparql query like:

SELECT ?s ?p ?o
WHERE {
    ?s ?p ?o .
    FILTER(isIRI(?s)) 
    FILTER ( 
        ( datatype(?o) = xsd:string && ?p = rdfs:label) || 
        ( ( datatype(?o) = xsd:anyURI || isIRI(?o)) && ?p = IAO:0000233)
     ) 
} 
LIMIT 10

Or is it now the time to see what shex and shacl can do?