@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix sio: <http://semanticscience.org/resource/> .
@prefix biolink: <https://w3id.org/biolink/vocab/> .
@prefix obo: <http://purl.obolibrary.org/obo/> .
@prefix schema: <https://schema.org/> .
@prefix psf: <https://bio2vec.net/planetary-scale-functions/vocab#> .

<https://bio2vec.net/planetary-scale-functions/vocab#>
    a owl:Ontology ;
    dcterms:title "Planetary-Scale Protein Function Catalog Vocabulary"@en ;
    dcterms:description "OWL vocabulary for prokaryotic protein families, genomes, Gene Ontology function predictions, ontology- and genome-level probabilistic reasoning changes, and multi-channel structural, evolutionary, and genomic-context evidence in the Planetary-Scale Functions catalog."@en ;
    dcterms:creator "Bio-Ontology Research Group (BORG), KAUST"@en ;
    dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
    owl:versionInfo "1.0.0" .

### Classes

psf:ProteinFamily a owl:Class ;
    rdfs:label "Protein family"@en ;
    rdfs:comment "A sequence-clustered prokaryotic protein family in the Planetary-Scale Functions catalog."@en ;
    rdfs:subClassOf sio:SIO_010043 ;
    skos:closeMatch biolink:ProteinFamily ;
    skos:relatedMatch schema:Protein .

psf:Genome a owl:Class ;
    rdfs:label "Prokaryotic genome"@en ;
    rdfs:comment "A bacterial or archaeal isolate genome or metagenome-assembled genome (MAG) included in the function catalog."@en ;
    rdfs:subClassOf sio:SIO_000984 ;
    skos:closeMatch biolink:Genome .

psf:FunctionPrediction a owl:Class ;
    rdfs:label "Gene Ontology function prediction"@en ;
    rdfs:comment "A probabilistic Gene Ontology class assignment for a protein family within a specific catalog release, linking pre- and post-reasoning probabilities, supporting evidence channels, and provenance."@en ;
    rdfs:subClassOf prov:Entity , sio:SIO_000897 ;
    skos:closeMatch biolink:MacromolecularMachineToBiologicalProcessAssociation .

psf:ReasoningSuppression a owl:Class ;
    rdfs:label "Reasoning suppression event"@en ;
    rdfs:comment "A family-function prediction suppressed from high probability (>= 0.50) to near zero (< 0.10) by taxonomic or biophysical reasoning constraints."@en ;
    rdfs:subClassOf prov:Entity .

psf:CatalogRelease a owl:Class ;
    rdfs:label "Catalog release"@en ;
    rdfs:comment "A versioned, immutable release of the Planetary-Scale Functions catalog."@en ;
    rdfs:subClassOf dcat:Dataset , prov:Activity , schema:Dataset .

psf:EvidenceChannel a owl:Class ;
    rdfs:label "Evidence channel"@en ;
    rdfs:comment "A computational or biophysical source of evidence integrated into function inference, mapped to an Evidence and Conclusion Ontology (ECO) class."@en ;
    rdfs:subClassOf obo:ECO_0000000 .

psf:StructureEvidence a owl:Class ;
    rdfs:label "3D structure evidence"@en ;
    rdfs:comment "Predicted monomer structure (ESMFold) or structural similarity hit (ProstT5/Foldseek against PDB) associated with a protein family."@en ;
    rdfs:subClassOf sio:SIO_000776 .

psf:ComplexEvidence a owl:Class ;
    rdfs:label "Protein complex evidence"@en ;
    rdfs:comment "Predicted two-protein complex (Boltz-2 with deep paired MSA) connecting two protein families."@en ;
    rdfs:subClassOf sio:SIO_010497 .

psf:SelectionEvidence a owl:Class ;
    rdfs:label "Evolutionary selection evidence"@en ;
    rdfs:comment "Phylogenetic (HyPhy BUSTED/aBSREL/FEL) or McDonald-Kreitman evolutionary selection test result for a protein family."@en ;
    rdfs:subClassOf sio:SIO_000776 .

psf:OperonPair a owl:Class ;
    rdfs:label "Conserved operon pair"@en ;
    rdfs:comment "Two protein families co-occurring in conserved genomic proximity across multiple prokaryotic lineages."@en ;
    rdfs:subClassOf sio:SIO_000776 .

psf:HgtEvent a owl:Class ;
    rdfs:label "Horizontal gene transfer event"@en ;
    rdfs:comment "A phylogenetically supported horizontal gene transfer event involving a protein family."@en ;
    rdfs:subClassOf prov:Entity .

### Object Properties

