@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix geo: <http://www.opengis.net/ont/geosparql#> .
@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 sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .
@prefix : <https://w3id.org/agrisemantics/AGRITRUST/> .

<https://w3id.org/agrisemantics/AGRITRUST/> a owl:Ontology ;
    rdfs:label "AgriTrust Core Ontology" ;
    dcterms:contributor "Ivan Bergier, Jayme Barbedo, Edson Bolfe, Debora Drucker, Filipi Soares." ;
    dcterms:created "2025-11-07"^^xsd:date ;
    dcterms:creator "Embrapa" ;
    dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
    dcterms:modified "2026-11-23"^^xsd:date ;
    rdfs:comment "A core ontology for agricultural traceability and trusted data sharing across multiple blockchain providers and platforms. Updated to support EUDR and Brazilian Forest Code (SICAR) compliance evidence, per Bergier et al. (2026), Front. Sustain. Food Syst. 10:2003270." ;
    owl:versionInfo "1.1.0" .

#################################################################
# SHACL SHAPES
#################################################################

:AssetShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:message "An Asset must have a unique identifier." ;
            sh:minCount 1 ;
            sh:path :uniqueId ],
        [ sh:class :DataProducer ;
            sh:message "An Asset must be owned by a Data Producer." ;
            sh:minCount 1 ;
            sh:path :ownedBy ] ;
    sh:targetClass :Asset .

:SICARRegistrationStatusShape a sh:NodeShape ;
    rdfs:comment "Any Asset claiming Forest Code compliance must be linked to exactly one SICAR Imovel whose status is Active, Suspended or Cancelled (Section 2.2, 2.5)." ;
    sh:property [ sh:class :SICARImovel ;
            sh:maxCount 1 ;
            sh:message "An Asset claiming Forest Code compliance must be linked to exactly one SICAR Imovel." ;
            sh:minCount 1 ;
            sh:path :hasSICARRegistration ] ;
    sh:targetClass :Asset ;
    sh:sparql [ sh:message "SICAR Imovel status must be one of Active, Suspended or Cancelled." ;
            sh:select """
                SELECT $this ?status
                WHERE {
                    $this :hasSICARRegistration ?imovel .
                    ?imovel :sicarStatus ?status .
                    FILTER (?status NOT IN ("Active", "Suspended", "Cancelled"))
                }
            """ ] .

:SICARGeometryQualityShape a sh:NodeShape ;
    rdfs:comment "Preliminary data-quality check: SICAR Imovel must carry a geometry and a declared area (Section 2.5)." ;
    sh:property [ sh:class geo:Geometry ;
            sh:message "A SICAR Imovel must carry at least one geo:Geometry." ;
            sh:minCount 1 ;
            sh:path :hasGeometry ],
        [ sh:datatype xsd:decimal ;
            sh:message "A SICAR Imovel must declare an area in hectares." ;
            sh:minCount 1 ;
            sh:path :areaHectares ] ;
    sh:targetClass :SICARImovel .

:EUDRScreeningCredentialShape a sh:NodeShape ;
    rdfs:comment "A screening certificate must carry the EUDR legal cutoff, an NDVI result, the SICAR code of the assessed establishment, and the validation scope (Sections 2.1, 3.1, 6.1.2)." ;
    sh:property [ sh:class :NDVIObservation ;
            sh:maxCount 1 ;
            sh:message "An EUDR screening certificate must carry exactly one NDVI observation." ;
            sh:minCount 1 ;
            sh:path :hasObservation ],
        [ sh:datatype xsd:date ;
            sh:hasValue "2020-12-31"^^xsd:date ;
            sh:message "EUDR screening must reference the legal cutoff of 2020-12-31." ;
            sh:minCount 1 ;
            sh:path :legalCutoffDate ],
        [ sh:datatype xsd:string ;
            sh:message "An EUDR screening certificate must reference the SICAR code of the assessed establishment." ;
            sh:minCount 1 ;
            sh:path :sicarCode ],
        [ sh:datatype xsd:string ;
            sh:message "An EUDR screening certificate must declare its validation scope (e.g., 'simplified_proxy', 'full_assessment')." ;
            sh:minCount 1 ;
            sh:path :validationScope ] ;
    sh:targetClass :Certificate ;
    sh:sparql [ sh:message "When validation scope is 'simplified_proxy', the certificate must enumerate what was not assessed via :notAssessed." ;
            sh:select """
                SELECT $this
                WHERE {
                    $this :validationScope "simplified_proxy" .
                    FILTER NOT EXISTS { $this :notAssessed ?x }
                }
            """ ] .

:ValidationScopeShape a sh:NodeShape ;
    rdfs:comment "Any artifact carrying a validation scope must also carry a human-readable list of what was not assessed (Section 3.1, 6.3.3)." ;
    sh:targetSubjectsOf :validationScope ;
    sh:property [ sh:datatype xsd:string ;
            sh:message "An artifact with a validation scope must enumerate the items not assessed." ;
            sh:minCount 1 ;
            sh:path :notAssessed ] .

:CertificateShape a sh:NodeShape ;
    sh:property [ sh:class :Certifier ;
            sh:message "A Certificate must be certified by a Certifier." ;
            sh:minCount 1 ;
            sh:path :certifiedBy ],
        [ sh:datatype xsd:string ;
            sh:message "A Certificate must specify a compliance standard." ;
            sh:minCount 1 ;
            sh:path :standard ],
        [ sh:datatype xsd:string ;
            sh:message "A Certificate must have an issuer DID." ;
            sh:minCount 1 ;
            sh:path :issuer ],
        [ sh:datatype xsd:dateTime ;
            sh:message "A Certificate must have an issuance date." ;
            sh:minCount 1 ;
            sh:path :issuanceDate ] ;
    sh:targetClass :Certificate .

:DataContractODRLShape a sh:NodeShape ;
    sh:property [ sh:class :ODRLPolicy ;
            sh:maxCount 1 ;
            sh:message "A Data Contract must be linked to one executable ODRL policy." ;
            sh:minCount 1 ;
            sh:path :hasODRLPolicy ],
        [ sh:class :Agent ;
            sh:message "A Data Contract must specify at least one assignee (e.g., a Data Consumer)." ;
            sh:minCount 1 ;
            sh:path :hasPolicyAssignee ] ;
    sh:sparql [ sh:message "Contract validity end date must be in the future" ;
            sh:select """
                SELECT $this ?validUntil
                WHERE {
                    $this :validUntil ?validUntil .
                    FILTER (?validUntil <= NOW())
                }
            """ ] ;
    sh:targetClass :DataContract .

:DataContractShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:dateTime ;
            sh:message "A Data Contract must have a creation date." ;
            sh:minCount 1 ;
            sh:path :creationDate ],
        [ sh:datatype xsd:dateTime ;
            sh:message "A Data Contract must have a valid from date." ;
            sh:minCount 1 ;
            sh:path :validFrom ] ;
    sh:targetClass :DataContract .

:ProcessShape a sh:NodeShape ;
    sh:property [ sh:class :Asset ;
            sh:message "A Process must have at least one input Asset." ;
            sh:minCount 1 ;
            sh:path :hasInput ],
        [ sh:class :Asset ;
            sh:message "A Process must have at least one output Asset." ;
            sh:minCount 1 ;
            sh:path :hasOutput ] ;
    sh:targetClass :Process .

:TokenShape a sh:NodeShape ;
    sh:property [ sh:class :Asset ;
            sh:maxCount 1 ;
            sh:message "A Token must represent exactly one Asset." ;
            sh:minCount 1 ;
            sh:path :represents ],
        [ sh:datatype xsd:dateTime ;
            sh:message "A Token must have a creation date." ;
            sh:minCount 1 ;
            sh:path :creationDate ],
        [ sh:class :BlockchainProvider ;
            sh:message "A Token must be registered on a blockchain." ;
            sh:minCount 1 ;
            sh:path :registeredOnBlockchain ] ;
    sh:targetClass :Token .

#################################################################
# CLASSES (new in v1.1.0 marked in the comment)
#################################################################

:CollectiveAsset a owl:Class ;
    rdfs:label "Collective Asset" ;
    rdfs:comment "An asset tracked as a batch or collective (e.g., grain, coffee)." ;
    rdfs:subClassOf :Asset .

:CrossChainToken a owl:Class ;
    rdfs:label "Cross-Chain Token" ;
    rdfs:comment "A token that can be referenced across multiple blockchain providers." ;
    rdfs:subClassOf :Token .

:DataConsumer a owl:Class ;
    rdfs:label "Data Consumer" ;
    rdfs:comment "Entity that uses data under specific terms for verification or analysis." ;
    rdfs:subClassOf :Agent .

:GovernanceAuthority a owl:Class ;
    rdfs:label "Governance Authority" ;
    rdfs:comment "Entity responsible for maintaining ontology standards and cross-provider interoperability." ;
    rdfs:subClassOf :Agent .

:IndividualAsset a owl:Class ;
    rdfs:label "Individual Asset" ;
    rdfs:comment "An asset tracked as an individual unit (e.g., livestock)." ;
    rdfs:subClassOf :Asset .

:CrossChainReference a owl:Class ;
    rdfs:label "Cross-Chain Reference" ;
    rdfs:comment "A reference linking entities across different blockchain providers." ;
    rdfs:subClassOf :Document .

:Dataset a owl:Class ;
    rdfs:label "Dataset" ;
    rdfs:comment "A collection of observations or derived data." ;
    rdfs:subClassOf dcat:Dataset,
        <https://www.w3.org/TR/prov-o#Entity>,
        <https://www.w3.org/TR/vocab-ssn-2023#Collection> .

:Certifier a owl:Class ;
    rdfs:label "Certifier" ;
    rdfs:comment "Entity responsible for auditing and issuing compliance certificates." ;
    rdfs:subClassOf :Agent .

:ODRLPolicy a owl:Class ;
    rdfs:label "ODRL Policy" ;
    rdfs:comment "A machine-executable policy expressing permissions, prohibitions, and duties using the ODRL vocabulary." ;
    rdfs:subClassOf :Document .

:PlatformProvider a owl:Class ;
    rdfs:label "Platform Provider" ;
    rdfs:comment "Entity providing technical infrastructure for tokenization and data sharing." ;
    rdfs:subClassOf :Agent .

:DataProducer a owl:Class ;
    rdfs:label "Data Producer" ;
    rdfs:comment "Entity that originates agricultural data and assets." ;
    rdfs:subClassOf :Agent .

:DataProducer owl:disjointWith :DataConsumer .

:Location a owl:Class ;
    rdfs:label "Location" ;
    rdfs:comment "A physical location where agricultural activities occur." ;
    rdfs:subClassOf <https://www.w3.org/TR/prov-o#Location> .

:BlockchainProvider a owl:Class ;
    rdfs:label "Blockchain Provider" ;
    rdfs:comment "Entity providing blockchain infrastructure for the ecosystem." ;
    rdfs:subClassOf :PlatformProvider .

:Document a owl:Class ;
    rdfs:label "Document" ;
    rdfs:comment "A representation of recorded information." ;
    rdfs:subClassOf <https://www.w3.org/TR/prov-o#Entity> .

:EfficiencyMetric a owl:Class ;
    rdfs:label "Efficiency Metric" ;
    rdfs:comment "A platform-defined metric for measuring operational efficiency." ;
    rdfs:subClassOf :Document .

:Observation a owl:Class ;
    rdfs:label "Observation" ;
    rdfs:comment "An act of sensing or measuring to produce a result." ;
    rdfs:subClassOf <https://www.w3.org/TR/vocab-ssn-2023#Observation> .

# --- NEW in v1.1.0 ---------------------------------------------------
:NDVIObservation a owl:Class ;
    rdfs:label "NDVI Observation" ;
    rdfs:comment "A satellite-derived Normalized Difference Vegetation Index observation used as evidence for EUDR deforestation-free screening (Section 2.6, 6.1.2)." ;
    rdfs:subClassOf :Observation .

:SICARImovel a owl:Class ;
    rdfs:label "SICAR Imovel" ;
    rdfs:comment "A rural establishment registered in the Brazilian Rural Environmental Registry (CAR/SICAR), the regulatory object of the Forest Code (Section 2.2, 2.5)." ;
    rdfs:subClassOf :Document .

:SICARTheme a owl:Class ;
    rdfs:label "SICAR Theme" ;
    rdfs:comment "A thematic layer of a SICAR registration (APP, Legal Reserve, native vegetation, consolidated area, hydrography, restricted use)." ;
    rdfs:subClassOf :Document .
# ---------------------------------------------------------------------

:Process a owl:Class ;
    rdfs:label "Process" ;
    rdfs:comment "An activity or operation that transforms or handles assets." ;
    rdfs:subClassOf <https://www.w3.org/TR/prov-o#Activity> .

:Agent a owl:Class ;
    rdfs:label "Agent" ;
    rdfs:comment "An entity participating in the agricultural ecosystem." ;
    rdfs:subClassOf dcat:Agent,
        <https://www.w3.org/TR/prov-o#Agent> .

:Token a owl:Class ;
    rdfs:label "Token" ;
    rdfs:comment "A digital representation of a physical asset or data within the governed ecosystem." ;
    rdfs:subClassOf <https://www.w3.org/TR/prov-o#Entity> .

:Certificate a owl:Class ;
    rdfs:label "Certificate" ;
    rdfs:comment "A verifiable credential attesting to compliance or quality standards. Can specialise into EUDR screening credentials (Section 3.1, 6.3.1)." ;
    rdfs:subClassOf :Document,
        <https://www.w3.org/2018/credentials#VerifiableCredential> .

:DataContract a owl:Class ;
    rdfs:label "Data Contract" ;
    rdfs:comment "A machine-readable agreement governing data sharing terms and conditions." ;
    rdfs:subClassOf dcat:Resource,
        :Document .

:Asset a owl:Class ;
    rdfs:label "Asset" ;
    rdfs:comment "A physical or digital asset that can be tokenized and tracked." ;
    rdfs:subClassOf <https://www.w3.org/TR/prov-o#Entity> .

#################################################################
# OBJECT PROPERTIES
#################################################################

:blockchainName a owl:DatatypeProperty ;
    rdfs:label "blockchain name" ;
    rdfs:comment "The name of the blockchain implementation." ;
    rdfs:domain :BlockchainProvider ;
    rdfs:range xsd:string .

:blockchainTransactionId a owl:DatatypeProperty ;
    rdfs:label "blockchain transaction ID" ;
    rdfs:comment "The transaction identifier on the specific blockchain." ;
    rdfs:domain [ owl:unionOf ( :Token :Certificate :DataContract ) ] ;
    rdfs:range xsd:string .

:consensusMechanism a owl:DatatypeProperty ;
    rdfs:label "consensus mechanism" ;
    rdfs:comment "The consensus algorithm used by the blockchain." ;
    rdfs:domain :BlockchainProvider ;
    rdfs:range xsd:string .

:coversAsset a owl:ObjectProperty ;
    rdfs:label "covers asset" ;
    rdfs:comment "Specifies which asset is governed by this data contract." ;
    rdfs:domain :DataContract ;
    rdfs:range :Asset .

:coversObservation a owl:ObjectProperty ;
    rdfs:label "covers observation" ;
    rdfs:comment "Specifies which observations are governed by this data contract." ;
    rdfs:domain :DataContract ;
    rdfs:range :Observation .

:governedBy a owl:ObjectProperty ;
    rdfs:label "governed by" ;
    rdfs:comment "Links a token to the data contract governing its use." ;
    rdfs:domain :Token ;
    rdfs:range :DataContract .

:hasCertificate a owl:ObjectProperty ;
    rdfs:label "has certificate" ;
    rdfs:comment "Associates an asset with its verification certificate." ;
    rdfs:domain :Asset ;
    rdfs:range :Certificate .

:hasCrossChainReference a owl:ObjectProperty ;
    rdfs:label "has cross-chain reference" ;
    rdfs:comment "Links an entity to its references on other blockchain providers." ;
    rdfs:domain [ owl:unionOf ( :Token :Certificate :Asset ) ] ;
    rdfs:range :CrossChainReference .

:hasEfficiencyMetric a owl:ObjectProperty ;
    rdfs:label "has efficiency metric" ;
    rdfs:comment "Links entities to platform-defined efficiency metrics." ;
    rdfs:domain [ owl:unionOf ( :Process :Asset :DataProducer ) ] ;
    rdfs:range :EfficiencyMetric .

:hasGeometry a owl:ObjectProperty ;
    rdfs:label "has geometry" ;
    rdfs:comment "Links a location or a SICAR Imovel to its spatial representation." ;
    rdfs:domain [ owl:unionOf ( :Location :SICARImovel ) ] ;
    rdfs:range geo:Geometry .

:hasObservation a owl:ObjectProperty ;
    rdfs:label "has observation" ;
    rdfs:comment "Links entities to relevant observations." ;
    rdfs:domain [ owl:unionOf ( :Dataset :Asset :Process :Location :SICARImovel ) ] ;
    rdfs:range :Observation .

:hasOperatingLocation a owl:ObjectProperty ;
    rdfs:label "has operating location" ;
    rdfs:comment "Links an Agent (e.g., a DataProducer) to a Location where it primarily operates." ;
    rdfs:domain :Agent ;
    rdfs:range :Location .

:hasProvenance a owl:ObjectProperty ;
    rdfs:label "has provenance" ;
    rdfs:comment "Links an asset to its creation/transformation processes." ;
    rdfs:domain :Asset ;
    rdfs:range :Process .

:managedByPlatform a owl:ObjectProperty ;
    rdfs:label "managed by platform" ;
    rdfs:comment "Links entities to their managing platform provider." ;
    rdfs:domain [ owl:unionOf ( :Token :Process :Asset :Certificate :EfficiencyMetric :Observation ) ] ;
    rdfs:range :PlatformProvider .

:metricName a owl:DatatypeProperty ;
    rdfs:label "metric name" ;
    rdfs:domain :EfficiencyMetric ;
    rdfs:range xsd:string .

:metricValue a owl:DatatypeProperty ;
    rdfs:label "metric value" ;
    rdfs:comment "The calculated value of the efficiency metric." ;
    rdfs:domain :EfficiencyMetric ;
    rdfs:range xsd:string .

:observationDate a owl:DatatypeProperty ;
    rdfs:label "observation date" ;
    rdfs:domain :Observation ;
    rdfs:range xsd:dateTime .

:observationUnit a owl:ObjectProperty ;
    rdfs:label "observation unit" ;
    rdfs:domain :Observation ;
    rdfs:range <http://qudt.org/schema/qudt/Unit> .

:observationValue a owl:DatatypeProperty ;
    rdfs:label "observation value" ;
    rdfs:comment "The value of the observation (platforms can specialize datatypes)." ;
    rdfs:domain :Observation ;
    rdfs:range xsd:string .

:proof a owl:DatatypeProperty ;
    rdfs:label "cryptographic proof" ;
    rdfs:comment "The cryptographic signature or proof of the credential (e.g., JWT, Linked Data Proof). Essential for W3C VC verification." ;
    rdfs:domain :Certificate ;
    rdfs:range xsd:string .

:purpose a owl:DatatypeProperty ;
    rdfs:label "purpose" ;
    rdfs:comment "The intended use of the data as specified in the contract." ;
    rdfs:domain :DataContract ;
    rdfs:range xsd:string .

:validUntil a owl:DatatypeProperty ;
    rdfs:label "valid until" ;
    rdfs:comment "The end date and time of the contract's validity." ;
    rdfs:domain :DataContract ;
    rdfs:range xsd:dateTime .

:certifiedBy a owl:ObjectProperty ;
    rdfs:label "certified by" ;
    rdfs:comment "Links a certificate to the certifying entity." ;
    rdfs:domain :Certificate ;
    rdfs:range :Certifier .

:hasInput a owl:ObjectProperty ;
    rdfs:label "has input" ;
    rdfs:comment "Asset consumed by a process." ;
    rdfs:domain :Process ;
    rdfs:range :Asset .

:hasODRLPolicy a owl:ObjectProperty ;
    rdfs:label "has ODRL policy" ;
    rdfs:comment "Links an AgriTrust Data Contract to its formal, executable ODRL policy representation." ;
    rdfs:domain :DataContract ;
    rdfs:range :ODRLPolicy .

:hasOutput a owl:ObjectProperty ;
    rdfs:label "has output" ;
    rdfs:comment "Asset produced by a process." ;
    rdfs:domain :Process ;
    rdfs:range :Asset .

:hasPolicyAssignee a owl:ObjectProperty ;
    rdfs:label "has policy assignee" ;
    rdfs:comment "Identifies the Agent (e.g., a DataConsumer) to whom the contract's permissions are assigned." ;
    rdfs:domain :DataContract ;
    rdfs:range :Agent .

