@prefix : <https://purl.org/packagegraph/ontology/core#> .
@prefix IAO: <http://purl.obolibrary.org/obo/IAO_> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix doap: <http://usefulinc.com/ns/doap#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@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#> .

IAO:0000115 a owl:AnnotationProperty ;
    rdfs:isDefinedBy : .

dcterms:created a owl:AnnotationProperty ;
    rdfs:isDefinedBy : .

dcterms:creator a owl:AnnotationProperty ;
    rdfs:isDefinedBy : .

dcterms:description a owl:AnnotationProperty ;
    rdfs:isDefinedBy : .

dcterms:license a owl:AnnotationProperty ;
    rdfs:isDefinedBy : .

dcterms:title a owl:AnnotationProperty ;
    rdfs:isDefinedBy : .

:ContributionType a owl:Class ;
    rdfs:label "Contribution Type"@en ;
    IAO:0000115 "Categorizes the nature of contributions made to a package, such as code, documentation, packaging, or security updates."@en ;
    rdfs:comment "The type of contribution made to a package"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:InstallationActivity a owl:Class ;
    rdfs:label "Installation Activity"@en ;
    IAO:0000115 "An activity that deploys a package and its dependencies onto a target system, making the software available for use."@en ;
    rdfs:comment "The process of installing a package on a system"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf prov:Activity .

:MetaPackage a owl:Class ;
    rdfs:label "Meta Package"@en ;
    IAO:0000115 "A package that contains minimal or no files itself but serves to group related packages together through dependencies, commonly used for task-based installations."@en ;
    rdfs:comment "A package that exists primarily to depend on other packages"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf :Package .

:PhantomPackage a owl:Class ;
    rdfs:label "Phantom Package"@en ;
    IAO:0000115 "A package that exists in repository primary metadata (e.g., primary.xml for RPM) but has no corresponding files in the file list metadata. Common for TeX Live virtual subpackages and auto-generated meta-entries. Structurally different from a regular Package because it cannot be installed."@en ;
    rdfs:comment "A package entry in repository metadata that has no installable files"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf :Package .

:PublishingActivity a owl:Class ;
    rdfs:label "Publishing Activity"@en ;
    IAO:0000115 "An activity that uploads and makes a package available for distribution through a package repository."@en ;
    rdfs:comment "The process of making a package available in a repository"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf prov:Activity .

:SoftwareAgent a owl:Class ;
    rdfs:label "Software Agent"@en ;
    IAO:0000115 "An automated software system that performs package maintenance tasks, such as dependency update bots (Renovate, Dependabot), CI/CD pipelines, or automated security patchers. Distinguished from Person to preserve OntoClean rigidity — a bot is not a foaf:Person."@en ;
    rdfs:comment "An automated software agent performing package maintenance tasks"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf prov:SoftwareAgent ;
    owl:disjointWith :Person .

:TestActivity a owl:Class ;
    rdfs:label "Test Activity"@en ;
    IAO:0000115 "An activity that executes test suites to verify the functionality and quality of a software package."@en ;
    rdfs:comment "The process of running tests on a package"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf prov:Activity .

:VirtualPackage a owl:Class ;
    rdfs:label "Virtual Package"@en ;
    IAO:0000115 "An abstract functional promise that can be satisfied by one or more concrete packages. Virtual packages have no artifact (no size, no checksum, no installable files) — they represent a capability that multiple packages can provide."@en ;
    rdfs:comment "An abstract functional promise that can be satisfied by one or more concrete packages"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf :Capability .

:accountPlatform a owl:DatatypeProperty ;
    rdfs:label "account platform"@en ;
    IAO:0000115 "Identifies the platform or service where a contributor account is registered, such as GitHub, Debian, Fedora, or GitLab."@en ;
    rdfs:comment "The platform or service where the account exists"@en ;
    rdfs:domain :ContributorAccount ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:accountUrl a owl:DatatypeProperty ;
    rdfs:label "account URL"@en ;
    IAO:0000115 "The web URL of a contributor's profile page on a specific platform."@en ;
    rdfs:comment "The URL of the contributor's profile on the platform"@en ;
    rdfs:domain :ContributorAccount ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:anyURI .

:accountUsername a owl:DatatypeProperty ;
    rdfs:label "account username"@en ;
    IAO:0000115 "The username, login, or unique identifier of a contributor on a specific platform."@en ;
    rdfs:comment "The username or identifier on the platform"@en ;
    rdfs:domain :ContributorAccount ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:activeContributor a owl:DatatypeProperty ;
    rdfs:label "active contributor"@en ;
    IAO:0000115 "Indicates whether a contributor is currently active in package development or maintenance."@en ;
    rdfs:comment "Whether the contributor is currently active"@en ;
    rdfs:domain :Contributor ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:boolean .

:activityDuration a owl:DatatypeProperty ;
    rdfs:label "activity duration"@en ;
    IAO:0000115 "The total time duration required to complete a packaging-related activity."@en ;
    rdfs:comment "How long a packaging activity took to complete"@en ;
    rdfs:domain prov:Activity ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:duration .

:activityEndTime a owl:DatatypeProperty ;
    rdfs:label "activity end time"@en ;
    IAO:0000115 "Records the date and time when a packaging-related activity was completed."@en ;
    rdfs:comment "When a packaging activity completed"@en ;
    rdfs:domain prov:Activity ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:dateTime ;
    rdfs:subPropertyOf prov:endedAtTime .

:activityLogOutput a owl:DatatypeProperty ;
    rdfs:label "activity log output"@en ;
    IAO:0000115 "The textual log output generated during the execution of a packaging activity, useful for debugging and auditing."@en ;
    rdfs:comment "Log output generated during a packaging activity"@en ;
    rdfs:domain prov:Activity ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:activityStartTime a owl:DatatypeProperty ;
    rdfs:label "activity start time"@en ;
    IAO:0000115 "Records the date and time when a packaging-related activity was initiated."@en ;
    rdfs:comment "When a packaging activity began"@en ;
    rdfs:domain prov:Activity ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:dateTime ;
    rdfs:subPropertyOf prov:startedAtTime .

:applicableArchitecture a owl:ObjectProperty ;
    rdfs:label "applicable architecture"@en ;
    IAO:0000115 "Specifies the architecture(s) for which this dependency applies. Many package ecosystems support architecture-conditional dependencies: RPM allows architecture qualifiers in Requires directives (e.g., glibc is required on x86_64 but not wasm), Debian allows architecture restrictions in Build-Depends fields (e.g., [amd64] [arm64]). When omitted, the dependency applies to all architectures."@en ;
    rdfs:comment "The architecture(s) for which this dependency applies (architecture-conditional dependencies)"@en ;
    rdfs:domain :Dependency ;
    rdfs:isDefinedBy : ;
    rdfs:range :Architecture .

:buildDependsOn a owl:ObjectProperty ;
    rdfs:label "build depends on"@en ;
    IAO:0000115 "A relationship indicating that one package is required to compile or build a source package from its source code, but is not required for the resulting binary packages to function."@en ;
    rdfs:comment "Indicates a build-time dependency that is required to build the source package but not needed at runtime."@en ;
    rdfs:domain :SourcePackage ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    rdfs:subPropertyOf :dependsOn .

:builtFromSource a owl:AsymmetricProperty,
        owl:ObjectProperty ;
    rdfs:label "built from source"@en ;
    IAO:0000115 "Associates a binary package with the source package from which it was compiled, enabling grouping of related binary outputs."@en ;
    rdfs:comment "Links a binary package to the source package it was built from"@en ;
    rdfs:domain :BinaryPackage ;
    rdfs:isDefinedBy : ;
    rdfs:range :SourcePackage ;
    rdfs:subPropertyOf prov:wasDerivedFrom ;
    owl:inverseOf :producedBinary .

:capabilityName a owl:DatatypeProperty ;
    rdfs:label "capability name"@en ;
    IAO:0000115 "The identifier for a capability, such as a shared library name (libssl.so.3), virtual package name, or other capability identifier."@en ;
    rdfs:comment "The name or identifier of a capability"@en ;
    rdfs:domain :Capability ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:checkRequires a owl:ObjectProperty ;
    rdfs:label "check requires"@en ;
    IAO:0000115 "A test-time dependency required to run a source package's test suite but not needed for building or runtime. Used in RPM BuildRequires with check context."@en ;
    rdfs:comment "Indicates a test-time dependency for running the package's test suite"@en ;
    rdfs:domain :SourcePackage ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    rdfs:subPropertyOf :dependsOn .