psf:hasFunction a owl:ObjectProperty ;
    rdfs:label "has function"@en ;
    rdfs:comment "Direct shortcut relation from a protein family to a Gene Ontology class predicted at probability >= 0.50 in the active release."@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range owl:Class ;
    skos:closeMatch biolink:enables .

psf:hasFamily a owl:ObjectProperty ;
    rdfs:label "has family"@en ;
    rdfs:comment "Relates a function prediction, suppression, or evidence record to its subject protein family."@en ;
    rdfs:range psf:ProteinFamily ;
    skos:closeMatch sio:SIO_000628 .

psf:hasGoTerm a owl:ObjectProperty ;
    rdfs:label "has Gene Ontology class"@en ;
    rdfs:comment "Relates a function prediction or suppression to its Gene Ontology class (OBO PURL)."@en ;
    skos:closeMatch sio:SIO_000628 .

psf:hasEvidence a owl:ObjectProperty ;
    rdfs:label "has evidence"@en ;
    rdfs:comment "Relates a function prediction to an Evidence and Conclusion Ontology (ECO) class describing a supporting evidence channel."@en ;
    rdfs:domain psf:FunctionPrediction ;
    rdfs:range obo:ECO_0000000 ;
    skos:closeMatch sio:SIO_000772 .

psf:encodesFamily a owl:ObjectProperty ;
    rdfs:label "encodes family"@en ;
    rdfs:comment "Relates a prokaryotic genome to a protein family encoded by one or more genes in that genome."@en ;
    rdfs:domain psf:Genome ;
    rdfs:range psf:ProteinFamily ;
    skos:closeMatch biolink:has_gene .

psf:operonPartner a owl:ObjectProperty , owl:SymmetricProperty ;
    rdfs:label "operon partner"@en ;
    rdfs:comment "Relates two protein families found together in conserved operons."@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range psf:ProteinFamily ;
    skos:closeMatch biolink:coexists_with .

psf:complexPartner a owl:ObjectProperty , owl:SymmetricProperty ;
    rdfs:label "predicted complex partner"@en ;
    rdfs:comment "Relates two protein families predicted to form a physical complex by Boltz-2."@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range psf:ProteinFamily ;
    skos:closeMatch biolink:physically_interacts_with .

psf:hasTaxon a owl:ObjectProperty ;
    rdfs:label "has NCBI taxon"@en ;
    rdfs:comment "Relates a genome to its NCBI Taxonomy IRI where mapped."@en ;
    rdfs:domain psf:Genome ;
    skos:closeMatch biolink:in_taxon .

### Datatype Properties

psf:familyId a owl:DatatypeProperty ;
    rdfs:label "family identifier"@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:string .

psf:familyOrigin a owl:DatatypeProperty ;
    rdfs:label "family origin"@en ;
    rdfs:comment "Whether the family originates from the canonical GSPA catalog or the planetary novel expansion."@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:string .

psf:darknessClass a owl:DatatypeProperty ;
    rdfs:label "functional darkness class"@en ;
    rdfs:comment "Classification of prior annotation availability from profile HMM and sequence database audits."@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:string .

psf:isDark350k a owl:DatatypeProperty ;
    rdfs:label "in 350k dark monomer set"@en ;
    rdfs:comment "True if the family belongs to the 350,000 unannotated protein families with ESMFold 3D monomer structures."@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:boolean .

psf:geneCount a owl:DatatypeProperty ;
    rdfs:label "gene count"@en ;
    rdfs:range xsd:integer ;
    skos:closeMatch sio:SIO_000794 .

psf:genomeCount a owl:DatatypeProperty ;
    rdfs:label "genome count"@en ;
    rdfs:range xsd:integer ;
    skos:closeMatch sio:SIO_000794 .

psf:phylumCount a owl:DatatypeProperty ;
    rdfs:label "phylum count"@en ;
    rdfs:range xsd:integer .

psf:cladeCount a owl:DatatypeProperty ;
    rdfs:label "clade count"@en ;
    rdfs:range xsd:integer .

psf:medianLengthAA a owl:DatatypeProperty ;
    rdfs:label "median amino-acid length"@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:integer ;
    skos:closeMatch sio:SIO_000041 .

psf:topBiome a owl:DatatypeProperty ;
    rdfs:label "top harmonized habitat/biome"@en ;
    rdfs:range xsd:string .

psf:localizationClass a owl:DatatypeProperty ;
    rdfs:label "TMbed localization class"@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:string .

psf:hasSignalPeptide a owl:DatatypeProperty ;
    rdfs:label "has signal peptide"@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:boolean .

psf:tmHelixCount a owl:DatatypeProperty ;
    rdfs:label "transmembrane helix count"@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:integer .

psf:tmBetaCount a owl:DatatypeProperty ;
    rdfs:label "transmembrane beta-strand count"@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:integer .

psf:meanPlddt a owl:DatatypeProperty ;
    rdfs:label "mean ESMFold pLDDT"@en ;
    rdfs:range xsd:float .

psf:pfamAccession a owl:DatatypeProperty ;
    rdfs:label "Pfam accession"@en ;
    rdfs:range xsd:string .

psf:kofamAccession a owl:DatatypeProperty ;
    rdfs:label "KOfam KO accession"@en ;
    rdfs:range xsd:string .

psf:probBefore a owl:DatatypeProperty ;
    rdfs:label "probability before reasoning"@en ;
    rdfs:comment "Calibrated base ensemble marginal probability prior to ontology- and genome-level weighted model counting."@en ;
    rdfs:domain psf:FunctionPrediction ;
    rdfs:range xsd:float ;
    skos:closeMatch sio:SIO_000765 .

psf:probWmc a owl:DatatypeProperty ;
    rdfs:label "probability after WMC (pre-calibration)"@en ;
    rdfs:comment "Marginal probability immediately after weighted model counting, before validation-set logit calibration."@en ;
    rdfs:domain psf:FunctionPrediction ;
    rdfs:range xsd:float ;
    skos:closeMatch sio:SIO_000765 .

psf:probAfter a owl:DatatypeProperty ;
    rdfs:label "probability after reasoning"@en ;
    rdfs:comment "Final calibrated posterior probability after ontology- and genome-level reasoning."@en ;
    rdfs:domain psf:FunctionPrediction ;
    rdfs:range xsd:float ;
    skos:closeMatch sio:SIO_000765 .

psf:reasoningDelta a owl:DatatypeProperty ;
    rdfs:label "reasoning probability delta"@en ;
    rdfs:comment "Change in probability induced by reasoning (probAfter minus probBefore)."@en ;
    rdfs:domain psf:FunctionPrediction ;
    rdfs:range xsd:float .

psf:reasoningRule a owl:DatatypeProperty ;
    rdfs:label "reasoning rule"@en ;
    rdfs:comment "Name of the weighted model counting constraint(s) that lifted or suppressed the prediction (e.g. P2_TMbed, G3_SpaceDust, P1_DAG_MF2CC, P3_Clean)."@en ;
    rdfs:range xsd:string .

psf:genomesLiftedCount a owl:DatatypeProperty ;
    rdfs:label "genomes lifted count"@en ;
    rdfs:comment "Number of genomes in which genome-level reasoning lifted this family-function pair."@en ;
    rdfs:range xsd:integer .

psf:genomesSuppressedCount a owl:DatatypeProperty ;
    rdfs:label "genomes suppressed count"@en ;
    rdfs:comment "Number of genomes in which taxonomic or biophysical constraints suppressed this family-function pair."@en ;
    rdfs:range xsd:integer .

psf:informationAccretion a owl:DatatypeProperty ;
    rdfs:label "information accretion (IA)"@en ;
    rdfs:comment "Information content weight of a Gene Ontology class used to distinguish specific terms (IA >= 2.0) from broad ancestors."@en ;
    rdfs:range xsd:float .

psf:goAspect a owl:DatatypeProperty ;
    rdfs:label "Gene Ontology aspect"@en ;
    rdfs:comment "Short aspect code: MF (molecular_function), BP (biological_process), or CC (cellular_component)."@en ;
    rdfs:range xsd:string .

psf:cohort a owl:DatatypeProperty ;
    rdfs:label "genome cohort"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:string .

psf:domainOfLife a owl:DatatypeProperty ;
    rdfs:label "domain of life"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:string .

psf:gtdbLineage a owl:DatatypeProperty ;
    rdfs:label "GTDB taxonomic lineage"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:string .

psf:phylum a owl:DatatypeProperty ;
    rdfs:label "GTDB phylum"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:string .

psf:genus a owl:DatatypeProperty ;
    rdfs:label "GTDB genus"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:string .

psf:species a owl:DatatypeProperty ;
    rdfs:label "GTDB species"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:string .

psf:biome a owl:DatatypeProperty ;
    rdfs:label "harmonized habitat/biome"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:string .

psf:completeness a owl:DatatypeProperty ;
    rdfs:label "genome completeness percentage"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:float .

psf:contamination a owl:DatatypeProperty ;
    rdfs:label "genome contamination percentage"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:float .

