From 9df8b5cfd5813e16701f637c63870a29f1164512 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 7 Jul 2022 18:38:14 -0400 Subject: Replace canonical dcs ontology with a minimal version for LV2 Since most applications pay to keep these ontologies in memory, it is best to keep them small. This replaces the "canonical" dcs ontology with a minimal and restricted version specifically written for the subset of the vocabulary that LV2 uses (like the xsd ontology). --- schemas.lv2/dcs.ttl | 277 ++++++++-------------------------------------------- 1 file changed, 39 insertions(+), 238 deletions(-) (limited to 'schemas.lv2') diff --git a/schemas.lv2/dcs.ttl b/schemas.lv2/dcs.ttl index b961190..4c62ed9 100644 --- a/schemas.lv2/dcs.ttl +++ b/schemas.lv2/dcs.ttl @@ -1,266 +1,67 @@ -# This ontology. -@prefix dcs: . +@prefix dcs: . +@prefix dcterms: . +@prefix doap: . +@prefix foaf: . +@prefix owl: . +@prefix rdf: . +@prefix rdfs: . +@prefix xsd: . -# Related -@prefix event: . -@prefix doap: . -@prefix dbug: . - -# Stock imports. -@prefix dct: . -@prefix foaf: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . - -## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## +<> + rdfs:comment "Minimal DOAP Change Sets vocabulary used by LV2." . - a foaf:Person . + + a foaf:Person . dcs: a owl:Ontology ; - rdfs:label "DOAP Change Sets"@en ; - dct:description "An ontology that extends DOAP to describe changesets."@en ; - dct:created "2010-01-08"^^xsd:date ; - dct:issued "2010-01-08"^^xsd:date ; - dct:modified "2010-01-08"^^xsd:date , - "2010-01-27"^^xsd:date , - "2011-02-15"^^xsd:date , # dcs:Documentation, dcs:Packaging, dcs:SecurityFix, dcs:SecurityRegression - "2012-04-25"^^xsd:date , # dcs:thanks - "2012-06-20"^^xsd:date , # dcs:released-by - "2013-09-03"^^xsd:date , # dcs:Tests, dcs:BackCompat - "2015-01-15"^^xsd:date , # Syntax errors, add description - "2015-04-05"^^xsd:date ; # use dcterms, trim imports (drobilla, for LV2) - dct:creator . - -<> - a foaf:Document ; - foaf:primaryTopic dcs: . - -dcs:ChangeSet - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Change Set"@en ; - rdfs:comment "A collection of changes. Not necessarily disjoint with foaf:Document!"@en ; - rdfs:subClassOf rdf:Bag . - -dcs:ToDoList - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "To-Do List"@en ; - rdfs:comment "A collection of planned changes."@en ; - rdfs:subClassOf dcs:ChangeSet . - -dcs:WishList - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Wish List"@en ; - rdfs:comment "A collection of desired changes."@en ; - rdfs:subClassOf dcs:ChangeSet . + dcterms:contributor ; + dcterms:created "2010-01-08"^^xsd:date ; + dcterms:creator ; + dcterms:description "An ontology that extends DOAP to describe changesets." ; + dcterms:modified "2022-07-07"^^xsd:date ; + rdfs:label "DOAP Change Sets" . dcs:Change a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Change"@en ; - rdfs:comment "A change to something. Use rdfs:label to briefly describe the change. Use rdfs:comment for additional information."@en . - -dcs:Addition - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Addition"@en ; - rdfs:comment "A change that added a new feature."@en ; - rdfs:subClassOf dcs:Change . - -dcs:Removal - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Addition"@en ; - rdfs:comment "A change that removed a feature."@en ; - rdfs:subClassOf dcs:Change . + rdfs:comment "A change to something." ; + rdfs:label "Change" ; + rdfs:subClassOf [ + a owl:Restriction ; + rdfs:comment "A change must have a plain literal label." ; + owl:onProperty rdfs:label ; + owl:someValuesFrom rdf:PlainLiteral + ] . -dcs:Bugfix - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Bugfix"@en ; - rdfs:comment "A change that fixed a problem with an existing feature."@en ; - rdfs:subClassOf dcs:Change . - -dcs:Update - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Update"@en ; - rdfs:comment "A change that brought a feature into compliance with policy or other changes in the external world."@en ; - rdfs:subClassOf dcs:Change . - -dcs:Regression - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Regression"@en ; - rdfs:comment "A change that caused a problem with an existing feature."@en ; - rdfs:subClassOf dcs:Change . - -dcs:Documentation - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Documentation Change"@en ; - rdfs:subClassOf dcs:Change . - -dcs:Packaging - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Packaging Change"@en ; - rdfs:subClassOf dcs:Change . - -dcs:SecurityFix - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Security Fix"@en ; - rdfs:comment "A change that fixed or improved a security problem."@en ; - rdfs:subClassOf dcs:Change . - -dcs:SecurityRegression - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Security Regression"@en ; - rdfs:comment "A change that created or worsened a security problem."@en ; - rdfs:subClassOf dcs:Change , dcs:Regression . - -dcs:Tests +dcs:ChangeSet a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Tests"@en ; - rdfs:comment "A change to the test suite."@en ; - rdfs:subClassOf dcs:Change. + rdfs:comment "A collection of changes." ; + rdfs:label "Change Set" ; + rdfs:subClassOf rdf:Bag . -dcs:BackCompat - a owl:Class ; - rdfs:isDefinedBy dcs: ; - rdfs:label "Backwards Compatibility"@en ; - rdfs:comment "A change that breaks backwards compatibility, changing documented or tested behaviour."@en ; - rdfs:subClassOf dcs:Change. +dcs:blame + a owl:ObjectProperty ; + rdfs:label "blame" ; + rdfs:subPropertyOf dcs:thanks . dcs:changeset a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "change set"@en ; - rdfs:comment "A change set may be associated with a particular software version in which those changes were released; or with an event which caused those changes."@en ; + rdfs:comment "The change set of a version." ; rdfs:domain doap:Version ; + rdfs:label "change set" ; rdfs:range dcs:ChangeSet . -dcs:versus - a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "versus"@en ; - rdfs:comment "The previous version or event which a changeset has changed from."@en ; - rdfs:domain dcs:ChangeSet ; - rdfs:range doap:Version . - dcs:item a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "item"@en ; - rdfs:comment "A change within a change set."@en ; + rdfs:comment "A change in a change set." ; rdfs:domain dcs:ChangeSet ; + rdfs:label "item" ; rdfs:range dcs:Change ; rdfs:subPropertyOf rdfs:member . -dcs:file - a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "file"@en ; - rdfs:comment "A file involved in the change."@en ; - rdfs:domain dcs:Change . - -dbug:Issue - a rdfs:Class ; - rdfs:label "Issue"@en . - -dcs:fixes - a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "fixes"@en ; - rdfs:comment "A bug fixed by the change."@en ; - rdfs:domain dcs:Bugfix ; - rdfs:range dbug:Issue . - -dcs:implements - a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "implements"@en ; - rdfs:domain dcs:Addition ; - rdfs:range doap:Specification . - -dcs:restores - a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "restores"@en ; - rdfs:comment "An association between a regression and a later bugfix that fixes it."@en ; - rdfs:domain dcs:Bugfix ; - rdfs:range dcs:Regression . - -dcs:blame - a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:subPropertyOf dcs:thanks ; - rdfs:label "blame"@en . - dcs:thanks a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "thanks"@en ; - rdfs:comment "More general than dcs:blame - could be used e.g. to indicate who financially sponsored a new feature."@en ; rdfs:domain dcs:Change ; + rdfs:label "thanks" ; rdfs:range foaf:Agent . -dcs:checkin - a owl:DatatypeProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "checkin"@en ; - rdfs:comment "The identifier used by the project's version control system that records when this change was made."@en ; - rdfs:domain dcs:Change ; - rdfs:range xsd:string . - -dcs:milestone - a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "milestone"@en ; - rdfs:domain dcs:ChangeSet ; - rdfs:range doap:Version . - -dcs:tasks - a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "tasks"@en ; - rdfs:domain foaf:Agent ; - rdfs:range dcs:ToDoList . - -dcs:wishes - a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "wishes"@en ; - rdfs:domain foaf:Person ; - rdfs:range dcs:WishList . - -dcs:requires - a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "requires"@en ; - rdfs:comment "Indicates that the subject Change cannot/could not be completed without the object Change."@en ; - rdfs:domain dcs:Change ; - rdfs:range dcs:Change . - -dcs:timescale - a owl:DatatypeProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "timescale"@en ; - rdfs:comment "Human-readable description of the approximate time a change/feature should be complete by."@en ; - rdfs:domain dcs:Change ; - rdfs:range xsd:string . - -dcs:released-by - a owl:ObjectProperty ; - rdfs:isDefinedBy dcs: ; - rdfs:label "released by"@en ; - rdfs:domain doap:Version ; - rdfs:range foaf:Person . -- cgit v1.2.1