:checksumAlgorithm a owl:DatatypeProperty,
        owl:FunctionalProperty ;
    rdfs:label "checksum algorithm"@en ;
    IAO:0000115 "The name of the cryptographic hash algorithm used to compute this checksum value."@en ;
    rdfs:comment "The hash algorithm (e.g., SHA-256, MD5, SHA-1)"@en ;
    rdfs:domain :Checksum ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:checksumValue a owl:DatatypeProperty,
        owl:FunctionalProperty ;
    rdfs:label "checksum value"@en ;
    IAO:0000115 "The actual cryptographic hash value as a hexadecimal string."@en ;
    rdfs:comment "The hexadecimal hash string"@en ;
    rdfs:domain :Checksum ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:containedIn a owl:ObjectProperty ;
    rdfs:label "contained in"@en ;
    IAO:0000115 "A relationship that associates a software package with the repository where it is stored and made available for distribution."@en ;
    rdfs:comment "Links a package to the repository that contains it"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Repository ;
    owl:inverseOf :contains .

:contributesTo a owl:ObjectProperty ;
    rdfs:label "contributes to"@en ;
    IAO:0000115 "Associates a contributor role with repositories it contributes to, enabling analysis of contributor activity across repositories."@en ;
    rdfs:comment "Links a contributor role to repositories it contributes to. Conceptually related to hasContributor (Repository→Agent convenience shortcut), but not formally inverse to avoid OntoClean role/identity collapse."@en ;
    rdfs:domain :Contributor ;
    rdfs:isDefinedBy : ;
    rdfs:range :Repository .

:contributorOrganization a owl:ObjectProperty ;
    rdfs:label "contributor organization"@en ;
    IAO:0000115 "Associates a contributor with the organization they are affiliated with, enabling analysis of contributor diversity and organizational representation in package maintenance."@en ;
    rdfs:comment "Links a contributor to their affiliated organization"@en ;
    rdfs:domain :Contributor ;
    rdfs:isDefinedBy : ;
    rdfs:range foaf:Organization .

:crossDistributionAlternative a owl:ObjectProperty,
        owl:SymmetricProperty ;
    rdfs:label "cross-distribution alternative"@en ;
    IAO:0000115 "Associates packages from different distributions that provide similar functionality or serve analogous purposes. This is a correspondence assertion, not formal equivalence — it is symmetric but intentionally NOT transitive, as cross-distribution package equivalence is context-dependent (e.g., Debian libssl-dev corresponds to Fedora openssl-devel, but Alpine equivalents may differ in ABI or capabilities)."@en ;
    rdfs:comment "Links packages that serve similar functions across distributions. Intentionally non-transitive: A~B and B~C does not imply A~C."@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package .

:dependencyType a owl:ObjectProperty ;
    rdfs:label "dependency type"@en ;
    IAO:0000115 "Classifies the nature of a dependency relationship by linking the reified Dependency node directly to the formal property predicate that defines its semantics. Values are property URIs (pkg:dependsOn, pkg:buildDependsOn, pkg:recommends, etc.) using OWL 2 punning. This harmonizes the dual-model: the reified node references the exact shortcut predicate it represents, unifying what was previously a disconnected magic string with the traversable property hierarchy."@en ;
    rdfs:comment "The type of dependency relationship, represented by the URI of the corresponding shortcut property"@en ;
    rdfs:domain :Dependency ;
    rdfs:isDefinedBy : .

:dependencyWeight a owl:DatatypeProperty ;
    rdfs:label "dependency weight"@en ;
    IAO:0000115 "Provides a numeric weight indicating the relative importance or strength of a dependency relationship."@en ;
    rdfs:comment "Relative weight or importance of a dependency"@en ;
    rdfs:domain :Dependency ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:float .

:derivedFrom a owl:ObjectProperty ;
    rdfs:label "derived from"@en ;
    IAO:0000115 "Specifies that one distribution is based on or derived from another distribution's codebase and package set."@en ;
    rdfs:comment "Indicates that one distribution is derived from another"@en ;
    rdfs:domain :Distribution ;
    rdfs:isDefinedBy : ;
    rdfs:range :Distribution .

:derivedFromCommit a owl:ObjectProperty ;
    rdfs:label "derived from commit"@en ;
    IAO:0000115 "Associates a package with the specific VCS commit from which it was built, enabling precise source-to-binary traceability and build reproducibility verification."@en ;
    rdfs:comment "Links a package to the VCS commit it was built from"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range <https://purl.org/packagegraph/ontology/vcs#Commit> ;
    rdfs:subPropertyOf prov:wasDerivedFrom .

:derivedFromDistribution a owl:ObjectProperty ;
    rdfs:label "derived from distribution"@en ;
    IAO:0000115 "Indicates that one distribution is derived from another (e.g., Ubuntu from Debian, CentOS from RHEL), establishing distribution lineage for package tracking."@en ;
    rdfs:comment "Indicates that one distribution is derived from another"@en ;
    rdfs:domain :Distribution ;
    rdfs:isDefinedBy : ;
    rdfs:range :Distribution .

:description a owl:DatatypeProperty ;
    rdfs:label "description"@en ;
    IAO:0000115 "A textual explanation of the package's purpose, functionality, and features, intended to help users understand what the package provides."@en ;
    rdfs:comment "A human-readable description of what the package does"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:directlyConflictsWith a owl:ObjectProperty,
        owl:SymmetricProperty ;
    rdfs:label "directly conflicts with"@en ;
    IAO:0000115 "A direct conflict relationship between packages, providing an efficient query path for identifying incompatible packages."@en ;
    rdfs:comment "Direct conflict relationship between packages for efficient querying"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    rdfs:subPropertyOf :conflicts .

:directlyDependsOn a owl:ObjectProperty ;
    rdfs:label "directly depends on"@en ;
    IAO:0000115 "A direct dependency relationship between packages, providing an efficient query path that bypasses the detailed dependency metadata structure. This property is a materialized convenience shortcut semantically grounded by the property chain axiom: if X hasDependency D and D dependencyTarget Y, then X directlyDependsOn Y. For version constraint details, traverse the Dependency reification."@en ;
    rdfs:comment "Materialized convenience shortcut of the hasDependency → dependencyTarget chain. For version constraint details, traverse the Dependency reification. NOTE: owl:propertyChainAxiom requires OWL 2 reasoning to materialize — Fuseki without OWL reasoning will not auto-derive this property from hasDependency chains."@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    rdfs:subPropertyOf :dependsOn ;
    owl:inverseOf :isDirectDependencyOf ;
    owl:propertyChainAxiom ( :hasDependency :dependencyTarget ) .

:directlyProvides a owl:ObjectProperty ;
    rdfs:label "directly provides"@en ;
    IAO:0000115 "A direct provision relationship indicating that one package provides the functionality of another, optimized for efficient dependency resolution queries."@en ;
    rdfs:comment "Direct provision relationship between packages for efficient querying"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    rdfs:subPropertyOf :provides .

:downloadURL a owl:DatatypeProperty ;
    rdfs:label "download URL"@en ;
    IAO:0000115 "The web address from which the package file or archive can be directly downloaded or accessed."@en ;
    rdfs:comment "The URL from which the package can be downloaded"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:anyURI .

:ecosystemPackage a owl:ObjectProperty ;
    rdfs:label "ecosystem package"@en ;
    IAO:0000115 "Links an upstream project to package identities in various ecosystems (PyPI, npm, Cargo, etc.). Enables queries like 'what packages from different ecosystems come from the same project'."@en ;
    rdfs:comment "Links an upstream project to a package identity in a specific ecosystem"@en ;
    rdfs:domain :UpstreamProject ;
    rdfs:isDefinedBy : ;
    rdfs:range :PackageIdentity .

:endOfLifeDate a owl:DatatypeProperty ;
    rdfs:label "end of life date"@en ;
    IAO:0000115 "The date when a distribution release ceases to receive security updates and support."@en ;
    rdfs:comment "The date when the distribution release reaches end of life"@en ;
    rdfs:domain :DistributionRelease ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:date .

:enhances a owl:ObjectProperty ;
    rdfs:label "enhances"@en ;
    IAO:0000115 "A reverse-direction weak dependency indicating that installing this package enhances the functionality of the target package. Used in Debian Enhances tag. If package A enhances package B, installing A provides additional features to B."@en ;
    rdfs:comment "Indicates that this package enhances another package's functionality"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    rdfs:subPropertyOf :dependsOn .