:issuanceDate a owl:DatatypeProperty ;
    rdfs:label "issuance date" ;
    rdfs:comment "The date and time when the credential was issued. Essential for W3C VC compliance." ;
    rdfs:domain :Certificate ;
    rdfs:range xsd:dateTime .

:issuer a owl:DatatypeProperty ;
    rdfs:label "issuer (DID)" ;
    rdfs:comment "The Decentralized Identifier (DID) of the credential issuer. Essential for W3C VC compliance." ;
    rdfs:domain :Certificate ;
    rdfs:range xsd:string .

:ownedBy a owl:ObjectProperty ;
    rdfs:label "owned by" ;
    rdfs:comment "Links an asset to its owner (data sovereignty)." ;
    rdfs:domain :Asset ;
    rdfs:range :DataProducer ;
    owl:equivalentProperty dcat:contactPoint .

:registeredOnBlockchain a owl:ObjectProperty ;
    rdfs:label "registered on blockchain" ;
    rdfs:comment "Links an entity to the blockchain provider where it is registered." ;
    rdfs:domain [ owl:unionOf ( :Token :Certificate :DataContract ) ] ;
    rdfs:range :BlockchainProvider .

:represents a owl:ObjectProperty ;
    rdfs:label "represents" ;
    rdfs:comment "Links a token to the asset it digitally represents." ;
    rdfs:domain :Token ;
    rdfs:range :Asset .

:standard a owl:DatatypeProperty ;
    rdfs:label "standard" ;
    rdfs:comment "The compliance standard or certification scheme (e.g., EUDR, Forest Code)." ;
    rdfs:domain :Certificate ;
    rdfs:range xsd:string .

:uniqueId a owl:DatatypeProperty ;
    rdfs:label "unique identifier" ;
    rdfs:domain [ owl:unionOf ( :Asset :Token ) ] ;
    rdfs:range xsd:string ;
    owl:equivalentProperty dcterms:identifier .

:validFrom a owl:DatatypeProperty ;
    rdfs:label "valid from" ;
    rdfs:comment "The start date and time of the contract's validity." ;
    rdfs:domain :DataContract ;
    rdfs:range xsd:dateTime .

:creationDate a owl:DatatypeProperty ;
    rdfs:label "creation date" ;
    rdfs:domain [ owl:unionOf ( :Token :Asset :Certificate :DataContract :EfficiencyMetric ) ] ;
    rdfs:range xsd:dateTime ;
    owl:equivalentProperty dcterms:issued .

#################################################################
# NEW PROPERTIES in v1.1.0 — EUDR & Forest Code evidence
#################################################################

:hasSICARRegistration a owl:ObjectProperty ;
    rdfs:label "has SICAR registration" ;
    rdfs:comment "Links an Asset to the SICAR Imovel that verifies its Forest Code status (Section 2.2)." ;
    rdfs:domain :Asset ;
    rdfs:range :SICARImovel .

:hasSICARTheme a owl:ObjectProperty ;
    rdfs:label "has SICAR theme" ;
    rdfs:comment "Links a SICAR Imovel to one of its thematic layers (APP, Legal Reserve, native vegetation, hydrography, restricted use)." ;
    rdfs:domain :SICARImovel ;
    rdfs:range :SICARTheme .

:sicarCode a owl:DatatypeProperty ;
    rdfs:label "SICAR code" ;
    rdfs:comment "The unique identifier of a rural establishment in SICAR (Cadastro Ambiental Rural)." ;
    rdfs:domain :SICARImovel ;
    rdfs:range xsd:string .

:sicarStatus a owl:DatatypeProperty ;
    rdfs:label "SICAR status" ;
    rdfs:comment "Registration status of a SICAR Imovel: Active, Suspended, Cancelled, UnderReview (Section 2.5)." ;
    rdfs:domain :SICARImovel ;
    rdfs:range xsd:string .

:themeType a owl:DatatypeProperty ;
    rdfs:label "theme type" ;
    rdfs:comment "The type of a SICAR theme: APP, LegalReserve, NativeVegetation, ConsolidatedArea, Hydrography, RestrictedUse." ;
    rdfs:domain :SICARTheme ;
    rdfs:range xsd:string .

