You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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" ;
] .
Activity
JervenBolleman commentedon Apr 30, 2019
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.
JervenBolleman commentedon May 2, 2019
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 ] .cmungall commentedon May 4, 2019
agreed