:epoch a owl:DatatypeProperty ;
    rdfs:label "epoch"@en ;
    IAO:0000115 "A version component used to differentiate between incompatible versioning schemes or to correct mistakes in version ordering."@en ;
    rdfs:comment "The epoch of the version, used in some systems to manage version comparison across different numbering schemes."@en ;
    rdfs:domain :Version ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:integer .

:excludedArchitecture a owl:ObjectProperty ;
    rdfs:label "excluded architecture"@en ;
    IAO:0000115 "Indicates an architecture on which this package is known to be unavailable due to architectural constraints or hardware requirements, not build failures. Used to distinguish missing packages from architecturally impossible ones."@en ;
    rdfs:comment "Indicates an architecture on which this package is known to be unavailable due to architectural constraints"@en ;
    rdfs:domain :PackageIdentity ;
    rdfs:isDefinedBy : ;
    rdfs:range :Architecture .

:exitCode a owl:DatatypeProperty ;
    rdfs:label "exit code"@en ;
    IAO:0000115 "The numeric exit code returned by a packaging activity, indicating success (typically 0) or failure (non-zero)."@en ;
    rdfs:comment "The exit code returned by a packaging activity"@en ;
    rdfs:domain prov:Activity ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:int .

:hasABI a owl:ObjectProperty ;
    rdfs:label "has ABI"@en ;
    IAO:0000115 "Associates a package with the application binary interface it conforms to."@en ;
    rdfs:comment "Links a package to its application binary interface"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :ABI .

:hasAccount a owl:ObjectProperty ;
    rdfs:label "has account"@en ;
    IAO:0000115 "Associates a person with a ContributorAccount representing their identity on a specific platform (e.g., GitHub username, Fedora Account System login, Debian maintainer email)."@en ;
    rdfs:comment "Links a person to their platform account identifier"@en ;
    rdfs:domain :Person ;
    rdfs:isDefinedBy : ;
    rdfs:range :ContributorAccount .

:hasChecksum a owl:ObjectProperty ;
    rdfs:label "has checksum"@en ;
    IAO:0000115 "Associates a package with a Checksum instance containing a hash value and algorithm."@en ;
    rdfs:comment "Links a package to one of its checksums"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Checksum .

:hasContributor a owl:ObjectProperty ;
    rdfs:label "has contributor"@en ;
    IAO:0000115 "Convenience property linking a repository directly to the agents (Person or SoftwareAgent) contributing to it. For detailed role information, traverse via contribution role assignments."@en ;
    rdfs:comment "Links a repository directly to contributing agents (persons or software agents). Conceptually related to contributesTo (Contributor→Repository), but not formally inverse to avoid OntoClean role/identity collapse."@en ;
    rdfs:domain :Repository ;
    rdfs:isDefinedBy : ;
    rdfs:range prov:Agent .

:hasISA a owl:ObjectProperty ;
    rdfs:label "has instruction set architecture"@en ;
    IAO:0000115 "Associates a binary package with the specific instruction set architecture it was compiled for."@en ;
    rdfs:comment "Links a package to its instruction set architecture"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :InstructionSetArchitecture .

:hasLicense a owl:ObjectProperty ;
    rdfs:label "has license"@en ;
    IAO:0000115 "A relationship that associates a software package with the legal license under which it is distributed and may be used."@en ;
    rdfs:comment "Links a package to its license"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :License .

:hasMaintainerRole a owl:ObjectProperty ;
    rdfs:label "has maintainer role"@en ;
    IAO:0000115 "Associates a maintainer with their specific role and responsibilities for packages."@en ;
    rdfs:comment "Links a maintainer to their specific role"@en ;
    rdfs:domain :Maintainer ;
    rdfs:isDefinedBy : ;
    rdfs:range :MaintainerRole .

:hasMaintenanceRole a owl:ObjectProperty ;
    rdfs:label "has maintenance role"@en ;
    IAO:0000115 "Associates a package with a Maintainer role assignment, providing access to role type (via hasMaintainerRole), start date (via maintainerSince), and the agent holding the role (via heldBy)."@en ;
    rdfs:comment "Links a package to a maintenance role assignment providing detailed role metadata"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Maintainer .

:hasRelease a owl:ObjectProperty ;
    rdfs:label "has release"@en ;
    IAO:0000115 "Associates a distribution with a specific versioned release, such as Debian 12 or Fedora 41."@en ;
    rdfs:comment "Links a distribution to one of its releases"@en ;
    rdfs:domain :Distribution ;
    rdfs:isDefinedBy : ;
    rdfs:range :DistributionRelease .

:hasUpstreamProject a owl:ObjectProperty ;
    rdfs:label "has upstream project"@en ;
    IAO:0000115 "Associates a source package with the upstream open source project that it packages for distribution."@en ;
    rdfs:comment "Links a source package to the upstream project it packages"@en ;
    rdfs:domain :SourcePackage ;
    rdfs:isDefinedBy : ;
    rdfs:range :UpstreamProject .

:hasVersion a owl:ObjectProperty ;
    rdfs:label "has version"@en ;
    IAO:0000115 "A relationship that associates a software package with a specific version or release of that package."@en ;
    rdfs:comment "Links a package to one of its versions"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Version ;
    owl:inverseOf :versionOf .

:hasVersionConstraint a owl:ObjectProperty ;
    rdfs:label "has version constraint"@en ;
    IAO:0000115 "Associates a dependency with a structured version constraint that specifies acceptable version ranges."@en ;
    rdfs:comment "Links a dependency to a structured version constraint"@en ;
    rdfs:domain :Dependency ;
    rdfs:isDefinedBy : ;
    rdfs:range :VersionConstraint .

:heldBy a owl:ObjectProperty ;
    rdfs:label "held by"@en ;
    IAO:0000115 "The inverse of holdsRole — links a role assignment to the agent (Person or SoftwareAgent) holding it, enabling representation of both human maintainers and automated bot contributors."@en ;
    rdfs:comment "Links a role assignment back to the agent (person or software agent) who holds it"@en ;
    rdfs:domain :Contributor ;
    rdfs:isDefinedBy : ;
    rdfs:range prov:Agent ;
    owl:inverseOf :holdsRole .

:homepage a owl:DatatypeProperty ;
    rdfs:label "homepage"@en ;
    IAO:0000115 "The web address of the main website or homepage associated with the software package or its development project."@en ;
    rdfs:comment "The homepage URL of the package or project"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:anyURI .

:identityName a owl:DatatypeProperty,
        owl:FunctionalProperty ;
    rdfs:label "identity name"@en ;
    IAO:0000115 "The package name as used for the version-agnostic identity within a distribution and architecture context. This provides a lexical anchor for PackageIdentity instances, distinct from the versioned packageName on Package instances."@en ;
    rdfs:comment "The name of the package identity"@en ;
    rdfs:domain :PackageIdentity ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:installSize a owl:DatatypeProperty ;
    rdfs:label "install size"@en ;
    IAO:0000115 "The amount of disk space, measured in bytes, that the package will occupy after being fully installed on the target system."@en ;
    rdfs:comment "The disk space required when the package is installed"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:long .

:installedFilePath a owl:DatatypeProperty ;
    rdfs:label "installed file path"@en ;
    IAO:0000115 "The absolute filesystem path where a file is installed on the target system, such as /usr/bin/gcc or /usr/lib/libssl.so.3."@en ;
    rdfs:comment "The filesystem path where the file is installed"@en ;
    rdfs:domain :InstalledFile ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:installsFile a owl:ObjectProperty ;
    rdfs:label "installs file"@en ;
    IAO:0000115 "Associates a binary package with a file it installs on the target filesystem."@en ;
    rdfs:comment "Links a binary package to a file it installs on the system"@en ;
    rdfs:domain :BinaryPackage ;
    rdfs:isDefinedBy : ;
    rdfs:range :InstalledFile .

:isCurrent a owl:DatatypeProperty,
        owl:FunctionalProperty ;
    rdfs:label "is current"@en ;
    IAO:0000115 "A boolean flag indicating whether this snapshot is the most recent for its data source. Used for tiered storage lifecycle management."@en ;
    rdfs:comment "Whether this snapshot represents the current active data for its source."@en ;
    rdfs:domain :DataSnapshot ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:boolean .

