d3fend-ontology icon indicating copy to clipboard operation
d3fend-ontology copied to clipboard

Using package URLs to identify some SoftwarePackage

Open aamedina opened this issue 9 months ago • 1 comments

Addresses #227

aamedina avatar May 02 '24 18:05 aamedina

I removed the :PURL class and instead reverted to a previous idea which was to use a inverse functional property to identify some software package by URL. Then we don't need a new class for the "Package URL".

Let me know your thoughts on this approach.

:purl a owl:InverseFunctionalProperty,
        owl:ObjectProperty ;
    rdfs:label "has package URL" ;
    skos:altLabel "purl" ;
    rdfs:subPropertyOf :identified-by ;
    rdfs:domain :SoftwarePackage ;
    rdfs:range :URL ;
    rdfs:comment "A purl is a URL string used to identify and locate a software package in a mostly universal and uniform way across programming languages, package managers, packaging conventions, tools, APIs and databases." ;
    rdfs:isDefinedBy <https://schema.ocsf.io/objects/package> ;
    :definition "x has package URL y: The subject software package x is identified by the package URL y." ;
    rdfs:seeAlso <https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst> .

aamedina avatar May 02 '24 21:05 aamedina