psf:uniqueFamilyCount a owl:DatatypeProperty ;
    rdfs:label "unique family count"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:integer .

psf:wmcLiftCount a owl:DatatypeProperty ;
    rdfs:label "WMC lift count"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:integer .

psf:forbiddenCallsBefore a owl:DatatypeProperty ;
    rdfs:label "taxon-forbidden calls before reasoning"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:integer .

psf:forbiddenCallsAfter a owl:DatatypeProperty ;
    rdfs:label "taxon-forbidden calls after reasoning"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:integer .

psf:hyphySelectionClass a owl:DatatypeProperty ;
    rdfs:label "HyPhy selection class"@en ;
    rdfs:range xsd:string .

psf:bustedFdr a owl:DatatypeProperty ;
    rdfs:label "HyPhy BUSTED FDR"@en ;
    rdfs:range xsd:float .

psf:pdbTarget a owl:DatatypeProperty ;
    rdfs:label "PDB structural hit target"@en ;
    rdfs:range xsd:string .

psf:pdbBitscore a owl:DatatypeProperty ;
    rdfs:label "ProstT5/Foldseek PDB bitscore"@en ;
    rdfs:range xsd:float .

psf:complexIptm a owl:DatatypeProperty ;
    rdfs:label "Boltz-2 complex ipTM"@en ;
    rdfs:range xsd:float .

psf:operonGenomes a owl:DatatypeProperty ;
    rdfs:label "operon co-occurrence genome count"@en ;
    rdfs:range xsd:integer .

psf:operonJaccard a owl:DatatypeProperty ;
    rdfs:label "operon co-occurrence Jaccard index"@en ;
    rdfs:range xsd:float .

psf:nFamiliesGe50 a owl:DatatypeProperty ;
    rdfs:label "families predicted at probability >= 0.50"@en ;
    rdfs:range xsd:integer .

psf:nFamiliesGe20 a owl:DatatypeProperty ;
    rdfs:label "families predicted at probability >= 0.20"@en ;
    rdfs:range xsd:integer .

psf:nDarkFamiliesGe50 a owl:DatatypeProperty ;
    rdfs:label "350k dark families predicted at probability >= 0.50"@en ;
    rdfs:range xsd:integer .

psf:famsIa2Ge50 a owl:DatatypeProperty ;
    rdfs:label "families in genome with specific function (IA >= 2.0, p >= 0.50)"@en ;
    rdfs:domain psf:Genome ;
    rdfs:range xsd:integer .

psf:nPredGe50 a owl:DatatypeProperty ;
    rdfs:label "number of predictions at probability >= 0.50"@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:integer .

psf:nPredGe50Ia2 a owl:DatatypeProperty ;
    rdfs:label "number of specific predictions (IA >= 2.0, p >= 0.50)"@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:integer .

psf:nRescues a owl:DatatypeProperty ;
    rdfs:label "number of reasoning-lifted predictions"@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:integer .

psf:nSuppressions a owl:DatatypeProperty ;
    rdfs:label "number of reasoning-suppressed predictions"@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:integer .

psf:topFunction a owl:ObjectProperty ;
    rdfs:label "highest-probability specific GO function"@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range owl:Class .

psf:topFunctionProb a owl:DatatypeProperty ;
    rdfs:label "probability of highest-probability specific GO function"@en ;
    rdfs:domain psf:ProteinFamily ;
    rdfs:range xsd:float .

psf:evMask a owl:DatatypeProperty ;
    rdfs:label "evidence channel bitmask"@en ;
    rdfs:domain psf:FunctionPrediction ;
    rdfs:range xsd:integer .

psf:complexPtm a owl:DatatypeProperty ;
    rdfs:label "Boltz-2 complex pTM"@en ;
    rdfs:domain psf:ComplexEvidence ;
    rdfs:range xsd:float .

psf:complexConfidence a owl:DatatypeProperty ;
    rdfs:label "Boltz-2 complex confidence score"@en ;
    rdfs:domain psf:ComplexEvidence ;
    rdfs:range xsd:float .

psf:recipientPhylum a owl:DatatypeProperty ;
    rdfs:label "HGT recipient phylum"@en ;
    rdfs:domain psf:HgtEvent ;
    rdfs:range xsd:string .

psf:donorPhylum a owl:DatatypeProperty ;
    rdfs:label "HGT donor phylum"@en ;
    rdfs:domain psf:HgtEvent ;
    rdfs:range xsd:string .

psf:hgtAgeClass a owl:DatatypeProperty ;
    rdfs:label "HGT age class"@en ;
    rdfs:domain psf:HgtEvent ;
    rdfs:range xsd:string .