:isProvidedBy a owl:ObjectProperty ;
    rdfs:label "is provided by"@en ;
    IAO:0000115 "The inverse relationship of provides, indicating that this package's functionality is offered by another package."@en ;
    rdfs:comment "Indicates that this package's functionality is provided by another package"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    owl:inverseOf :provides .

:isReplacedBy a owl:ObjectProperty ;
    rdfs:label "is replaced by"@en ;
    IAO:0000115 "The inverse relationship of replaces, indicating that this package is superseded by another package."@en ;
    rdfs:comment "Indicates that this package is replaced by another package"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    owl:inverseOf :replaces .

:isVendorOriginated a owl:DatatypeProperty ;
    rdfs:label "is vendor originated"@en ;
    IAO:0000115 "Indicates whether the upstream project was originated by the same organization that packages and distributes it, as opposed to being an independent community project."@en ;
    rdfs:comment "Whether the upstream project was created by the packaging vendor"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:boolean .

:isVersionOf a owl:ObjectProperty ;
    rdfs:label "is version of"@en ;
    IAO:0000115 "Associates a specific versioned binary package with the canonical package identity it belongs to. Enables queries that traverse from a versioned instance to all other versions of the same package."@en ;
    rdfs:comment "Links a versioned binary package to its version-agnostic package identity."@en ;
    rdfs:domain :BinaryPackage ;
    rdfs:isDefinedBy : ;
    rdfs:range :PackageIdentity ;
    owl:inverseOf :hasPackage .

:isaSpecificCode a owl:DatatypeProperty ;
    rdfs:label "ISA-specific code"@en ;
    IAO:0000115 "Indicates whether the package contains processor-specific optimizations or machine code that is optimized for a particular instruction set architecture."@en ;
    rdfs:comment "Indicates whether the package contains ISA-specific optimizations"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:boolean .

:lastCommitDate a owl:DatatypeProperty ;
    rdfs:label "last commit date"@en ;
    IAO:0000115 "The date of the most recent commit to the upstream repository, indicating active development status."@en ;
    rdfs:comment "The date of the most recent commit to the upstream repository"@en ;
    rdfs:domain :PackageIdentity ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:date .

:lastReleaseDate a owl:DatatypeProperty ;
    rdfs:label "last release date"@en ;
    IAO:0000115 "The date of the most recent release or version of the package, enabling recency analysis and stale package detection."@en ;
    rdfs:comment "The date of the most recent release or version"@en ;
    rdfs:domain :PackageIdentity ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:date .

:licenseName a owl:DatatypeProperty ;
    rdfs:label "license name"@en ;
    IAO:0000115 "DEPRECATED: A string representation of the package's license. Use hasLicense to link to a License entity instead. The spdxId of the License entity linked via hasLicense is the canonical representation. This property is retained for backward compatibility with existing data but should not be used in new collectors."@en ;
    rdfs:comment "DEPRECATED in favor of hasLicense. The SPDX license expression or license name string for the package"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string ;
    owl:deprecated true .

:maintainedBy a owl:ObjectProperty ;
    rdfs:label "maintained by"@en ;
    IAO:0000115 "Convenience property linking a package directly to the agent (Person or SoftwareAgent) maintaining it. For detailed role metadata (role type, start date), use hasMaintenanceRole."@en ;
    rdfs:comment "Links a package directly to the agent (person or software agent) maintaining it"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range prov:Agent ;
    rdfs:subPropertyOf prov:wasAttributedTo ;
    owl:inverseOf :maintains .

:maintainerSince a owl:DatatypeProperty ;
    rdfs:label "maintainer since"@en ;
    IAO:0000115 "Records when a maintainer began their maintenance responsibilities for a package."@en ;
    rdfs:comment "Date when the maintainer started maintaining the package"@en ;
    rdfs:domain :Maintainer ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:dateTime .

:managedBy a owl:ObjectProperty ;
    rdfs:label "managed by"@en ;
    IAO:0000115 "A relationship that associates a package repository with the package management system that controls and provides access to it."@en ;
    rdfs:comment "Links a repository to the package manager that manages it"@en ;
    rdfs:domain :Repository ;
    rdfs:isDefinedBy : ;
    rdfs:range :PackageManager ;
    owl:inverseOf :manages .

:memberOfPackageSet a owl:ObjectProperty ;
    rdfs:label "member of package set"@en ;
    IAO:0000115 "Associates a package with a named package set that it belongs to, enabling classification of packages into product-specific or distribution-specific groupings."@en ;
    rdfs:comment "Links a package to a package set it belongs to"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :PackageSet .

:packageSize a owl:DatatypeProperty ;
    rdfs:label "package size"@en ;
    IAO:0000115 "The size of the package file or archive, measured in bytes, before installation or extraction."@en ;
    rdfs:comment "The size of the package file"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:long .

:packagingRepository a owl:ObjectProperty ;
    rdfs:label "packaging repository"@en ;
    IAO:0000115 "Associates a package identity with the distribution-specific repository that contains the packaging metadata (debian/ directory, spec files, patches). Distinct from the upstream repository — packaging repos are distro-specific while upstream repos are universal."@en ;
    rdfs:comment "The distribution-specific packaging repository (e.g., Debian Salsa, Fedora dist-git). Contains packaging rules, patches, and build configuration."@en ;
    rdfs:domain :PackageIdentity ;
    rdfs:isDefinedBy : ;
    rdfs:range <https://purl.org/packagegraph/ontology/vcs#Repository> .

:partOfDistribution a owl:ObjectProperty ;
    rdfs:label "part of distribution"@en ;
    IAO:0000115 "Associates packages, repositories, or other components with their parent distribution."@en ;
    rdfs:comment "Links packages or repositories to their parent distribution"@en ;
    rdfs:isDefinedBy : ;
    rdfs:range :Distribution .

:partOfEcosystem a owl:ObjectProperty ;
    rdfs:label "part of ecosystem"@en ;
    IAO:0000115 "Associates a distribution with the broader package ecosystem it belongs to."@en ;
    rdfs:comment "Links a distribution to its broader ecosystem"@en ;
    rdfs:domain :Distribution ;
    rdfs:isDefinedBy : ;
    rdfs:range :Ecosystem .

:performedBy a owl:ObjectProperty ;
    rdfs:label "performed by"@en ;
    IAO:0000115 "Associates a packaging activity with the agent (person, organization, or automated system) that performed it."@en ;
    rdfs:comment "Links a packaging activity to the agent that performed it"@en ;
    rdfs:domain :PackagingActivity ;
    rdfs:isDefinedBy : ;
    rdfs:range prov:Agent ;
    rdfs:subPropertyOf prov:wasAssociatedWith .

:preDepends a owl:ObjectProperty ;
    rdfs:label "pre-depends"@en ;
    IAO:0000115 "A strict dependency that must be fully installed and configured before this package can even be unpacked. Stronger than regular depends. Used in Debian Pre-Depends tag for critical system dependencies."@en ;
    rdfs:comment "Indicates a pre-installation dependency (stronger than regular depends)"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    rdfs:subPropertyOf :dependsOn .

:projectRepository a owl:ObjectProperty ;
    rdfs:label "project repository"@en ;
    IAO:0000115 "Links an upstream project to its primary source code repository. Makes UpstreamProject the central hub for cross-ecosystem identity - connect all ecosystem packages to the project, then to the shared repository."@en ;
    rdfs:comment "Links an upstream project to its VCS repository"@en ;
    rdfs:domain :UpstreamProject ;
    rdfs:isDefinedBy : ;
    rdfs:range <https://purl.org/packagegraph/ontology/vcs#Repository> .

:projectUrl a owl:DatatypeProperty ;
    rdfs:label "project URL"@en ;
    IAO:0000115 "The primary website or homepage URL for an upstream open source project."@en ;
    rdfs:comment "The primary URL for the upstream project"@en ;
    rdfs:domain :UpstreamProject ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:anyURI .

:providesCapability a owl:ObjectProperty ;
    rdfs:label "provides capability"@en ;
    IAO:0000115 "Associates a package with a capability it provides, such as a shared library (libssl.so.3), virtual package name, or other functionality. Critical for shared library dependency resolution - enables 'what provides this .so' queries."@en ;
    rdfs:comment "Links a package to a capability it provides"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Capability .

