From ddc4f2def7bcdbef8b4deef65f4ce0576d374709 Mon Sep 17 00:00:00 2001 From: uscholdm Date: Thu, 12 Sep 2024 14:57:53 -0400 Subject: [PATCH 1/6] Import operators ontology and added class: SpecEntry --- ontologies/gistCore.ttl | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/ontologies/gistCore.ttl b/ontologies/gistCore.ttl index f17edfa3..a39b4d6f 100644 --- a/ontologies/gistCore.ttl +++ b/ontologies/gistCore.ttl @@ -1,5 +1,8 @@ +# imports: https://w3id.org/semanticarts/ontology/operators1.0.0 + @prefix gist: . @prefix gistd: . +@prefix ops: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @@ -10,6 +13,7 @@ a owl:Ontology ; + owl:imports ; owl:versionIRI ; skos:definition "gist is a minimalist upper ontology created by Semantic Arts."^^xsd:string ; skos:historyNote """ @@ -1721,6 +1725,40 @@ gist:ServiceSpecification skos:prefLabel "Service Specification"^^xsd:string ; . +gist:SpecEntry + a owl:Class ; + rdfs:seeAlso ; + owl:equivalentClass [ + a owl:Class ; + owl:intersectionOf ( + gist:Specification + [ + a owl:Restriction ; + owl:onProperty gist:hasAspect ; + owl:someValuesFrom gist:Aspect ; + ] + [ + a owl:Restriction ; + owl:onProperty ops:hasSpecifiedValue ; + owl:someValuesFrom [ + a owl:Class ; + owl:unionOf ( + gist:Category + gist:Magnitude + ) ; + ] ; + ] + ) ; + ] ; + skos:definition "A specification of a set of acceptable values for a particular aspect indicating what it means to be in spec for that aspect."^^xsd:string ; + skos:example "The aspect, width must be greater or equal to 4 inches and less than 10 inches. In this case there would be two triples linking the Spec Entry to values using subproperties of specifiedValue - one for expressing greater or equal to 4 inches and one for expressing less than 10 inches."^^xsd:string ; + skos:prefLabel "Spec Entry"^^xsd:string ; + skos:scopeNote + "In addition to ordinary numerical scales, sets of acceptable values may also come from nominal or ordinal scales of measure."^^xsd:string , + "Often this will be about what is required, allowed or promised, but it could also be used to specify what is not allowed."^^xsd:string + ; + . + gist:Specification a owl:Class ; rdfs:subClassOf gist:Intention ; From 71bb735dfd087aea74aaf9d21d9df0698c47baee Mon Sep 17 00:00:00 2001 From: uscholdm Date: Fri, 13 Sep 2024 18:29:06 -0400 Subject: [PATCH 2/6] Tweaked annotation. --- ontologies/gistCore.ttl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ontologies/gistCore.ttl b/ontologies/gistCore.ttl index a39b4d6f..6e607f0e 100644 --- a/ontologies/gistCore.ttl +++ b/ontologies/gistCore.ttl @@ -1751,7 +1751,7 @@ gist:SpecEntry ) ; ] ; skos:definition "A specification of a set of acceptable values for a particular aspect indicating what it means to be in spec for that aspect."^^xsd:string ; - skos:example "The aspect, width must be greater or equal to 4 inches and less than 10 inches. In this case there would be two triples linking the Spec Entry to values using subproperties of specifiedValue - one for expressing greater or equal to 4 inches and one for expressing less than 10 inches."^^xsd:string ; + skos:example "The aspect width must be greater or equal to 4 inches and less than 10 inches. In this case there would be two triples linking the Spec Entry to values using subproperties of specifiedValue - one for expressing greater or equal to 4 inches and one for expressing less than 10 inches."^^xsd:string ; skos:prefLabel "Spec Entry"^^xsd:string ; skos:scopeNote "In addition to ordinary numerical scales, sets of acceptable values may also come from nominal or ordinal scales of measure."^^xsd:string , From 3aa2e4f4fa9a3e3a0fe9e6aba4a9dabf2d20230f Mon Sep 17 00:00:00 2001 From: uscholdm Date: Tue, 15 Oct 2024 11:28:22 -0400 Subject: [PATCH 3/6] Test tweak to annotation. --- ontologies/gistCore.ttl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ontologies/gistCore.ttl b/ontologies/gistCore.ttl index 6e607f0e..4b8dd0cf 100644 --- a/ontologies/gistCore.ttl +++ b/ontologies/gistCore.ttl @@ -1755,7 +1755,7 @@ gist:SpecEntry skos:prefLabel "Spec Entry"^^xsd:string ; skos:scopeNote "In addition to ordinary numerical scales, sets of acceptable values may also come from nominal or ordinal scales of measure."^^xsd:string , - "Often this will be about what is required, allowed or promised, but it could also be used to specify what is not allowed."^^xsd:string + "Often this will be about what is required, allowed or promised, but it could also be used to specify what is disallowed."^^xsd:string ; . From 8b0bce3674d40fd7998638ccd0b047d8f22f2d73 Mon Sep 17 00:00:00 2001 From: uscholdm Date: Wed, 16 Oct 2024 11:25:12 -0400 Subject: [PATCH 4/6] Added new property: hasValueEqualToOneOf --- ontologies/gistCore.ttl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ontologies/gistCore.ttl b/ontologies/gistCore.ttl index 4b8dd0cf..50a4c72d 100644 --- a/ontologies/gistCore.ttl +++ b/ontologies/gistCore.ttl @@ -2883,6 +2883,14 @@ gist:hasUnitOfMeasure skos:prefLabel "has unit of measure"^^xsd:string ; . +gist:hasValueEqualToOneOf + a owl:ObjectProperty ; + rdfs:subPropertyOf ops:hasSpecifiedValue ; + skos:definition "Relates a specification to a collection of values, one of which a characteristic must be equal to."^^xsd:string ; + skos:example "The color of something must be blue or red."^^xsd:string ; + skos:prefLabel "has value equal to one of"^^xsd:string ; + . + gist:idText a owl:DatatypeProperty ; rdfs:range xsd:string ; From 27f4df70a05c6772454e612f1501f400cbba1a5c Mon Sep 17 00:00:00 2001 From: uscholdm Date: Wed, 16 Oct 2024 11:39:43 -0400 Subject: [PATCH 5/6] Added annotations --- ontologies/gistCore.ttl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ontologies/gistCore.ttl b/ontologies/gistCore.ttl index 50a4c72d..a05176e0 100644 --- a/ontologies/gistCore.ttl +++ b/ontologies/gistCore.ttl @@ -2887,8 +2887,10 @@ gist:hasValueEqualToOneOf a owl:ObjectProperty ; rdfs:subPropertyOf ops:hasSpecifiedValue ; skos:definition "Relates a specification to a collection of values, one of which a characteristic must be equal to."^^xsd:string ; + skos:editorialNote "If this operator is added to the operators ontology in the future, update gist core to use the ops namespace instead of gist for the hasValueEqualToOneOf property."^^xsd:string ; skos:example "The color of something must be blue or red."^^xsd:string ; skos:prefLabel "has value equal to one of"^^xsd:string ; + skos:scopeNote "This adds to the set of operators defined in the imported operators ontology."^^xsd:string ; . gist:idText From 3878f1fc1ba3a342c54f7ef5971f06011fd3216d Mon Sep 17 00:00:00 2001 From: uscholdm Date: Wed, 16 Oct 2024 12:29:01 -0400 Subject: [PATCH 6/6] Added/tweaked annotations --- ontologies/gistCore.ttl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ontologies/gistCore.ttl b/ontologies/gistCore.ttl index a05176e0..00ada815 100644 --- a/ontologies/gistCore.ttl +++ b/ontologies/gistCore.ttl @@ -1751,11 +1751,15 @@ gist:SpecEntry ) ; ] ; skos:definition "A specification of a set of acceptable values for a particular aspect indicating what it means to be in spec for that aspect."^^xsd:string ; - skos:example "The aspect width must be greater or equal to 4 inches and less than 10 inches. In this case there would be two triples linking the Spec Entry to values using subproperties of specifiedValue - one for expressing greater or equal to 4 inches and one for expressing less than 10 inches."^^xsd:string ; + skos:example + "The aspect width must be greater or equal to 4 inches and less than 10 inches. In this case there would be two triples linking the spec entry to values using subproperties of specifiedValue - one for expressing greater or equal to 4 inches and one for expressing less than 10 inches."^^xsd:string , + "The specification for a smartphone model might have three spec entries, one for weight (= 15 oz), one for color (red or blue) and one for battery life (between 12 & 14 hours)."^^xsd:string + ; skos:prefLabel "Spec Entry"^^xsd:string ; skos:scopeNote + "An individual spec entry will typically be one of several that makes up an overall specification of something with various aspects."^^xsd:string , "In addition to ordinary numerical scales, sets of acceptable values may also come from nominal or ordinal scales of measure."^^xsd:string , - "Often this will be about what is required, allowed or promised, but it could also be used to specify what is disallowed."^^xsd:string + "Often a spec entry will specify what is required, allowed or promised, but it could also be used to specify what is disallowed."^^xsd:string ; .