Registry Mirror
Skip to content

Implement a FALDO validator #40

Open

Description

@cmungall

Obviously syntactic validation could be done at the level of RDF tools.

Previous discussion on use of shex/shacl for defining shapes: #30

OWL reasoning (potentially incorporating SWRL) is another possibility

But note that any implementation should be scalable to large genomes

Related discussion on GFF3 validation tools: The-Sequence-Ontology/Specifications#18 (these have proven vital for large genome projects, but unfortunately there is fragmentation in their implementation)

Activity

  1. JervenBolleman commented on Apr 30, 2019

    @JervenBolleman
    Collaborator

    Basic validation of the data is doable e.g. in ShACL. However, I am quite worried about trying to enforce 'biological' rules as I often use "incomplete" data myself that is only valid once integrated.

    @prefix rdf: <https://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs: <https://www.w3.org/2000/01/rdf-schema#> .
    @prefix faldo: <http://biohackathon.org/resource/faldo#> .
    @prefix sh: <https://www.w3.org/ns/shacl#> .
    @prefix xsd: <https://www.w3.org/2001/XMLSchema#> .
    
    faldo:FaldoExactPositionShape
        a sh:NodeShape ;
        sh:targetClass faldo:ExactPosition ;
        sh:property [
            sh:path faldo:position ;
            sh:datatype xsd:integer ;
            sh:minInclusive 1 ;
            sh:name "position needs to be an integer" ;
        ] ;
        sh:property [
            sh:path faldo:reference ;
            sh:nodeKind sh:BlankNodeOrIRI ;
            sh:name "Reference needs to be an resource" ;
        ] .
  2. JervenBolleman commented on May 2, 2019

    @JervenBolleman
    Collaborator

    Copying a bit more of my playground.

    faldo:RegionShape 
        a sh:NodeShape ;
        sh:targetClass faldo:Region ;
        sh:property [
            sh:path faldo:begin ;
            sh:nodeKind sh:BlankNodeOrIRI ;
            sh:name "begin needs to be a resource" ;
            sh:maxCount 1 
        ] ;
        sh:property [
            sh:path faldo:end ;
            sh:nodeKind sh:BlankNodeOrIRI ;
            sh:name "end needs to be an resource" ;
            sh:maxCount 1 
        ] .
  3. cmungall commented on May 4, 2019

    @cmungall
    ContributorAuthor

    However, I am quite worried about trying to enforce 'biological' rules as I often use "incomplete" data myself that is only valid once integrated.

    agreed

    • shacl/shex - closed world validation
    • owl reasoning - open world validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions