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#>

<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:CrossChainReference a rdfs:Class ;
  rdfs:label "Cross-Chain Reference" ;
  rdfs:comment "A reference linking entities across different blockchain providers." ;
  rdfs:subClassOf agritrust:Document .

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 to its spatial representation." ;
  rdfs:domain agritrust:Location ;
  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: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: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: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: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: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." ;
  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." ;
  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 .

<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 .