:areaHectares a owl:DatatypeProperty ;
    rdfs:label "area (hectares)" ;
    rdfs:comment "The declared area of a SICAR Imovel or SICAR Theme, in hectares." ;
    rdfs:domain [ owl:unionOf ( :SICARImovel :SICARTheme ) ] ;
    rdfs:range xsd:decimal .

:numberOfFiscalModules a owl:DatatypeProperty ;
    rdfs:label "number of fiscal modules" ;
    rdfs:comment "The number of fiscal modules of a SICAR Imovel (used to scale Forest Code obligations)." ;
    rdfs:domain :SICARImovel ;
    rdfs:range xsd:decimal .

:biome a owl:DatatypeProperty ;
    rdfs:label "biome" ;
    rdfs:comment "The Brazilian biome of the assessed establishment (Amazon, Cerrado, Caatinga, AtlanticForest, Pampa, Pantanal); drives NDVI threshold and Forest Code RL percentage (Section 2.6)." ;
    rdfs:domain [ owl:unionOf ( :SICARImovel :NDVIObservation ) ] ;
    rdfs:range xsd:string .

:baselineDate a owl:DatatypeProperty ;
    rdfs:label "baseline date" ;
    rdfs:comment "The reference date of the NDVI baseline; for EUDR screening this is 2020-12-31." ;
    rdfs:domain :NDVIObservation ;
    rdfs:range xsd:date .

:legalCutoffDate a owl:DatatypeProperty ;
    rdfs:label "legal cutoff date" ;
    rdfs:comment "The statutory cutoff date of the applicable regulation (e.g., 2020-12-31 for EUDR, 2008-07-22 for Forest Code consolidated areas)." ;
    rdfs:domain [ owl:unionOf ( :Certificate :NDVIObservation :SICARImovel ) ] ;
    rdfs:range xsd:date .

:changeValue a owl:DatatypeProperty ;
    rdfs:label "change value" ;
    rdfs:comment "The measured NDVI change relative to the baseline." ;
    rdfs:domain :NDVIObservation ;
    rdfs:range xsd:decimal .

:changeThreshold a owl:DatatypeProperty ;
    rdfs:label "change threshold" ;
    rdfs:comment "The parametric NDVI change threshold applied; biome-specific and configurable without architectural change (Section 6.3.3)." ;
    rdfs:domain :NDVIObservation ;
    rdfs:range xsd:decimal .

:validationScope a owl:DatatypeProperty ;
    rdfs:label "validation scope" ;
    rdfs:comment "Indicates the coverage of a certificate: 'simplified_proxy' (screening) or 'full_assessment'. Allows distinguishing EUDR screening credentials from full compliance credentials (Section 3.1, 6.3.1)." ;
    rdfs:domain :Certificate ;
    rdfs:range xsd:string .

:notAssessed a owl:DatatypeProperty ;
    rdfs:label "not assessed" ;
    rdfs:comment "Enumerates the regulatory checks not covered by the credential (e.g., 'APP spatial validation', 'Legal Reserve spatial validation', 'composite multicriteria score')." ;
    rdfs:domain :Certificate ;
    rdfs:range xsd:string .

#################################################################
# ODRL POLICY TEMPLATE (illustrative default; to be instantiated per contract)
#################################################################

:EUDRComplianceAccessPolicy a :ODRLPolicy ;
    rdfs:label "EUDR Compliance Access Policy" ;
    rdfs:comment "Default ODRL policy template: a Data Producer authorises a Certifier to read and validate the asset for EUDR screening for a bounded period, on the duty of returning a verifiable credential (Section 3.1, 5)." ;
    odrl:profile <https://w3id.org/agrisemantics/AGRITRUST/> ;
    odrl:permission [
        a odrl:Permission ;
        odrl:action odrl:read ;
        odrl:target :Asset ;
        odrl:assigner :DataProducer ;
        odrl:assignee :Certifier ;
        odrl:constraint [
            a odrl:Constraint ;
            odrl:leftOperand odrl:purpose ;
            odrl:operator odrl:eq ;
            odrl:rightOperand "EUDRScreening"
        ]
    ] ;
    odrl:duty [
        a odrl:Duty ;
        odrl:action odrl:inform ;
        odrl:target :Certificate ;
        odrl:assigner :Certifier ;
        odrl:assignee :DataProducer
    ] .

#################################################################
# END OF FILE — v1.1.0, 2026-11-23
#################################################################