:purl a owl:DatatypeProperty ;
    rdfs:label "purl"@en ;
    IAO:0000115 "Package URL (PURL) - a standardized, universal identifier for software packages across ecosystems (e.g., pkg:npm/lodash@4.17.21, pkg:pypi/requests@2.28.0). Enables cross-tool interoperability and SBOM generation."@en ;
    rdfs:comment "Package URL (PURL) - standardized package identifier"@en ;
    rdfs:domain :PackageIdentity ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:anyURI .

:recommends a owl:ObjectProperty ;
    rdfs:label "recommends"@en ;
    IAO:0000115 "A weak dependency relationship suggesting that installing the target package enhances functionality but is not required. Used in Debian Recommends and RPM Recommends tags. If package A recommends package B, A works without B but gains features when B is present."@en ;
    rdfs:comment "Suggests installing another package for enhanced functionality"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    rdfs:subPropertyOf :dependsOn .

:release a owl:DatatypeProperty ;
    rdfs:label "release"@en ;
    IAO:0000115 "An identifier for the packaging release of a specific version of the upstream software."@en ;
    rdfs:comment "The release number of the package, often indicating a packaging-specific update."@en ;
    rdfs:domain :Version ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:releaseCodename a owl:DatatypeProperty ;
    rdfs:label "release codename"@en ;
    IAO:0000115 "The informal name or codename of a distribution release, such as 'bookworm' for Debian 12 or 'noble' for Ubuntu 24.04."@en ;
    rdfs:comment "The codename of the distribution release"@en ;
    rdfs:domain :DistributionRelease ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:releaseDate a owl:DatatypeProperty ;
    rdfs:label "release date"@en ;
    IAO:0000115 "The date when a distribution release was officially published or made available."@en ;
    rdfs:comment "The date the distribution release was published"@en ;
    rdfs:domain :DistributionRelease ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:date .

:releaseVersion a owl:DatatypeProperty ;
    rdfs:label "release version"@en ;
    IAO:0000115 "The version identifier of a distribution release, such as '12' for Debian 12 or '41' for Fedora 41."@en ;
    rdfs:comment "The version number of the distribution release"@en ;
    rdfs:domain :DistributionRelease ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:repoSourceURL a owl:DatatypeProperty ;
    rdfs:label "repository source URL"@en ;
    IAO:0000115 "The HTTP/HTTPS URL of the package repository metadata that was used as the data source for collection. Enables traceability and re-collection."@en ;
    rdfs:comment "The URL from which this repository data was collected"@en ;
    rdfs:domain :DistributionRelease ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:anyURI .

:repoType a owl:DatatypeProperty ;
    rdfs:label "repository type"@en ;
    IAO:0000115 "Classifies the repository source type to enable proper comparison semantics. Release repos are composed for end-user installation. Build repos are Koji build targets. Updates are post-release patches."@en ;
    rdfs:comment "The type of package repository (release, development, build, updates, updates-testing)"@en ;
    rdfs:domain :DistributionRelease ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:requiresCapability a owl:ObjectProperty ;
    rdfs:label "requires capability"@en ;
    IAO:0000115 "Associates a package with a capability it requires, such as a shared library (libssl.so.3), virtual package name, or other functionality. Critical for shared library dependency resolution - enables 'what requires this .so' queries and CVE blast radius analysis."@en ;
    rdfs:comment "Links a package to a capability it requires"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Capability .

:revision a owl:DatatypeProperty ;
    rdfs:label "revision"@en ;
    IAO:0000115 "A version component that specifies a minor update or packaging-specific revision."@en ;
    rdfs:comment "The revision of the package, often indicating a minor packaging update or a source control revision."@en ;
    rdfs:domain :Version ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:satisfiesCapability a owl:ObjectProperty ;
    rdfs:label "satisfies capability"@en ;
    IAO:0000115 "Links an installed file (typically a shared library .so artifact) to the abstract capability it satisfies, closing the loop between filesystem artifacts and package dependency requirements. This shortcut enables efficient queries for shared library resolution analysis: which specific file provides libssl.so.3?"@en ;
    rdfs:comment "The abstract capability that this installed file satisfies (typically for shared libraries)"@en ;
    rdfs:domain :InstalledFile ;
    rdfs:isDefinedBy : ;
    rdfs:range :Capability .

:snapshotGraph a owl:DatatypeProperty ;
    rdfs:label "snapshot graph"@en ;
    IAO:0000115 "The URI of the named graph in Fuseki that contains this snapshot's data."@en ;
    rdfs:comment "The named graph URI this snapshot was loaded into."@en ;
    rdfs:domain :DataSnapshot ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:anyURI .

:snapshotSource a owl:DatatypeProperty ;
    rdfs:label "snapshot source"@en ;
    IAO:0000115 "A string identifying the tool and data source that produced this snapshot."@en ;
    rdfs:comment "Identifier of the data source that produced this snapshot (e.g., 'pg-collect debian', 'enricher-osv')."@en ;
    rdfs:domain :DataSnapshot ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:snapshotTimestamp a owl:DatatypeProperty ;
    rdfs:label "snapshot timestamp"@en ;
    IAO:0000115 "The date and time when the data collection or enrichment run completed."@en ;
    rdfs:comment "When this data snapshot was created."@en ;
    rdfs:domain :DataSnapshot ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:dateTime .

:spdxId a owl:DatatypeProperty,
        owl:FunctionalProperty ;
    rdfs:label "SPDX identifier"@en ;
    IAO:0000115 "The SPDX License List identifier for this license (e.g., 'GPL-2.0-only', 'MIT', 'Apache-2.0'), enabling mechanically queryable license classification and compatibility analysis."@en ;
    rdfs:comment "The SPDX license identifier"@en ;
    rdfs:domain :License ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:suggests a owl:ObjectProperty ;
    rdfs:label "suggests"@en ;
    IAO:0000115 "An even weaker dependency relationship than recommends, indicating that the target package may be useful in certain contexts but is not typically needed. Used in Debian Suggests and RPM Suggests tags."@en ;
    rdfs:comment "Suggests another package that may be useful in some scenarios"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    rdfs:subPropertyOf :dependsOn .

:supplements a owl:ObjectProperty ;
    rdfs:label "supplements"@en ;
    IAO:0000115 "Indicates that this package supplements the functionality of another package, working in tandem with it. Used in some Debian-derived distributions."@en ;
    rdfs:comment "Indicates that this package supplements another package"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    rdfs:subPropertyOf :dependsOn .

:supportedArchitecture a owl:ObjectProperty ;
    rdfs:label "supported architecture"@en ;
    IAO:0000115 "Associates a source package with an architecture it declares support for building, as declared in the source package control file."@en ;
    rdfs:comment "An architecture that the source package can be built for"@en ;
    rdfs:domain :SourcePackage ;
    rdfs:isDefinedBy : ;
    rdfs:range :Architecture .

:targetArchitecture a owl:ObjectProperty ;
    rdfs:label "target architecture"@en ;
    IAO:0000115 "A relationship that associates a software package with the specific hardware or system architecture for which it has been compiled or designed."@en ;
    rdfs:comment "Links a package to the architecture it targets"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Architecture .

:upstreamEcosystem a owl:ObjectProperty ;
    rdfs:label "upstream ecosystem"@en ;
    IAO:0000115 "Links a package to the upstream software ecosystem it originates from, enabling ecosystem-level cross-referencing and analysis. The Ecosystem entity allows traversal to all packages from that ecosystem rather than matching string literals."@en ;
    rdfs:comment "The upstream package ecosystem entity (cargo, pypi, npm, gomod, etc.)"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Ecosystem .

:upstreamEquivalent a owl:ObjectProperty,
        owl:SymmetricProperty ;
    rdfs:label "upstream equivalent"@en ;
    IAO:0000115 "Symmetric relationship between package identities from different ecosystems that represent the same software (e.g., Debian python3-requests ↔ PyPI requests). Enables bidirectional cross-ecosystem identity queries."@en ;
    rdfs:comment "This package identity is equivalent to another package identity from a different ecosystem"@en ;
    rdfs:domain :PackageIdentity ;
    rdfs:isDefinedBy : ;
    rdfs:range :PackageIdentity .

:upstreamPackageIdentity a owl:ObjectProperty ;
    rdfs:label "upstream package identity"@en ;
    IAO:0000115 "Links a distribution package identity to the upstream package identity in the native ecosystem (e.g., Debian python3-requests → PyPI requests). Replaces dead-end upstreamPackageName literal with a traversable object property - critical for supply chain analysis."@en ;
    rdfs:comment "Links to the upstream package identity in its native ecosystem"@en ;
    rdfs:domain :PackageIdentity ;
    rdfs:isDefinedBy : ;
    rdfs:range :PackageIdentity .

