@prefix af-p: <http://purl.allotrope.org/ontologies/process#> .
@prefix af-r: <http://purl.allotrope.org/ontologies/result#> .
@prefix af-s: <http://purl.allotrope.org/shape/> .
@prefix af-x: <http://purl.allotrope.org/ontologies/property#> .
@prefix bfo: <http://purl.obolibrary.org/obo/BFO> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ro: <http://purl.obolibrary.org/obo/RO> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

af-s:AFS_0005672 a sh:NodeShape ;
    skos:prefLabel "mass spectrometry process node shape" ;
    sh:and ( af-s:AFS_0000001 af-s:AFS_0000465 ) ;
    sh:message "Node does not conform to Allotrope shape for intact mass mass spectrometry runs." ;
    sh:property [ sh:message "There MUST be exactly 1 inverse property of af-x:identifies (AFX_0002717) coming from a identifier (AFR_0000917)." ;
            sh:path [ sh:inversePath af-x:AFX_0002717 ] ;
            sh:qualifiedMinCount 1 ;
            sh:qualifiedValueShape af-s:AFS_0000020 ;
            sh:qualifiedValueShapesDisjoint true ],
        [ sh:message "Mass spectrometry MAY have one or more ionization processes as occurrent part." ;
            sh:path bfo:_0000117 ;
            sh:qualifiedMinCount 0 ;
            sh:qualifiedValueShape [ sh:class af-p:AFP_0001993 ] ],
        [ sh:message "Mass spectrometry MAY have one or more diagnostic monitoring processes as occurrent part." ;
            sh:path bfo:_0000117 ;
            sh:qualifiedMinCount 0 ;
            sh:qualifiedValueShape [ sh:class af-p:AFP_0003681 ;
                    sh:node [ sh:message "Diagnostic monitoring may have a diagnostic trace as output" ;
                            sh:property [ sh:class af-r:AFR_0001060 ;
                                    sh:path af-x:AFX_0000544 ] ] ] ],
        [ sh:message "Mass spectrometry MAY have one or more data transformation processes as occurrent part." ;
            sh:path bfo:_0000117 ;
            sh:qualifiedMinCount 0 ;
            sh:qualifiedValueShape af-s:AFS_0005673 ],
        [ sh:message "Mass spectrometry MUST have exactly 1 MS system as participant." ;
            sh:path ro:_0000057 ;
            sh:qualifiedMaxCount 1 ;
            sh:qualifiedMinCount 1 ;
            sh:qualifiedValueShape af-s:AFS_0005662 ],
        [ sh:message "Mass spectrometry MAY have one or more MS scans as an occurrent part." ;
            sh:path bfo:_0000117 ;
            sh:qualifiedMinCount 0 ;
            sh:qualifiedValueShape [ sh:class af-p:AFP_0002515 ] ],
        [ sh:message "Mass spectrometry MAY have one or more sequential analysis processes as occurrent part." ;
            sh:path bfo:_0000117 ;
            sh:qualifiedMinCount 0 ;
            sh:qualifiedValueShape [ sh:class af-p:AFP_0003692 ] ],
        [ sh:message "Mass spectrometry MAY have one or more selected ion monitoring processes as occurrent part." ;
            sh:path bfo:_0000117 ;
            sh:qualifiedMinCount 0 ;
            sh:qualifiedValueShape [ sh:class af-p:AFP_0002437 ] ] ;
    sh:targetClass af-p:AFP_0001427 .

<http://purl.allotrope.org/shapes/adm/ms-intact-mass/CR/2024/12/ms-intact-process.shapes> a owl:Ontology ;
    dct:description "Main module of the Allotrope MS-INTACT Process Shape library." ;
    dct:license <http://purl.allotrope.org/voc/creative-commons-attribution-license> ;
    dct:publisher <http://www.allotrope.org> ;
    dct:rights <http://purl.allotrope.org/voc/attribution>,
        <http://purl.allotrope.org/voc/copyright> ;
    dct:title "Allotrope MS-INTACT Process Shape Library (CR/2024/12)" ;
    owl:imports <http://purl.allotrope.org/shapes/adm/core/REC/2021/12/prefix.shacl>,
        <http://purl.allotrope.org/shapes/adm/core/REC/2022/06/common.shapes>,
        <http://purl.allotrope.org/shapes/adm/ms-intact-mass/CR/2024/12/ms-intact-data-processing.shapes>,
        sh: ;
    owl:priorVersion <http://purl.allotrope.org/shapes/adm/ms-intact-mass/CR/2021/09/ms-intact-process.shapes> ;
    owl:versionIRI <http://purl.allotrope.org/shapes/adm/ms-intact-mass/CR/2024/12/ms-intact-process.shapes> ;
    owl:versionInfo "CR/2024/12" ;
    skos:prefLabel "MS-INTACT process shapes" .

