PREFIX agritrust: <https://w3id.org/agrisemantics/AGRITRUST/>
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#>

agritrust:SICARTheme a rdfs: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 agritrust:Document .

agritrust:areaHectares a rdf:Property ;
  rdfs:label "area (hectares)" ;
  rdfs:comment "The declared area of a SICAR Imovel or SICAR Theme, in hectares." ;
  rdfs:range xsd:decimal .

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

<https://www.w3.org/TR/prov-o#Agent> a rdfs:Class .

<https://www.w3.org/TR/prov-o#Activity> a rdfs:Class .

<https://www.w3.org/TR/prov-o#Location> a rdfs:Class .

agritrust:DataContract a rdfs:Class ;
  rdfs:label "Data Contract" ;
  rdfs:comment "A machine-readable agreement governing data sharing terms and conditions." ;
  rdfs:subClassOf agritrust:Document , <http://www.w3.org/ns/dcat#Resource> .

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

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

agritrust:registeredOnBlockchain a rdf:Property ;
  rdfs:label "registered on blockchain" ;
  rdfs:comment "Links an entity to the blockchain provider where it is registered." ;
  rdfs:range agritrust:BlockchainProvider .

agritrust:blockchainTransactionId a rdf:Property ;
  rdfs:label "blockchain transaction ID" ;
  rdfs:comment "The transaction identifier on the specific blockchain." ;
  rdfs:range xsd:string .

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

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

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

agritrust:creationDate a rdf:Property ;
  rdfs:label "creation date" ;
  rdfs:range xsd:dateTime .

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

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

<http://qudt.org/schema/qudt/Unit> a rdfs:Class .

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

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

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

<http://www.w3.org/ns/shacl#NodeShape> a rdfs:Class .

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

agritrust:hasGeometry a rdf:Property ;
  rdfs:label "has geometry" ;
  rdfs:comment "Links a location or a SICAR Imovel to its spatial representation." ;
  rdfs:range <http://www.opengis.net/ont/geosparql#Geometry> .

agritrust:hasObservation a rdf:Property ;
  rdfs:label "has observation" ;
  rdfs:comment "Links entities to relevant observations." ;
  rdfs:range agritrust:Observation .

<http://www.opengis.net/ont/geosparql#Geometry> a rdfs:Class .

<http://www.w3.org/ns/dcat#Dataset> a rdfs:Class .

<https://www.w3.org/TR/vocab-ssn-2023#Collection> a rdfs:Class .

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

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

agritrust:uniqueId a rdf:Property ;
  rdfs:label "unique identifier" ;
  rdfs:range xsd:string .

agritrust:managedByPlatform a rdf:Property ;
  rdfs:label "managed by platform" ;
  rdfs:comment "Links entities to their managing platform provider." ;
  rdfs:range agritrust:PlatformProvider .

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

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

agritrust:hasCrossChainReference a rdf:Property ;
  rdfs:label "has cross-chain reference" ;
  rdfs:comment "Links an entity to its references on other blockchain providers." ;
  rdfs:range agritrust:CrossChainReference .

<https://www.w3.org/TR/prov-o#Entity> a rdfs:Class .

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

agritrust:Observation a rdfs: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> .

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

agritrust:observationDate a rdf:Property ;
  rdfs:label "observation date" ;
  rdfs:domain agritrust:Observation ;
  rdfs:range xsd:dateTime .

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

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

<https://www.w3.org/TR/vocab-ssn-2023#Observation> a rdfs:Class .

<http://www.w3.org/ns/dcat#Resource> a rdfs:Class .

agritrust:Asset a rdfs: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> .

agritrust:hasSICARRegistration a rdf:Property ;
  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 agritrust:Asset ;
  rdfs:range agritrust:SICARImovel .

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

agritrust:hasEfficiencyMetric a rdf:Property ;
  rdfs:label "has efficiency metric" ;
  rdfs:comment "Links entities to platform-defined efficiency metrics." ;
  rdfs:range agritrust:EfficiencyMetric .

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

agritrust:ownedBy a rdf:Property ;
  rdfs:label "owned by" ;
  rdfs:comment "Links an asset to its owner (data sovereignty)." ;
  rdfs:domain agritrust:Asset ;
  rdfs:range agritrust:DataProducer .

agritrust:NDVIObservation a rdfs: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 agritrust:Observation .

agritrust:legalCutoffDate a rdf:Property ;
  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:range xsd:date .

agritrust:changeThreshold a rdf:Property ;
  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 agritrust:NDVIObservation ;
  rdfs:range xsd:decimal .

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

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

agritrust:biome a rdf:Property ;
  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:range xsd:string .

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

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

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

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

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

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

agritrust:metricName a rdf:Property ;
  rdfs:label "metric name" ;
  rdfs:domain agritrust:EfficiencyMetric ;
  rdfs:range xsd:string .

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

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

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

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

<https://www.w3.org/2018/credentials#VerifiableCredential> a rdfs:Class .

agritrust:SICARImovel a rdfs: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 agritrust:Document .

agritrust:numberOfFiscalModules a rdf:Property ;
  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 agritrust:SICARImovel ;
  rdfs:range xsd:decimal .

agritrust:hasSICARTheme a rdf:Property ;
  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 agritrust:SICARImovel ;
  rdfs:range agritrust:SICARTheme .

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

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

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

agritrust:Token a rdfs: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> .

agritrust:Certificate a rdfs: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 agritrust:Document , <https://www.w3.org/2018/credentials#VerifiableCredential> .

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

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

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

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

agritrust:proof a rdf:Property ;
  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 agritrust:Certificate ;
  rdfs:range xsd:string .

agritrust:validationScope a rdf:Property ;
  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 agritrust:Certificate ;
  rdfs:range xsd:string .

agritrust:notAssessed a rdf:Property ;
  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 agritrust:Certificate ;
  rdfs:range xsd:string .

<http://www.w3.org/ns/dcat#Agent> a rdfs:Class .

agritrust:Process a rdfs: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> .

agritrust:hasOutput a rdf:Property ;
  rdfs:label "has output" ;
  rdfs:comment "Asset produced by a process." ;
  rdfs:domain agritrust:Process ;
  rdfs:range agritrust:Asset .

agritrust:hasInput a rdf:Property ;
  rdfs:label "has input" ;
  rdfs:comment "Asset consumed by a process." ;
  rdfs:domain agritrust:Process ;
  rdfs:range agritrust:Asset .

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

agritrust:EUDRComplianceAccessPolicy a agritrust: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)." .
