d3fend-ontology
d3fend-ontology copied to clipboard
Using package URLs to identify some SoftwarePackage
Addresses #227
- rdfs:seeAlso.
- The d3f:definition is sourced from OCSF "package" object dictionary property "purl" via rdfs:isDefinedBy.
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> .