:upstreamPackageName a owl:DatatypeProperty ;
    rdfs:label "upstream package name"@en ;
    IAO:0000115 "The canonical name of the upstream software in its native package ecosystem, extracted from RPM provides entries like crate(foo) or python3dist(bar). Enables cross-ecosystem identity linking. Retained for backward compatibility - prefer upstreamPackageIdentity for new data."@en ;
    rdfs:comment "The name of the package in its upstream ecosystem (e.g., crate name, PyPI name)"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:upstreamRepository a owl:ObjectProperty ;
    rdfs:label "upstream repository"@en ;
    IAO:0000115 "Associates a package identity with the canonical upstream source code repository. This is the primary cross-distribution identity anchor — packages from different distros that share the same upstream repository are the same software, regardless of package name."@en ;
    rdfs:comment "The upstream VCS repository this package is built from. Derived from Homepage/URL when it points to a known forge, or from dist-git spec files."@en ;
    rdfs:domain :PackageIdentity ;
    rdfs:isDefinedBy : ;
    rdfs:range <https://purl.org/packagegraph/ontology/vcs#Repository> ;
    owl:inverseOf <https://purl.org/packagegraph/ontology/vcs#hasPackage> .

:usedDependency a owl:ObjectProperty ;
    rdfs:label "used dependency"@en ;
    IAO:0000115 "Associates a build activity with the packages or dependencies it required during the build process."@en ;
    rdfs:comment "Links a build activity to dependencies it required"@en ;
    rdfs:domain :BuildActivity ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    rdfs:subPropertyOf prov:used .

:usedSource a owl:ObjectProperty ;
    rdfs:label "used source"@en ;
    IAO:0000115 "Associates a packaging activity with the source code, files, or other materials it used as input."@en ;
    rdfs:comment "Links a packaging activity to source materials it used"@en ;
    rdfs:domain :PackagingActivity ;
    rdfs:isDefinedBy : ;
    rdfs:range prov:Entity ;
    rdfs:subPropertyOf prov:used .

:versionConstraintOperator a owl:DatatypeProperty ;
    rdfs:label "version constraint operator"@en ;
    IAO:0000115 "The comparison operator that defines how the version constraint should be evaluated, such as greater than, equal to, or less than."@en ;
    rdfs:comment "The comparison operator used in a version constraint (e.g., '>=', '=', '<=')"@en ;
    rdfs:domain :VersionConstraint ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:versionConstraintValue a owl:DatatypeProperty ;
    rdfs:label "version constraint value"@en ;
    IAO:0000115 "The specific version string that the constraint is compared against using the constraint operator."@en ;
    rdfs:comment "The version value used in a version constraint"@en ;
    rdfs:domain :VersionConstraint ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:wasBuiltBy a owl:ObjectProperty ;
    rdfs:label "was built by"@en ;
    IAO:0000115 "Associates a package with the specific build activity that compiled and created it from source materials."@en ;
    rdfs:comment "Links a package to the build activity that created it"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :BuildActivity ;
    rdfs:subPropertyOf prov:wasGeneratedBy .

xsd:duration a rdfs:Datatype .

<https://packagegraph.github.io/> a foaf:Organization ;
    foaf:homepage <https://github.com/packagegraph> ;
    foaf:name "PackageGraph Project" .

:ABI a owl:Class ;
    rdfs:label "Application Binary Interface"@en ;
    IAO:0000115 "The low-level binary interface that defines calling conventions, data layouts, and system call interfaces for a specific platform."@en ;
    rdfs:comment "The binary interface specification for a platform"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:InstructionSetArchitecture a owl:Class ;
    rdfs:label "Instruction Set Architecture"@en ;
    IAO:0000115 "The processor instruction set architecture that defines the machine code interface, such as x86_64, ARM64, or RISC-V."@en ;
    rdfs:comment "The specific instruction set architecture (ISA) for binary packages"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf :Architecture .

:MaintainerRole a owl:Class ;
    rdfs:label "Maintainer Role"@en ;
    IAO:0000115 "Defines the specific responsibilities and authority level of a maintainer for a package, such as primary maintainer, co-maintainer, or sponsor."@en ;
    rdfs:comment "The specific role a maintainer plays for a package"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:PackageSet a owl:Class ;
    rdfs:label "Package Set"@en ;
    IAO:0000115 "A named collection of packages within a distribution or product, used to define subsets such as base systems, application streams, or product-specific package sets."@en ;
    rdfs:comment "A named subset of packages within a distribution or product"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:conflicts a owl:IrreflexiveProperty,
        owl:ObjectProperty,
        owl:SymmetricProperty ;
    rdfs:label "conflicts"@en ;
    IAO:0000115 "A symmetric relationship indicating that two packages cannot be installed simultaneously on the same system due to incompatibilities or resource conflicts. If package A conflicts with package B, then B conflicts with A."@en ;
    rdfs:comment "Indicates that a package cannot be installed alongside another package (symmetric relationship)"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package .

:contains a owl:ObjectProperty ;
    rdfs:label "contains"@en ;
    IAO:0000115 "A relationship that associates a repository with the packages it hosts and makes available for distribution."@en ;
    rdfs:comment "Links a repository to the packages it contains"@en ;
    rdfs:domain :Repository ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package .

:dependencyTarget a owl:ObjectProperty ;
    rdfs:label "dependency target"@en ;
    IAO:0000115 "Identifies the specific package that satisfies a dependency, linking the reified Dependency to its target Package."@en ;
    rdfs:comment "The package that a dependency relationship targets"@en ;
    rdfs:domain :Dependency ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package .

:hasDependency a owl:ObjectProperty ;
    rdfs:label "has dependency"@en ;
    IAO:0000115 "Associates a package with a structured dependency that captures the target package, version constraints, and dependency type. Detailed dependency with type and version constraint. The directlyDependsOn shortcut provides a simpler graph traversal path for queries that don't need constraint details."@en ;
    rdfs:comment "Links a package to a reified dependency relationship with version constraints. The directlyDependsOn property provides a materialized shortcut (via owl:propertyChainAxiom) for simpler traversal."@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Dependency .

:hasPackage a owl:ObjectProperty ;
    rdfs:label "has package"@en ;
    IAO:0000115 "The inverse relationship of isVersionOf, linking a package identity to all versioned binary packages that belong to it. Enables efficient 'list all versions of package X' queries from the identity node."@en ;
    rdfs:comment "Links a package identity to its versioned binary package instances."@en ;
    rdfs:domain :PackageIdentity ;
    rdfs:isDefinedBy : ;
    rdfs:range :BinaryPackage .

:holdsRole a owl:ObjectProperty ;
    rdfs:label "holds role"@en ;
    IAO:0000115 "Associates an agent (Person or SoftwareAgent) with a contribution or maintenance role assignment."@en ;
    rdfs:comment "Links an agent (person or software agent) to a contributor or maintainer role they hold"@en ;
    rdfs:domain prov:Agent ;
    rdfs:isDefinedBy : ;
    rdfs:range :Contributor .

:isDirectDependencyOf a owl:ObjectProperty ;
    rdfs:label "is direct dependency of"@en ;
    IAO:0000115 "The inverse relationship of directlyDependsOn, indicating that this package is a direct dependency of another package. Critical for blast radius analysis - enables efficient queries for 'what directly depends on this package'."@en ;
    rdfs:comment "Indicates that this package is a direct dependency of another package"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    rdfs:subPropertyOf :isDependencyOf .

:maintains a owl:ObjectProperty ;
    rdfs:label "maintains"@en ;
    IAO:0000115 "The inverse of maintainedBy, linking an agent (Person or SoftwareAgent) to the packages they maintain."@en ;
    rdfs:comment "Links an agent (person or software agent) to the packages they maintain"@en ;
    rdfs:domain prov:Agent ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package .

:manages a owl:ObjectProperty ;
    rdfs:label "manages"@en ;
    IAO:0000115 "A relationship that associates a package manager with the repositories it controls and provides access to."@en ;
    rdfs:comment "Links a package manager to the repositories it manages"@en ;
    rdfs:domain :PackageManager ;
    rdfs:isDefinedBy : ;
    rdfs:range :Repository .

