@prefix copi:    <https://www.inf.ufrgs.br/ontologies/copi/> .
@prefix :         <https://www.inf.ufrgs.br/ontologies/copi/> .
@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 bfo:      <http://purl.obolibrary.org/obo/> .
@prefix iof-core: <https://spec.industrialontologies.org/ontology/construct/> .
@prefix iof-av:   <https://spec.industrialontologies.org/ontology/annotation/> .
@prefix skos:     <http://www.w3.org/2004/02/skos/core#> .
@prefix qudt:     <http://qudt.org/schema/qudt/> .
@prefix dcterms:  <http://purl.org/dc/terms/> .
@prefix foaf:     <http://xmlns.com/foaf/0.1/> .
@prefix apv:      <http://inf.ufrgs.br/ontologies/apv#> .

### COPI — Core Ontology for Petroleum Installations
### Class module: Wellhead
<https://www.inf.ufrgs.br/ontologies/copi>
    rdf:type owl:Ontology ;
    dcterms:title "Core Ontology for Petroleum Installations (COPI)"@en ;
    dcterms:title "Ontologia Core para Instalações de Petróleo (COPI)"@pt-br ;
    dcterms:description "BFO/IOF-Core conformant ontology of equipment classes for petroleum production plants, developed using the five-step RDL enrichment method."@en ;
    skos:scopeNote "Material artifacts (bfo:material_entity) that (i) are part of a petroleum production plant, and (ii) bear at least one function whose realization involves the transport (e.g. production and injection), processing (separation and other processes), control, monitoring, measurement, containment or offloading of material or energy."@en ;
    skos:scopeNote "Artefatos materiais (bfo:material_entity) que (i) fazem parte de uma planta de produção de petróleo, e (ii) possuem ao menos uma função cuja realização envolve o transporte (p. ex. produção e injeção), processamento (separação e outros processos), controle, monitoramento, medição, contenção ou escoamento de material ou energia."@pt-br ;
    skos:scopeNote "COPI provides high-level equipment categories defined by function to demonstrate the defined-class mechanism. Equipment subtypes are annotated with references to CFIHOS and PCA RDL terms. COPI is not a reference data library; organizations should use CFIHOS, PCA RDL, or ISO 14224 for comprehensive equipment classification."@en ;
    skos:scopeNote "COPI fornece categorias de alto nível de equipamentos definidas por função para demonstrar o mecanismo de classe definida. Os subtipos de equipamentos são anotados com referências aos termos do CFIHOS e do PCA RDL. COPI não é uma biblioteca de dados de referência; organizações devem utilizar o CFIHOS, o PCA RDL ou a ISO 14224 para classificação abrangente de equipamentos."@pt-br ;
    owl:versionInfo "1.1.0" ;
    owl:imports <https://spec.industrialontologies.org/ontology/core/Core/> ;
    owl:imports <http://purl.obolibrary.org/obo/bfo/2020/bfo.owl> ;
    dcterms:creator "Nicolau Oyhenard dos Santos"@en ;
    dcterms:contributor "Cauã Antunes" ;
    dcterms:contributor "Haroldo Rojas" ;
    dcterms:contributor "Rafael Petry" ;
    dcterms:contributor "Régis Romeu" ;
    dcterms:contributor "Mara Abel" ;
    dcterms:isPartOf <https://inf.ufrgs.br/projetos/OntoKG> ;
    dcterms:publisher "Universidade Federal do Rio Grande do Sul (UFRGS)"@en ;
    dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
    dcterms:created "2026-04-08"^^xsd:date ;
    dcterms:modified "2026-10-07"^^xsd:date ;
    apv:GlobalMinLanguageCoverage "en pt-br" ;
    apv:ClassURIFormationRule "https://www[.]inf[.]ufrgs[.]br/ontologies/copi/(COPI_[0-9]{7}|[A-Z][A-Za-z0-9]*)" ;
    apv:ClassMinAnnotationCoverage "rdfs:label https://spec.industrialontologies.org/ontology/annotation/naturalLanguageDefinition" .

iof-av:naturalLanguageDefinition rdf:type owl:AnnotationProperty ;
    apv:MinAnnotationLength 20 .