:packageName a owl:DatatypeProperty,
        owl:FunctionalProperty ;
    rdfs:label "package name"@en ;
    IAO:0000115 "The unique identifier or name by which a software package is known within a package management system."@en ;
    rdfs:comment "The name of a package"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:partOfRelease a owl:ObjectProperty ;
    rdfs:label "part of release"@en ;
    IAO:0000115 "Associates packages, repositories, or other components with a specific versioned release of a distribution."@en ;
    rdfs:comment "Links packages or repositories to a specific distribution release"@en ;
    rdfs:isDefinedBy : ;
    rdfs:range :DistributionRelease ;
    owl:inverseOf :releaseContains .

:producedBinary a owl:ObjectProperty ;
    rdfs:label "produced binary"@en ;
    IAO:0000115 "Associates a source package with the binary packages produced by building it."@en ;
    rdfs:comment "Links a source package to binary packages it produces"@en ;
    rdfs:domain :SourcePackage ;
    rdfs:isDefinedBy : ;
    rdfs:range :BinaryPackage .

:projectName a owl:DatatypeProperty ;
    rdfs:label "project name"@en ;
    IAO:0000115 "The canonical or commonly used name of an upstream open source project, such as 'openssl' or 'gcc'."@en ;
    rdfs:comment "The canonical name of the upstream project"@en ;
    rdfs:domain :UpstreamProject ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:releaseContains a owl:ObjectProperty ;
    rdfs:label "release contains"@en ;
    IAO:0000115 "Links a distribution release to packages it contains, enabling efficient 'what packages are in this release' queries."@en ;
    rdfs:comment "Links a distribution release to packages it contains"@en ;
    rdfs:domain :DistributionRelease ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    owl:inverseOf :partOfRelease .

:replaces a owl:AsymmetricProperty,
        owl:IrreflexiveProperty,
        owl:ObjectProperty ;
    rdfs:label "replaces"@en ;
    IAO:0000115 "An asymmetric relationship indicating that one package is intended to supersede and replace another package, typically during system upgrades or package transitions. If package A replaces package B, then package B does not replace package A."@en ;
    rdfs:comment "Indicates that a package replaces another package (asymmetric relationship)"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package .

:supersededBy a owl:ObjectProperty ;
    rdfs:label "superseded by"@en ;
    IAO:0000115 "Indicates that this package's functionality has been absorbed into another package due to subpackage reorganization across architectures or builds. Used to track packages that exist on some arches but are merged into others on different arches."@en ;
    rdfs:comment "Indicates that this package's functionality has been absorbed into another package (subpackage reorganization)"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    owl:inverseOf :supersedes .

:supersedes a owl:ObjectProperty ;
    rdfs:label "supersedes"@en ;
    IAO:0000115 "Indicates that this package absorbs the functionality of another package, typically due to subpackage consolidation or reorganization across architectures."@en ;
    rdfs:comment "Indicates that this package absorbs the functionality of another package"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    owl:inverseOf :supersededBy .

:versionOf a owl:ObjectProperty ;
    rdfs:label "version of"@en ;
    IAO:0000115 "The inverse relationship of hasVersion, linking a version back to the package it belongs to. Critical for security queries that start from an affected version and need to find the package."@en ;
    rdfs:comment "Links a version to the package it belongs to"@en ;
    rdfs:domain :Version ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package .

:versionString a owl:DatatypeProperty,
        owl:FunctionalProperty ;
    rdfs:label "version string"@en ;
    IAO:0000115 "A textual representation of a package version, typically following semantic versioning or other versioning schemes to indicate the release sequence and compatibility."@en ;
    rdfs:comment "The version identifier of a package"@en ;
    rdfs:domain :Version ;
    rdfs:isDefinedBy : ;
    rdfs:range xsd:string .

:BuildActivity a owl:Class ;
    rdfs:label "Build Activity"@en ;
    IAO:0000115 "An activity that compiles source code and creates executable binaries or libraries as part of the packaging process. Aligned with PROV-O Activity concept — builds are time-bounded activities with agents (builders) and entities (source/binary artifacts)."@en ;
    rdfs:comment "The process of compiling and building software from source"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf prov:Activity,
        :PackagingActivity .

:Ecosystem a owl:Class ;
    rdfs:label "Package Ecosystem"@en ;
    IAO:0000115 "A comprehensive package management ecosystem that may span multiple distributions, formats, and repositories, such as the Debian ecosystem including Ubuntu derivatives."@en ;
    rdfs:comment "A broader ecosystem encompassing multiple distributions and package formats"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:PackageManager a owl:Class ;
    rdfs:label "Package Manager"@en ;
    IAO:0000115 "A software application or system that automates the process of installing, upgrading, configuring, and removing software packages, including dependency resolution and conflict management."@en ;
    rdfs:comment "A software tool that manages the installation, updating, and removal of packages"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:isDependencyOf a owl:ObjectProperty ;
    rdfs:label "is dependency of"@en ;
    IAO:0000115 "The inverse relationship of dependsOn, indicating that this package is required by another package."@en ;
    rdfs:comment "Indicates that this package is a dependency of another package"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package .

:provides a owl:ObjectProperty ;
    rdfs:label "provides"@en ;
    IAO:0000115 "A relationship indicating that one package offers the same functionality or interface as another package, potentially serving as a substitute or alternative implementation."@en ;
    rdfs:comment "Indicates that a package provides the functionality of another package"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package .

:Checksum a owl:Class ;
    rdfs:label "Checksum"@en ;
    IAO:0000115 "A reified checksum associating a cryptographic hash value with the algorithm used to compute it, enabling packages to carry multiple checksums of different types (e.g., SHA-256 and MD5 simultaneously)."@en ;
    rdfs:comment "A cryptographic hash of a package file, pairing the hash value with its algorithm"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:InstalledFile a owl:Class ;
    rdfs:label "Installed File"@en ;
    IAO:0000115 "A file that is installed on the target filesystem when a binary package is installed, including executables, libraries, configuration files, and documentation."@en ;
    rdfs:comment "A file installed on the system by a binary package"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:License a owl:Class ;
    rdfs:label "License"@en ;
    IAO:0000115 "A legal document or agreement that specifies the terms and conditions under which a software package may be used, modified, and distributed."@en ;
    rdfs:comment "The legal license under which a package is distributed"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:Maintainer a owl:Class ;
    rdfs:label "Maintainer"@en ;
    IAO:0000115 "A maintenance role assignment linking a person to a package they maintain. This is an anti-rigid concept — a maintenance role assignment can begin or end without the person ceasing to exist."@en ;
    rdfs:comment "A maintenance role assignment linking a person to a package"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf :Contributor .

:PackagingActivity a owl:Class ;
    rdfs:label "Packaging Activity"@en ;
    IAO:0000115 "An activity that transforms source code, configuration files, and other materials into a distributable package format."@en ;
    rdfs:comment "The process of creating a package from source materials"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf prov:Activity .

:Person a owl:Class ;
    rdfs:label "Person"@en ;
    IAO:0000115 "A rigid identity representing a human individual. Persons hold roles (Contributor, Maintainer) which are time-dependent and context-dependent. The same Person can maintain packages in multiple distributions and hold different roles over time."@en ;
    rdfs:comment "A human individual who can hold contributor or maintainer roles across packages and distributions"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf prov:Agent ;
    owl:equivalentClass foaf:Person .

:VersionConstraint a owl:Class ;
    rdfs:label "Version Constraint"@en ;
    IAO:0000115 "A structured specification that defines acceptable version ranges for package dependencies, including operators and target versions."@en ;
    rdfs:comment "A structured representation of version constraints for dependencies"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

xsd:date a rdfs:Datatype .

:ContributorAccount a owl:Class ;
    rdfs:label "Contributor Account"@en ;
    IAO:0000115 "A platform-specific identity for a contributor, such as a GitHub username, Debian maintainer email, or Fedora Account System login, enabling cross-platform contributor identification."@en ;
    rdfs:comment "An identity or account for a contributor on a specific platform"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:DataSnapshot a owl:Class ;
    rdfs:label "Data Snapshot"@en ;
    IAO:0000115 "A record of a data collection or enrichment run, tracking the named graph URI, source identifier, timestamp, and currency status for graph lifecycle management."@en ;
    rdfs:comment "Metadata about a named graph — when it was collected, from what source, whether it is current."@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf prov:Entity .