### Identity-giving function
:COPI_0000695 rdf:type owl:Class ;  # WellSurfaceControlFunction
    rdfs:subClassOf iof-core:DesignedFunction ;
    rdfs:subClassOf [
        rdf:type owl:Restriction ;
        owl:onProperty bfo:BFO_0000054 ;  # realizedIn
        owl:allValuesFrom :COPI_0000696  # WellSurfaceControlProcess
    ] ;
    rdfs:subClassOf [
        rdf:type owl:Restriction ;
        owl:onProperty bfo:BFO_0000054 ;  # realizedIn
        owl:someValuesFrom :COPI_0000696  # WellSurfaceControlProcess
    ] ;
    rdfs:label "well surface control function"@en ;
    rdfs:label "função de controle de superfície do poço"@pt-br .

### Process type
:COPI_0000696 rdf:type owl:Class ;  # WellSurfaceControlProcess
    rdfs:subClassOf :COPI_0000010 ;  # FlowControl
    rdfs:label "well surface control process"@en ;
    rdfs:label "processo de controle de superfície do poço"@pt-br .

:COPI_0000010 rdf:type owl:Class .  # FlowControl

:COPI_0000696  # WellSurfaceControlProcess
    rdfs:subClassOf [
        rdf:type owl:Restriction ;
        owl:onProperty iof-core:hasInput ;
        owl:someValuesFrom :COPI_0000390  # FormationFluid
    ] ;
    rdfs:subClassOf [
        rdf:type owl:Restriction ;
        owl:onProperty iof-core:hasSpecifiedOutput ;
        owl:someValuesFrom :COPI_0000390  # FormationFluid
    ] .

### Equipment universal: Wellhead
:COPI_0000377 rdf:type owl:Class ;  # Wellhead
    owl:equivalentClass [
        rdf:type owl:Class ;
        owl:intersectionOf (
            iof-core:Assembly
            [
        rdf:type owl:Restriction ;
        owl:onProperty iof-core:hasFunction ;  # Object branch (MaterialArtifact/Assembly/Object/FiatObjectPart)
        owl:someValuesFrom :COPI_0000695  # WellSurfaceControlFunction
    ]
            [
        rdf:type owl:Restriction ;
        owl:onProperty iof-core:hasComponentPartAtAllTimes ;
        owl:someValuesFrom :COPI_0000697  # WellheadSpool
    ]
        )
    ] ;
    rdfs:label "wellhead"@en ;
    rdfs:label "cabeçal de poço"@pt-br ;
    iof-av:naturalLanguageDefinition "A wellhead is an assembly that bears a well surface control function and provides the structural and control interface between a wellbore and surface equipment."@en ;
    skos:definition "A wellhead is an assembly that bears a well surface control function and provides the structural and control interface between a wellbore and surface equipment."@en ;
    iof-av:naturalLanguageDefinition "Um cabeçal de poço é um conjunto que porta uma função de controle superficial do poço e fornece a interface estrutural e de controle entre um poço e os equipamentos de superfície."@pt-br ;
    iof-av:semiFormalNaturalLanguageAxiom "Every wellhead is an assembly that bears a well surface control function and has component parts including casing hangers and connection to wellbore"@en ;
    iof-av:firstOrderLogicAxiom "∀x(Wellhead(x) ↔ Assembly(x) ∧ ∃f(WellSurfaceControlFunction(f) ∧ bearerOf(x,f)) ∧ ∃h(CasingHanger(h) ∧ hasComponentPartAtAllTimes(x,h)) ∧ ∃w(Wellbore(w) ∧ hasConnectionTo(x,w)))"@en ;

:COPI_0000697 rdf:type owl:Class ;  # WellheadSpool
    rdfs:subClassOf iof-core:MaterialArtifact ;
    rdfs:label "spool de cabeçal de poço"@pt-br ;
    rdfs:label "wellhead spool"@en .

# Disjointness: Wellhead and Separator
[] rdf:type owl:AllDisjointClasses ;
    owl:members ( :COPI_0000377 :COPI_0000084 ) .  # Wellhead, Separator

# Disjointness: Wellhead and HeatExchanger
[] rdf:type owl:AllDisjointClasses ;
    owl:members ( :COPI_0000377 :COPI_0000092 ) .  # Wellhead, HeatExchanger

# Disjointness: Wellhead and Compressor
[] rdf:type owl:AllDisjointClasses ;
    owl:members ( :COPI_0000377 :COPI_0000073 ) .  # Wellhead, Compressor