:UpstreamProject a owl:Class ;
    rdfs:label "Upstream Project"@en ;
    IAO:0000115 "An upstream software project that serves as the origin for packages across multiple distributions, enabling cross-distribution analysis through a shared identity. Aligned with DOAP (Description of a Project) vocabulary — upstream projects are software projects with maintainers, repositories, and releases."@en ;
    rdfs:comment "An upstream open source project that is packaged by one or more distributions"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:cardinality "1"^^xsd:nonNegativeInteger ;
            owl:onProperty :projectName ],
        doap:Project,
        owl:Thing .

:Architecture a owl:Class ;
    rdfs:label "Architecture"@en ;
    IAO:0000115 "The specific hardware platform, instruction set, or system architecture for which a software package has been compiled or designed to run."@en ;
    rdfs:comment "The hardware or software architecture for which a package is built"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:BinaryPackage a owl:Class ;
    rdfs:label "Binary Package"@en ;
    IAO:0000115 "A binary package containing compiled executables, libraries, or architecture-independent files, ready for installation on a target system."@en ;
    rdfs:comment "A compiled, installable package produced from a source package"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf :Package .

:Capability a owl:Class ;
    rdfs:label "Capability"@en ;
    IAO:0000115 "A functional capability provided by or required by a package, such as a shared library (e.g., libssl.so.3), virtual package name, or other abstract functionality. Critical for shared library dependency resolution - enables blast radius analysis via .so linking."@en ;
    rdfs:comment "A capability provided or required by packages (shared library, virtual package, etc.)"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:Contributor a owl:Class ;
    rdfs:label "Contributor"@en ;
    IAO:0000115 "A role assignment representing a person's contribution to a package or repository. This is an anti-rigid concept — a person can start or stop holding this role without ceasing to exist."@en ;
    rdfs:comment "A contribution role assignment linking a person to a package or repository"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:Dependency a owl:Class ;
    rdfs:label "Dependency"@en ;
    IAO:0000115 "A requirement relationship between software packages where one package needs another package to be present and functional in order to operate correctly."@en ;
    rdfs:comment "A relationship indicating that one package requires another package to function properly"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:SourcePackage a owl:Class ;
    rdfs:label "Source Package"@en ;
    IAO:0000115 "A source package containing the original source code, build scripts, and packaging metadata required to produce one or more binary packages for distribution."@en ;
    rdfs:comment "A package containing source code that can be built into one or more binary packages"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf :Package .

:Version a owl:Class ;
    rdfs:label "Version"@en ;
    IAO:0000115 "A specific release or iteration of a software package, identified by a version string and representing a particular state of the package's development."@en ;
    rdfs:comment "A specific version or release of a package"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:cardinality "1"^^xsd:nonNegativeInteger ;
            owl:onProperty :versionString ],
        owl:Thing .

:Repository a owl:Class ;
    rdfs:label "Repository"@en ;
    IAO:0000115 "A centralized storage location where software packages are hosted and made available for distribution, typically accessible via network protocols and managed by package management systems."@en ;
    rdfs:comment "A storage location for packages, accessible through a package management system"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing,
        prov:Entity .

:dependsOn a owl:ObjectProperty ;
    rdfs:label "depends on"@en ;
    IAO:0000115 "A relationship indicating that one package requires another package to be present and functional in order to operate correctly."@en ;
    rdfs:comment "Indicates that a package requires another package to function"@en ;
    rdfs:domain :Package ;
    rdfs:isDefinedBy : ;
    rdfs:range :Package ;
    owl:inverseOf :isDependencyOf .

:Distribution a owl:Class ;
    rdfs:label "Distribution"@en ;
    IAO:0000115 "A complete operating system distribution that packages and distributes software using specific package management systems."@en ;
    rdfs:comment "A specific Linux/Unix distribution"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:DistributionRelease a owl:Class ;
    rdfs:label "Distribution Release"@en ;
    IAO:0000115 "A specific versioned release of a Linux distribution, such as Debian 12 (bookworm) or Fedora 41, containing a defined set of packages."@en ;
    rdfs:comment "A specific versioned release of a distribution"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:PackageIdentity a owl:Class ;
    rdfs:label "Package Identity"@en ;
    IAO:0000115 "A stable, version-independent identifier for a package name within a specific distribution, release, and architecture. BinaryPackage instances link to their identity via isVersionOf. Dependencies point to the identity, enabling direct name-based joins without URI parsing."@en ;
    rdfs:comment "The version-agnostic identity of a package within a distribution and architecture. Dependency targets point to this instead of versioned instances."@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf owl:Thing .

:Package a owl:Class ;
    rdfs:label "Package"@en ;
    IAO:0000115 "A discrete unit of software represented in package repository metadata, typically containing executable code, configuration files, documentation, and metadata. Most packages can be installed, updated, or removed by a package management system, though some entries (such as phantom packages) exist only as metadata references."@en ;
    rdfs:comment "A software package that can be installed, maintained, or distributed through a package management system"@en ;
    rdfs:isDefinedBy : ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:cardinality "1"^^xsd:nonNegativeInteger ;
            owl:onProperty :packageName ],
        owl:Thing,
        prov:Entity .

: a owl:Ontology ;
    rdfs:label "Package Management Core Ontology"@en ;
    dcterms:abstract "PackageGraph Core defines the foundational classes and properties for representing software packages across Linux distributions and other package ecosystems. It models binary and source packages, versioned dependencies with constraints, maintainers, architectures, and distribution releases as a connected RDF graph. The ontology serves as the shared schema that distribution-specific extensions (Debian, RPM, Arch, etc.) specialize, enabling cross-distribution queries over a unified SPARQL endpoint." ;
    dcterms:created "2025-09-05"^^xsd:date ;
    dcterms:creator <https://packagegraph.github.io/> ;
    dcterms:description "A comprehensive ontology for modeling software packages, dependencies, repositories, and package management systems across different platforms and ecosystems." ;
    dcterms:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
    dcterms:modified "2026-04-21"^^xsd:date ;
    dcterms:references <http://purl.obolibrary.org/obo/bfo.owl>,
        <http://www.loa.istc.cnr.it/dolce/dolce-owl/DOLCEbasic> ;
    dcterms:title "Package Management Core Ontology" ;
    rdfs:comment "Core ontology for representing software packages and repositories across different package management systems. Upper ontology positioning: PackageGraph adopts lightweight alignment to established domain vocabularies (PROV-O, FOAF, SPDX, DOAP) rather than full BFO or DOLCE alignment. Software packages are informational artifacts whose lifecycle includes physical manifestations (installed files) and social roles (maintainers). BFO's material-entity/process distinction and DOLCE's cognitive/social focus do not cleanly categorize these hybrid entities. Our alignment strategy prioritizes semantic interoperability with domain-standard vocabularies over foundational ontology categorization. Multilingual metadata design: PackageGraph does not mandate @en language tags on data literals for graph efficiency — package names are technical identifiers, not translatable text, and adding language tags to 62.7M string literals increases storage cost and breaks existing SPARQL queries. However, the ontology acknowledges that multilingual package metadata is a real domain concern: Debian and Ubuntu maintain dedicated localisation teams (debian-l10n-english, ubuntu-translators) providing meticulously translated descriptions for packages like apache2, nginx, and postgresql. The RDF literal language tag mechanism remains available for collectors that ingest such translated metadata — the ontology does not prohibit language-tagged literals, it simply does not require them for monolingual English data."@en ;
    rdfs:isDefinedBy : ;
    rdfs:seeAlso <http://spdx.org/rdf/terms>,
        doap:,
        prov:,
        foaf:,
        <https://packagegraph.github.io/ontology/>,
        <https://purl.org/packagegraph/ontology/alignments>,
        <https://purl.org/packagegraph/ontology/core/shapes> ;
    owl:priorVersion <https://purl.org/packagegraph/ontology/core/0.6.0> ;
    owl:versionIRI <https://purl.org/packagegraph/ontology/core/0.7.0> ;
    owl:versionInfo "0.7.0" ;
    foaf:homepage <https://packagegraph.github.io/ontology/> .

[] a owl:AllDisjointClasses ;
    owl:members ( :Dependency :Package :Version ) .

[] a owl:AllDisjointClasses ;
    owl:members ( :Package :Distribution :Repository :License :Architecture :Capability ) .

[] a owl:AllDisjointClasses ;
    owl:members ( :BinaryPackage :SourcePackage ) .

[] a owl:AllDisjointClasses ;
    owl:members ( :Person :Package :Distribution :Repository ) .

